Commit | Line | Data |
---|---|---|
f619b0ff MD |
1 | #!/bin/sh |
2 | ||
3 | # TODO: missing tests: | |
4 | # - send kill signals during tests to change the behavior between | |
5 | # add/remove/random | |
6 | # - validate that "nr_leaked" is always 0 in SUMMARY for all tests | |
7 | ||
8 | # 30 seconds per test | |
9 | TIME_UNITS=30 | |
10 | ||
11 | TESTPROG=./test_urcu_ja | |
12 | ||
13 | #thread multiplier | |
14 | THREAD_MUL=1 | |
15 | ||
16 | EXTRA_PARAMS=-v | |
17 | ||
18 | # ** test update coherency with single-value table | |
19 | ||
86b95d66 MD |
20 | # sanity test |
21 | ${TESTPROG} 0 $((4*${THREAD_MUL})) ${TIME_UNITS} -s ${EXTRA_PARAMS} || exit 1 | |
22 | ||
f619b0ff MD |
23 | # rw test, single key, add and del randomly, 4 threads |
24 | # key range: init, lookup, and update: 0 to 0 | |
25 | ${TESTPROG} 0 $((4*${THREAD_MUL})) ${TIME_UNITS} -M 1 -N 1 -O 1 ${EXTRA_PARAMS} || exit 1 | |
26 | ||
27 | # rw test, single key, add and del randomly, 2 lookup threads, 2 update threads | |
28 | # key range: init, lookup, and update: 0 to 0 | |
29 | ${TESTPROG} $((2*${THREAD_MUL})) $((2*${THREAD_MUL})) ${TIME_UNITS} -M 1 -N 1 -O 1 ${EXTRA_PARAMS} || exit 1 |