Commit 8a4e88ef authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4382] run in temp directory too, so we pinpoint the corefile

git-svn-id: file:///svn/toku/tokudb@38705 c7de825b-a66e-492c-adef-691d508d4ae1
parent 81f73dd3
...@@ -99,13 +99,17 @@ run_test() { ...@@ -99,13 +99,17 @@ run_test() {
mylog="$1"; shift mylog="$1"; shift
mysavedir="$1"; shift mysavedir="$1"; shift
rundir=$(mktemp -d ./rundir.XXXXXXXX)
tmplog=$(mktemp) tmplog=$(mktemp)
ulimit -c unlimited ulimit -c unlimited
t0="$(date)" t0="$(date)"
t1="" t1=""
t2="" t2=""
envdir="./${exec}-${table_size}-${cachetable_size}-${num_ptquery}-${num_update}-$$.dir" envdir="../${exec}-${table_size}-${cachetable_size}-${num_ptquery}-${num_update}-$$.dir"
if ! ./$exec -v --test --num_seconds 180 --envdir "$envdir" \ cd $rundir
if ! LD_LIBRARY_PATH=../../../lib:$LD_LIBRARY_PATH \
../$exec -v --test --num_seconds 180 --envdir "$envdir" \
--num_elements $table_size \ --num_elements $table_size \
--cachetable_size $cachetable_size \ --cachetable_size $cachetable_size \
--num_ptquery_threads $num_ptquery \ --num_ptquery_threads $num_ptquery \
...@@ -113,7 +117,8 @@ run_test() { ...@@ -113,7 +117,8 @@ run_test() {
then then
rm -f $tmplog rm -f $tmplog
t1="$(date)" t1="$(date)"
if ./$exec -v --recover --envdir "$envdir" \ if LD_LIBRARY_PATH=../../../lib:$LD_LIBRARY_PATH \
../$exec -v --recover --envdir "$envdir" \
--num_elements $table_size \ --num_elements $table_size \
--cachetable_size $cachetable_size > $tmplog --cachetable_size $cachetable_size > $tmplog
then then
...@@ -128,6 +133,8 @@ run_test() { ...@@ -128,6 +133,8 @@ run_test() {
save_failure "$mysavedir" $tmplog $envdir $exec $table_size $cachetable_size $num_ptquery $num_update test save_failure "$mysavedir" $tmplog $envdir $exec $table_size $cachetable_size $num_ptquery $num_update test
echo "\"$exec\",$table_size,$cachetable_size,$num_ptquery,$num_update,$t0,$t1,$t2,FAIL" > "$mylog" echo "\"$exec\",$table_size,$cachetable_size,$num_ptquery,$num_update,$t0,$t1,$t2,FAIL" > "$mylog"
fi fi
cd ..
rm -rf $rundir
} }
loop_test() { loop_test() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment