@@ -11,9 +11,13 @@ all_tests_result=0
11
11
# host machine is running Fedora. See https://stackoverflow.com/a/75293014.
12
12
ulimit -n 1024
13
13
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
+
14
18
if [ 0 -eq $all_tests_result ]; then
15
19
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 \
17
21
src/Notecard.cpp \
18
22
test/Notecard.test.cpp \
19
23
test/mock/mock-arduino.cpp \
43
47
44
48
if [ 0 -eq $all_tests_result ]; then
45
49
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 \
47
51
src/NoteI2c_Arduino.cpp \
48
52
test/NoteI2c_Arduino.test.cpp \
49
53
test/mock/mock-arduino.cpp \
67
71
68
72
if [ 0 -eq $all_tests_result ]; then
69
73
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 \
71
75
src/NoteI2c_Arduino.cpp \
72
76
test/NoteI2c_Arduino.test.cpp \
73
77
test/mock/mock-arduino.cpp \
92
96
93
97
if [ 0 -eq $all_tests_result ]; then
94
98
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 \
96
100
src/NoteLog_Arduino.cpp \
97
101
test/NoteLog_Arduino.test.cpp \
98
102
test/mock/mock-arduino.cpp \
116
120
117
121
if [ 0 -eq $all_tests_result ]; then
118
122
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 \
120
124
src/NoteSerial_Arduino.cpp \
121
125
test/NoteSerial_Arduino.test.cpp \
122
126
test/mock/mock-arduino.cpp \
140
144
141
145
if [ 0 -eq $all_tests_result ]; then
142
146
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 \
144
148
src/NoteTxn_Arduino.cpp \
145
149
test/NoteTxn_Arduino.test.cpp \
146
150
test/mock/mock-arduino.cpp \
0 commit comments