File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ addons:
1313
1414install :
1515 - sudo apt-get update -qq
16- - sudo apt-get install libtommath-dev libgmp-dev
16+ - sudo apt-get install libtommath-dev libgmp-dev valgrind
1717
1818before_script :
1919 - gem install coveralls-lcov
Original file line number Diff line number Diff line change @@ -21,25 +21,25 @@ function run_gcc() {
2121
2222 make clean & > /dev/null
2323
24- make CFLAGS=" $2 $CFLAGS $4 " EXTRALIBS=" $5 " test LTC_DEBUG=2
24+ make CFLAGS=" $2 $CFLAGS $4 " EXTRALIBS=" $5 " test LTC_DEBUG=1 1> gcc_1.txt 2> gcc_2.txt
2525
26- valgrind --error-exitcode=666 --leak-check=full --show-leak-kinds=all --errors-for-leak-kinds=all ./test
26+ valgrind --error-exitcode=666 --leak-check=full --show-leak-kinds=all --errors-for-leak-kinds=all ./test 1> test_std.txt 2> test_err.txt
2727
2828 make clean & > /dev/null
2929
30- make CFLAGS=" -fsanitize=address -fno-omit-frame-pointer -static-libasan $2 $CFLAGS $4 " EXTRALIBS=" -lasan $5 " test LTC_DEBUG=1
31- ASAN_OPTIONS=verbosity=1 ./test t ltm
32- ASAN_OPTIONS=verbosity=1 ./test t gmp
30+ make CFLAGS=" -fsanitize=address -fno-omit-frame-pointer -static-libasan $2 $CFLAGS $4 " EXTRALIBS=" -lasan $5 " test LTC_DEBUG=1 1> gcc_1.txt 2> gcc_2.txt
31+ ASAN_OPTIONS=verbosity=1 ./test t ltm 1> test_std.txt 2> test_err.txt
32+ ASAN_OPTIONS=verbosity=1 ./test t gmp 1> test_std.txt 2> test_err.txt
3333}
3434
3535function run_clang() {
3636 bash scan_build.sh " SCAN_BUILD" " $2 " " $3 " " $4 " " $5 "
3737
3838 make clean & > /dev/null
3939
40- make LDFLAGS=" -fsanitize=undefined" CFLAGS=" $2 $CFLAGS $4 " EXTRALIBS=" $5 " all LTC_DEBUG=1
41- UBSAN_OPTIONS=verbosity=1 ./test t ltm
42- UBSAN_OPTIONS=verbosity=1 ./test t gmp
40+ make LDFLAGS=" -fsanitize=undefined" CFLAGS=" $2 $CFLAGS $4 " EXTRALIBS=" $5 " all LTC_DEBUG=1 1> gcc_1.txt 2> gcc_2.txt
41+ UBSAN_OPTIONS=verbosity=1 ./test t ltm 1> test_std.txt 2> test_err.txt
42+ UBSAN_OPTIONS=verbosity=1 ./test t gmp 1> test_std.txt 2> test_err.txt
4343}
4444
4545
You can’t perform that action at this time.
0 commit comments