#! /bin/sh set time=10 w=/home/ec2-user/work/wiredtiger original() { (cd $w/src/btree && git checkout -- row_srch.c && git diff) (cd $w && make libwiredtiger.la > /dev/null) || exit 1 make clean && make } notest() { (cd $w/src/btree && cp row_srch.c.NOTEST row_srch.c && git diff) (cd $w && make libwiredtiger.la > /dev/null) || exit 1 make clean && make } remove() { (cd $w/src/btree && cp row_srch.c.REMOVE row_srch.c && git diff) (cd $w && make libwiredtiger.la > /dev/null) || exit 1 make clean && make } runs=5 r() { i=0 while true; do ./t $* i=`expr $i + 1` if test $i -eq $runs; then break; fi done } echo '#############################################' echo '########### Small tree tests' echo '#############################################' rm -rf WT_TEST original ./t -c -b -r 5 echo '########### Small tree tests: develop small tree:' r -r 5 notest echo '########### Small tree tests: no-test small tree:' r -r 5 remove echo '########### Small tree tests: remove small tree:' r -r 5 echo '#############################################' echo '########### Large tree tests' echo '#############################################' rm -rf WT_TEST original ./t -c -b echo '########### Large tree tests: develop large tree:' r notest echo '########### Large tree tests: no-test large tree:' r remove echo '########### Large tree tests: remove large tree:' r