rcuja: add runja.sh
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 31 May 2013 16:20:12 +0000 (12:20 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 31 May 2013 16:20:12 +0000 (12:20 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/Makefile.am
tests/runall.sh
tests/runja.sh [new file with mode: 0755]

index d6be82a17744b41c6347975df86a2852a0e49524..a2905241700e2873b1ac3a3246b9f4e7737bd7b9 100644 (file)
@@ -52,7 +52,7 @@ URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la
 URCU_BP_LIB=$(top_builddir)/liburcu-bp.la
 URCU_CDS_LIB=$(top_builddir)/liburcu-cds.la
 
-EXTRA_DIST = $(top_srcdir)/tests/api.h runall.sh runhash.sh
+EXTRA_DIST = $(top_srcdir)/tests/api.h runall.sh runhash.sh runja.sh
 
 test_urcu_SOURCES = test_urcu.c $(URCU)
 
index 244766b34f0791e82cad0fe4e6aaec567d17b698..9577edecfdb3a10eae714a6a4533ca2a75f40cff 100755 (executable)
@@ -106,3 +106,6 @@ echo Executing multi-flavor RCU test
 
 echo Executing Hash table test
 ./runhash.sh || exit 1
+
+echo Executing Judy array test
+./runja.sh || exit 1
diff --git a/tests/runja.sh b/tests/runja.sh
new file mode 100755 (executable)
index 0000000..e359c01
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# TODO: missing tests:
+# - send kill signals during tests to change the behavior between
+#   add/remove/random
+# - validate that "nr_leaked" is always 0 in SUMMARY for all tests
+
+# 30 seconds per test
+TIME_UNITS=30
+
+TESTPROG=./test_urcu_ja
+
+#thread multiplier
+THREAD_MUL=1
+
+EXTRA_PARAMS=-v
+
+# ** test update coherency with single-value table
+
+# rw test, single key, add and del randomly, 4 threads
+# key range: init, lookup, and update: 0 to 0
+${TESTPROG} 0 $((4*${THREAD_MUL})) ${TIME_UNITS} -M 1 -N 1 -O 1 ${EXTRA_PARAMS} || exit 1
+
+# rw test, single key, add and del randomly, 2 lookup threads, 2 update threads
+# key range: init, lookup, and update: 0 to 0
+${TESTPROG} $((2*${THREAD_MUL})) $((2*${THREAD_MUL})) ${TIME_UNITS} -M 1 -N 1 -O 1 ${EXTRA_PARAMS} || exit 1
This page took 0.026267 seconds and 4 git commands to generate.