handle taosd route
This commit is contained in:
parent
11fa2a83a4
commit
9585974ab3
|
@ -5,9 +5,30 @@ GREEN='\033[1;32m'
|
||||||
GREEN_DARK='\033[0;32m'
|
GREEN_DARK='\033[0;32m'
|
||||||
GREEN_UNDERLINE='\033[4;32m'
|
GREEN_UNDERLINE='\033[4;32m'
|
||||||
NC='\033[0m'
|
NC='\033[0m'
|
||||||
nohup /var/lib/jenkins/workspace/TDinternal/debug/build/bin/taosd -c /var/lib/jenkins/workspace/TDinternal/community/sim/dnode1/cfg >/dev/null &
|
#nohup /var/lib/jenkins/workspace/TDinternal/debug/build/bin/taosd -c /var/lib/jenkins/workspace/TDinternal/community/sim/dnode1/cfg >/dev/null &
|
||||||
|
|
||||||
|
#nohup /root/TDinternal/debug/build/bin/taosd -c /root/TDinternal/community/sim/dnode1/cfg >/dev/null &
|
||||||
|
|
||||||
|
IN_TDINTERNAL="community"
|
||||||
|
TDIR=`pwd`
|
||||||
|
if [[ "$tests_dir" == *"$IN_TDINTERNAL"* ]]; then
|
||||||
|
cd ../..
|
||||||
|
else
|
||||||
|
cd ../../..
|
||||||
|
fi
|
||||||
|
|
||||||
|
TOP_DIR=`pwd`
|
||||||
|
TAOS_DIR=`find . -name "taosd"|head -n1`
|
||||||
|
echo $TAOS_DIR
|
||||||
|
if [[ "$TAOSLIB_DIR" == *"$IN_TDINTERNAL"* ]]; then
|
||||||
|
LIB_DIR=`find . -name "libtaos.so"|grep -w lib|head -n1|cut -d '/' --fields=2,3,4,5`
|
||||||
|
else
|
||||||
|
LIB_DIR=`find . -name "libtaos.so"|grep -w lib|head -n1|cut -d '/' --fields=2,3,4`
|
||||||
|
fi
|
||||||
|
nohup $TAOS_DIR >/dev/null &
|
||||||
|
cd -
|
||||||
./crash_gen.sh --valgrind -p -t 10 -s 250 -b 4
|
./crash_gen.sh --valgrind -p -t 10 -s 250 -b 4
|
||||||
pidof taosd|xargs kill
|
pidof taosd|xargs kill -9
|
||||||
grep 'start to execute\|ERROR SUMMARY' valgrind.err|grep -v 'grep'|uniq|tee crash_gen_mem_err.log
|
grep 'start to execute\|ERROR SUMMARY' valgrind.err|grep -v 'grep'|uniq|tee crash_gen_mem_err.log
|
||||||
|
|
||||||
for memError in `grep 'ERROR SUMMARY' crash_gen_mem_err.log | awk '{print $4}'`
|
for memError in `grep 'ERROR SUMMARY' crash_gen_mem_err.log | awk '{print $4}'`
|
||||||
|
@ -31,4 +52,4 @@ if [ -n "$defiMemError" ]; then
|
||||||
exit 8
|
exit 8
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue