2 export PATH=/sbin:/usr/sbin:$PATH
12 # TODO: obdctl needs to check on the progress of each forked thread
13 # (IPC SHM, sockets?) to see if it hangs.
14 for CMD in test_getattr test_brw_read test_brw_write; do
16 test_brw_read) CMD=test_brw; RW=r ;;
17 test_brw_write) CMD=test_brw; RW=w ;;
21 setup_server || exit -1
22 setup_client || exit -1
24 # We use '--threads 1 X' instead of '--device X' so that
25 # obdctl can modnitor the forked thread for progress (TODO).
26 $OBDCTL --threads 1 v $OSC_DEVNO $CMD 1 $RW v || exit -1
27 $OBDCTL --threads 1 v $OSC_DEVNO $CMD 100 $RW v || exit -1
29 #cleanup_client || exit -1
30 #cleanup_server || exit -1
32 #setup_server || exit -1
33 #setup_client || exit -1
37 $OBDCTL --threads 1 v $OSC_DEVNO $CMD 10000 $RW 100 || exit -1
38 $OBDCTL --threads 1 v $OSC_DEVNO $CMD 1000000 $RW -10 || exit -1
42 $OBDCTL --threads 2 v $OSC_DEVNO $CMD 100 $RW v || exit -1
46 $OBDCTL --threads 2 v $OSC_DEVNO $CMD 10000 $RW 100 || exit -1
47 $OBDCTL --threads 2 v $OSC_DEVNO $CMD 1000000 $RW -30 || exit -1
49 $OBDCTL --threads 10 v $OSC_DEVNO $CMD 10000 $RW 1000 || exit -1
50 $OBDCTL --threads 100 v $OSC_DEVNO $CMD 10000 $RW -30 || exit -1
52 cleanup_client || exit -1
53 cleanup_server || exit -1