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() {
mylog="$1"; shift
mysavedir="$1"; shift
rundir=$(mktemp -d ./rundir.XXXXXXXX)
tmplog=$(mktemp)
ulimit -c unlimited
t0="$(date)"
t1=""
t2=""
envdir="./${exec}-${table_size}-${cachetable_size}-${num_ptquery}-${num_update}-$$.dir"
if ! ./$exec -v --test --num_seconds 180 --envdir "$envdir" \
envdir="../${exec}-${table_size}-${cachetable_size}-${num_ptquery}-${num_update}-$$.dir"
cd $rundir
if ! LD_LIBRARY_PATH=../../../lib:$LD_LIBRARY_PATH \
../$exec -v --test --num_seconds 180 --envdir "$envdir" \
--num_elements $table_size \
--cachetable_size $cachetable_size \
--num_ptquery_threads $num_ptquery \
......@@ -113,7 +117,8 @@ run_test() {
then
rm -f $tmplog
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 \
--cachetable_size $cachetable_size > $tmplog
then
......@@ -128,6 +133,8 @@ run_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"
fi
cd ..
rm -rf $rundir
}
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