Fixed problems that emerged in list.
[xlqstl.git] / runtest.sh
blob70d252a3029865449c7304cb8bf0e53a7c84b866
1 #!/bin/sh
3 build_fail(){
4 echo "Build failed"
5 exit $1
8 mkdir -p tmp
9 cp SConstruct main.cxx tmp/
11 # test with standard library
12 cd tmp/
13 scons test_ext=false || build_fail $?
14 valgrind -q --leak-check=full --show-reachable=yes ./test
16 # test with our own
17 cd ../
18 scons test_ext=true || build_fail $?
19 valgrind -q --leak-check=full --show-reachable=yes ./test