Skip to content

Commit 2f3cbb2

Browse files
committed
Improved test scripts
1 parent c08be00 commit 2f3cbb2

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

unittest/run_compare.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
OPTS="-Wall -Werror -Wno-pointer-to-int-cast"
33

44
NEW=../utility/mapcode
5-
OLD=$HOME/bin/mapcode-2.3.0
5+
OLD=$HOME/bin/mapcode-2.3.1
66
NEWFILE=_new.txt
77
OLDFILE=_old.txt
88

@@ -23,7 +23,7 @@ date
2323
echo "!! -------------------------------------------------------------"
2424

2525
echo ""
26-
echo "Run with: -O3"
26+
echo "Run compare with: -O3"
2727
cd ../mapcodelib
2828
gcc $OPTS -O3 -c mapcoder.c
2929
cd ../utility

unittest/run_gprof.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ date
1515
echo "!! -------------------------------------------------------------"
1616

1717
echo ""
18-
echo "Run with: -O0"
18+
echo "Run gprof with: -O0"
1919
cd ../mapcodelib
2020
gcc $OPTS -g -O0 -c mapcoder.c -pg
2121
cd ../unittest
@@ -25,7 +25,7 @@ gprof ./unittest
2525
echo "!! -------------------------------------------------------------"
2626

2727
echo ""
28-
echo "Run with: -O3"
28+
echo "Run gprof with: -O3"
2929
cd ../mapcodelib
3030
gcc $OPTS -g -O3 -c mapcoder.c -pg
3131
cd ../unittest

unittest/run_normal.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ date
77
echo "!! -------------------------------------------------------------"
88

99
echo ""
10-
echo "Run with: -O0"
10+
echo "Run normal with: -O0"
1111
cd ../mapcodelib
1212
gcc $OPTS -O0 -DDEBUG -c mapcoder.c
1313
cd ../unittest
@@ -16,7 +16,7 @@ gcc $OPTS -O0 -DDEBUG unittest.c -lm -lpthread -o unittest ../mapcodelib/mapcode
1616
echo "!! -------------------------------------------------------------"
1717

1818
echo ""
19-
echo "Run with: -O3"
19+
echo "Run normal with: -O3"
2020
cd ../mapcodelib
2121
gcc $OPTS -O3 -c mapcoder.c
2222
cd ../unittest

unittest/run_sanitizer.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ echo "!! -------------------------------------------------------------"
1818

1919
# No optimize
2020
echo ""
21-
echo "Run with: -O0"
21+
echo "Run address sanitizer with: -O0"
2222
cd ../mapcodelib
2323
gcc $OPTS -O0 -DDEBUG -c mapcoder.c
2424
cd ../unittest
@@ -28,7 +28,7 @@ echo "!! -------------------------------------------------------------"
2828

2929
# Optimize 2
3030
echo ""
31-
echo "Run with: -O2"
31+
echo "Run address sanitizer with: -O2"
3232
cd ../mapcodelib
3333
gcc $OPTS -O2 -c mapcoder.c
3434
cd ../unittest
@@ -38,7 +38,7 @@ echo "!! -------------------------------------------------------------"
3838

3939
# Optimize 3
4040
echo ""
41-
echo "Run with: -O3"
41+
echo "Run address sanitizer with: -O3"
4242
cd ../mapcodelib
4343
gcc $OPTS -O3 -c mapcoder.c
4444
cd ../unittest

unittest/run_valgrind.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ date
1515
echo "!! -------------------------------------------------------------"
1616

1717
echo ""
18-
echo "Run with: -O0"
18+
echo "Run valgrind with: -O0"
1919
cd ../mapcodelib
2020
gcc $OPTS -g -O0 -c mapcoder.c
2121
cd ../unittest

0 commit comments

Comments
 (0)