Thread (25 messages) 25 messages, 3 authors, 2016-02-18

Re: [PATCH net-next v8 02/19] test_bitmap: unit tests for lib/bitmap.c

From: Ben Hutchings <hidden>
Date: 2016-02-13 01:39:22
Also in: linux-api, linux-mips, lkml

On Tue, 2016-02-09 at 16:29 -0800, David Decotigny wrote:
From: David Decotigny <decot-Ypc/8FJVVoBWk0Htik3J/w@public.gmane.org>

This is mainly testing bitmap construction and conversion to/from u32[]
for now.

Tested:
  qemu i386, x86_64, ppc, ppc64 BE and LE, ARM.

Signed-off-by: David Decotigny <decot-Ypc/8FJVVoBWk0Htik3J/w@public.gmane.org>
[...]
quoted hunk ↗ jump to hunk
diff --git a/tools/testing/selftests/lib/bitmap.sh b/tools/testing/selftests/lib/bitmap.sh
new file mode 100644
This needs to have mode 755.

Ben.
quoted hunk ↗ jump to hunk
index 0000000..2da187b
--- /dev/null
+++ b/tools/testing/selftests/lib/bitmap.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Runs bitmap infrastructure tests using test_bitmap kernel module
+
+if /sbin/modprobe -q test_bitmap; then
+	/sbin/modprobe -q -r test_bitmap
+	echo "bitmap: ok"
+else
+	echo "bitmap: [FAIL]"
+	exit 1
+fi
-- 
Ben Hutchings
Sturgeon's Law: Ninety percent of everything is crap.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help