Skip to content

Commit

Permalink
Tweak test script to not warn on deprecated function declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenroche5 committed Jan 31, 2024
1 parent fda4266 commit 51e8ad9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions test/run_all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ all_tests_result=0
# host machine is running Fedora. See https://stackoverflow.com/a/75293014.
ulimit -n 1024

# Note that we use -Wno-deprecated-declarations in the compilation commands
# below because we have deprecated some note-arduino functions (e.g. logDebug),
# but we still have unit tests for them.

if [ 0 -eq $all_tests_result ]; then
echo && echo -e "${YELLOW}Compiling and running Notecard Test Suite...${DEFAULT}"
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -std=c++11 -O0 -g \
g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -Wno-deprecated-declarations -std=c++11 -O0 -g \
src/Notecard.cpp \
test/Notecard.test.cpp \
test/mock/mock-arduino.cpp \
Expand Down Expand Up @@ -43,7 +47,7 @@ fi

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

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

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

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

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

0 comments on commit 51e8ad9

Please sign in to comment.