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 1
1
#! /bin/sh
2
- OPTS=" -Wall -Werror - Wextra -Wno-pointer-to-int-cast"
2
+ OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast"
3
3
4
- NEW=../utility/ mapcode
5
- OLD=$HOME /bin/ mapcode-2.3.1
4
+ NEW=../mapcode-2.5.5
5
+ OLD=../ mapcode-2.5.2
6
6
NEWFILE=_new.txt
7
7
OLDFILE=_old.txt
8
8
91
91
rm -f $NEWFILE $OLDFILE
92
92
fi
93
93
echo " !! -------------------------------------------------------------"
94
-
95
- echo " "
96
- echo " Report in: $REPORT "
Original file line number Diff line number Diff line change 1
1
#! /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"
3
3
LIB=" ../mapcodelib/mapcoder.o"
4
4
5
5
TEST=$( which gcov)
@@ -29,5 +29,3 @@ echo "!! -------------------------------------------------------------"
29
29
echo " !! Coverage reports in: *.gcov files"
30
30
echo " !! -------------------------------------------------------------"
31
31
32
- echo " "
33
- echo " Report in: $REPORT "
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- OPTS=" -Wall -Werror - Wextra -Wno-pointer-to-int-cast"
2
+ OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast"
3
3
LIB=" ../mapcodelib/mapcoder.o"
4
4
5
5
TEST=$( which gprof)
@@ -33,6 +33,3 @@ gcc $OPTS -g -O3 unittest.c -lm -lpthread -o unittest $LIB -pg
33
33
./unittest
34
34
gprof ./unittest
35
35
echo " !! -------------------------------------------------------------"
36
-
37
- echo " "
38
- echo " Report in: $REPORT "
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- OPTS=" -Wall -Werror - Wextra -Wno-pointer-to-int-cast"
2
+ OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast"
3
3
4
4
echo " !! -------------------------------------------------------------"
5
5
echo " Run normal..."
@@ -23,6 +23,3 @@ cd ../test
23
23
gcc $OPTS -O3 unittest.c -lm -lpthread -o unittest ../mapcodelib/mapcoder.o
24
24
./unittest
25
25
echo " !! -------------------------------------------------------------"
26
-
27
- echo " "
28
- echo " Report in: $REPORT "
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- OPTS=" -Wall -Werror - Wextra -Wno-pointer-to-int-cast"
2
+ OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast"
3
3
LIB=" ../mapcodelib/mapcoder.o"
4
4
5
5
export 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
45
45
gcc $OPTS -O3 unittest.c -lm -lpthread -fsanitize=address -o unittest $LIB
46
46
./unittest
47
47
echo " !! -------------------------------------------------------------"
48
-
49
- echo " "
50
- echo " Report in: $REPORT "
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- OPTS=" -Wall -Werror - Wextra -Wno-pointer-to-int-cast"
2
+ OPTS=" -Wall -Wextra -Wno-pointer-to-int-cast"
3
3
LIB=" ../mapcodelib/mapcoder.o"
4
4
5
5
TEST=$( which valgrind)
@@ -22,6 +22,3 @@ cd ../test
22
22
gcc $OPTS -g -O0 unittest.c -lm -lpthread -o unittest $LIB
23
23
valgrind --leak-check=yes ./unittest
24
24
echo " !! -------------------------------------------------------------"
25
-
26
- echo " " tee -a $REPORT
27
- echo " Report in: $REPORT "
You can’t perform that action at this time.
0 commit comments