Skip to content

Commit f6ed6ad

Browse files
committed
Fixed test scripts
1 parent ba0207a commit f6ed6ad

File tree

6 files changed

+8
-25
lines changed

6 files changed

+8
-25
lines changed

test/run_compare.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
66
NEWFILE=_new.txt
77
OLDFILE=_old.txt
88

@@ -91,6 +91,3 @@ else
9191
rm -f $NEWFILE $OLDFILE
9292
fi
9393
echo "!! -------------------------------------------------------------"
94-
95-
echo ""
96-
echo "Report in: $REPORT"

test/run_gcov.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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"
33
LIB="../mapcodelib/mapcoder.o"
44

55
TEST=$(which gcov)
@@ -29,5 +29,3 @@ echo "!! -------------------------------------------------------------"
2929
echo "!! Coverage reports in: *.gcov files"
3030
echo "!! -------------------------------------------------------------"
3131

32-
echo ""
33-
echo "Report in: $REPORT"

test/run_gprof.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
OPTS="-Wall -Werror -Wextra -Wno-pointer-to-int-cast"
2+
OPTS="-Wall -Wextra -Wno-pointer-to-int-cast"
33
LIB="../mapcodelib/mapcoder.o"
44

55
TEST=$(which gprof)
@@ -33,6 +33,3 @@ gcc $OPTS -g -O3 unittest.c -lm -lpthread -o unittest $LIB -pg
3333
./unittest
3434
gprof ./unittest
3535
echo "!! -------------------------------------------------------------"
36-
37-
echo ""
38-
echo "Report in: $REPORT"

test/run_normal.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
OPTS="-Wall -Werror -Wextra -Wno-pointer-to-int-cast"
2+
OPTS="-Wall -Wextra -Wno-pointer-to-int-cast"
33

44
echo "!! -------------------------------------------------------------"
55
echo "Run normal..."
@@ -23,6 +23,3 @@ cd ../test
2323
gcc $OPTS -O3 unittest.c -lm -lpthread -o unittest ../mapcodelib/mapcoder.o
2424
./unittest
2525
echo "!! -------------------------------------------------------------"
26-
27-
echo ""
28-
echo "Report in: $REPORT"

test/run_sanitizer.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
OPTS="-Wall -Werror -Wextra -Wno-pointer-to-int-cast"
2+
OPTS="-Wall -Wextra -Wno-pointer-to-int-cast"
33
LIB="../mapcodelib/mapcoder.o"
44

55
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
4545
gcc $OPTS -O3 unittest.c -lm -lpthread -fsanitize=address -o unittest $LIB
4646
./unittest
4747
echo "!! -------------------------------------------------------------"
48-
49-
echo ""
50-
echo "Report in: $REPORT"

test/run_valgrind.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
OPTS="-Wall -Werror -Wextra -Wno-pointer-to-int-cast"
2+
OPTS="-Wall -Wextra -Wno-pointer-to-int-cast"
33
LIB="../mapcodelib/mapcoder.o"
44

55
TEST=$(which valgrind)
@@ -22,6 +22,3 @@ cd ../test
2222
gcc $OPTS -g -O0 unittest.c -lm -lpthread -o unittest $LIB
2323
valgrind --leak-check=yes ./unittest
2424
echo "!! -------------------------------------------------------------"
25-
26-
echo "" tee -a $REPORT
27-
echo "Report in: $REPORT"

0 commit comments

Comments
 (0)