Skip to content

Commit 25fec13

Browse files
committed
Tweak test script to not warn on deprecated function declarations.
1 parent 79a4cb6 commit 25fec13

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

test/run_all_tests.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ all_tests_result=0
1111
# host machine is running Fedora. See https://stackoverflow.com/a/75293014.
1212
ulimit -n 1024
1313

14+
# Note that we use -Wno-deprecated-declarations in the compilation commands
15+
# below because we have deprecated some note-arduino functions (e.g. logDebug),
16+
# but we still have unit tests for them.
17+
1418
if [ 0 -eq $all_tests_result ]; then
1519
echo && echo -e "${YELLOW}Compiling and running Notecard Test Suite...${DEFAULT}"
16-
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -std=c++11 -O0 -g \
20+
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -Wno-deprecated-declarations -std=c++11 -O0 -g \
1721
src/Notecard.cpp \
1822
test/Notecard.test.cpp \
1923
test/mock/mock-arduino.cpp \
@@ -43,7 +47,7 @@ fi
4347

4448
if [ 0 -eq $all_tests_result ]; then
4549
echo && echo -e "${YELLOW}Compiling and running NoteI2c_Arduino Test Suite (no flags)...${DEFAULT}"
46-
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -std=c++11 -O0 -g \
50+
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -Wno-deprecated-declarations -std=c++11 -O0 -g \
4751
src/NoteI2c_Arduino.cpp \
4852
test/NoteI2c_Arduino.test.cpp \
4953
test/mock/mock-arduino.cpp \
@@ -67,7 +71,7 @@ fi
6771

6872
if [ 0 -eq $all_tests_result ]; then
6973
echo && echo -e "${YELLOW}Compiling and running NoteI2c_Arduino Test Suite (-DWIRE_HAS_END)...${DEFAULT}"
70-
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -std=c++11 -O0 -g \
74+
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -Wno-deprecated-declarations -std=c++11 -O0 -g \
7175
src/NoteI2c_Arduino.cpp \
7276
test/NoteI2c_Arduino.test.cpp \
7377
test/mock/mock-arduino.cpp \
@@ -92,7 +96,7 @@ fi
9296

9397
if [ 0 -eq $all_tests_result ]; then
9498
echo && echo -e "${YELLOW}Compiling and running NoteLog_Arduino Test Suite...${DEFAULT}"
95-
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -std=c++11 -O0 -g \
99+
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -Wno-deprecated-declarations -std=c++11 -O0 -g \
96100
src/NoteLog_Arduino.cpp \
97101
test/NoteLog_Arduino.test.cpp \
98102
test/mock/mock-arduino.cpp \
@@ -116,7 +120,7 @@ fi
116120

117121
if [ 0 -eq $all_tests_result ]; then
118122
echo && echo -e "${YELLOW}Compiling and running NoteSerial_Arduino Test Suite...${DEFAULT}"
119-
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -std=c++11 -O0 -g \
123+
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -Wno-deprecated-declarations -std=c++11 -O0 -g \
120124
src/NoteSerial_Arduino.cpp \
121125
test/NoteSerial_Arduino.test.cpp \
122126
test/mock/mock-arduino.cpp \
@@ -140,7 +144,7 @@ fi
140144

141145
if [ 0 -eq $all_tests_result ]; then
142146
echo && echo -e "${YELLOW}Compiling and running NoteTxn_Arduino Test Suite...${DEFAULT}"
143-
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -std=c++11 -O0 -g \
147+
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -Wno-deprecated-declarations -std=c++11 -O0 -g \
144148
src/NoteTxn_Arduino.cpp \
145149
test/NoteTxn_Arduino.test.cpp \
146150
test/mock/mock-arduino.cpp \

0 commit comments

Comments
 (0)