File tree Expand file tree Collapse file tree 6 files changed +8
-25
lines changed Expand file tree Collapse file tree 6 files changed +8
-25
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
2- OPTS=" -Wall -Werror - Wextra -Wno-pointer-to-int-cast"
2+ OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast"
33
4- NEW=../utility/ mapcode
5- OLD=$HOME /bin/ mapcode-2.3.1
4+ NEW=../mapcode-2.5.5
5+ OLD=../ mapcode-2.5.2
66NEWFILE=_new.txt
77OLDFILE=_old.txt
88
9191 rm -f $NEWFILE $OLDFILE
9292fi
9393echo " !! -------------------------------------------------------------"
94-
95- echo " "
96- echo " Report in: $REPORT "
Original file line number Diff line number Diff line change 11#! /bin/sh
2- OPTS=" -Wall -Werror - Wextra -Wno-pointer-to-int-cast -fprofile-arcs -ftest-coverage"
2+ OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast -fprofile-arcs -ftest-coverage"
33LIB=" ../mapcodelib/mapcoder.o"
44
55TEST=$( which gcov)
@@ -29,5 +29,3 @@ echo "!! -------------------------------------------------------------"
2929echo " !! Coverage reports in: *.gcov files"
3030echo " !! -------------------------------------------------------------"
3131
32- echo " "
33- echo " Report in: $REPORT "
Original file line number Diff line number Diff line change 11#! /bin/sh
2- OPTS=" -Wall -Werror - Wextra -Wno-pointer-to-int-cast"
2+ OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast"
33LIB=" ../mapcodelib/mapcoder.o"
44
55TEST=$( which gprof)
@@ -33,6 +33,3 @@ gcc $OPTS -g -O3 unittest.c -lm -lpthread -o unittest $LIB -pg
3333./unittest
3434gprof ./unittest
3535echo " !! -------------------------------------------------------------"
36-
37- echo " "
38- echo " Report in: $REPORT "
Original file line number Diff line number Diff line change 11#! /bin/sh
2- OPTS=" -Wall -Werror - Wextra -Wno-pointer-to-int-cast"
2+ OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast"
33
44echo " !! -------------------------------------------------------------"
55echo " Run normal..."
@@ -23,6 +23,3 @@ cd ../test
2323gcc $OPTS -O3 unittest.c -lm -lpthread -o unittest ../mapcodelib/mapcoder.o
2424./unittest
2525echo " !! -------------------------------------------------------------"
26-
27- echo " "
28- echo " Report in: $REPORT "
Original file line number Diff line number Diff line change 11#! /bin/sh
2- OPTS=" -Wall -Werror - Wextra -Wno-pointer-to-int-cast"
2+ OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast"
33LIB=" ../mapcodelib/mapcoder.o"
44
55export ASAN_OPTIONS=debug=true:strict_string_checks=1:detect_stack_use_after_return=true:detect_invalid_pointer_pairs=99999:detect_container_overflow=true:detect_odr_violation=2:check_initialization_order=true:strict_init_order=true
@@ -45,6 +45,3 @@ cd ../test
4545gcc $OPTS -O3 unittest.c -lm -lpthread -fsanitize=address -o unittest $LIB
4646./unittest
4747echo " !! -------------------------------------------------------------"
48-
49- echo " "
50- echo " Report in: $REPORT "
Original file line number Diff line number Diff line change 11#! /bin/sh
2- OPTS=" -Wall -Werror - Wextra -Wno-pointer-to-int-cast"
2+ OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast"
33LIB=" ../mapcodelib/mapcoder.o"
44
55TEST=$( which valgrind)
@@ -22,6 +22,3 @@ cd ../test
2222gcc $OPTS -g -O0 unittest.c -lm -lpthread -o unittest $LIB
2323valgrind --leak-check=yes ./unittest
2424echo " !! -------------------------------------------------------------"
25-
26- echo " " tee -a $REPORT
27- echo " Report in: $REPORT "
You can’t perform that action at this time.
0 commit comments