rcuja tests: add vs add unique
[urcu.git] / tests / runja.sh
CommitLineData
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
9TIME_UNITS=30
10
11TESTPROG=./test_urcu_ja
12
13#thread multiplier
14THREAD_MUL=1
15
16EXTRA_PARAMS=-v
17
18# ** test update coherency with single-value table
19
86b95d66 20# sanity test
04c48ddf 21${TESTPROG} 0 $((4*${THREAD_MUL})) ${TIME_UNITS} -t ${EXTRA_PARAMS} || exit 1
86b95d66 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
This page took 0.022473 seconds and 4 git commands to generate.