From f619b0ffc4cd55bab4cbee0b3c62775c5b90bac6 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 31 May 2013 12:20:12 -0400 Subject: [PATCH] rcuja: add runja.sh Signed-off-by: Mathieu Desnoyers --- tests/Makefile.am | 2 +- tests/runall.sh | 3 +++ tests/runja.sh | 26 ++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100755 tests/runja.sh diff --git a/tests/Makefile.am b/tests/Makefile.am index d6be82a..a290524 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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) diff --git a/tests/runall.sh b/tests/runall.sh index 244766b..9577ede 100755 --- a/tests/runall.sh +++ b/tests/runall.sh @@ -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 index 0000000..e359c01 --- /dev/null +++ b/tests/runja.sh @@ -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 -- 2.34.1