@@ -11,9 +11,13 @@ all_tests_result=0
1111# host machine is running Fedora. See https://stackoverflow.com/a/75293014.
1212ulimit -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+
1418if [ 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 \
4347
4448if [ 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 \
6771
6872if [ 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 \
9296
9397if [ 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 \
116120
117121if [ 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 \
140144
141145if [ 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