Skip to content

Commit

Permalink
tests: update conditional check to '#if defined(EPOXY_DUINO)'
Browse files Browse the repository at this point in the history
  • Loading branch information
bxparks committed Jun 15, 2023
1 parent 8e7f57e commit 8f6d8f5
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 7 deletions.
5 changes: 4 additions & 1 deletion tests/AUnitMetaTest/AUnitMetaTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,14 @@ testing(fixture_slow_skip_monitor) {
// ------------------------------------------------------

void setup() {
#ifdef ARDUINO
#if ! defined(EPOXY_DUINO)
delay(1000); // Wait for stability on some boards, otherwise garage on Serial
#endif
SERIAL_PORT_MONITOR.begin(115200);
while (! SERIAL_PORT_MONITOR); // Wait until Serial is ready - Leonardo/Micro
#if defined(EPOXY_DUINO)
SERIAL_PORT_MONITOR.setLineModeUnix();
#endif

#if USE_AUNIT == 1
// These are useful for debugging.
Expand Down
5 changes: 4 additions & 1 deletion tests/AUnitMoreTest/AUnitMoreTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,14 @@ test(unsignedLongLong) {
// ------------------------------------------------------

void setup() {
#ifdef ARDUINO
#if ! defined(EPOXY_DUINO)
delay(1000); // Wait for stability on some boards, otherwise garage on Serial
#endif
SERIAL_PORT_MONITOR.begin(115200);
while (! SERIAL_PORT_MONITOR); // Wait until Serial is ready - Leonardo/Micro
#if defined(EPOXY_DUINO)
SERIAL_PORT_MONITOR.setLineModeUnix();
#endif
}

void loop() {
Expand Down
5 changes: 4 additions & 1 deletion tests/AUnitTest/AUnitTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -567,11 +567,14 @@ CustomTestOnce myTestOnce2("customTestOnce2");
// ------------------------------------------------------

void setup() {
#ifdef ARDUINO
#if ! defined(EPOXY_DUINO)
delay(1000); // Wait for stability on some boards, otherwise garage on Serial
#endif
SERIAL_PORT_MONITOR.begin(115200);
while (! SERIAL_PORT_MONITOR); // Wait until Serial is ready - Leonardo/Micro
#if defined(EPOXY_DUINO)
SERIAL_PORT_MONITOR.setLineModeUnix();
#endif

#if USE_AUNIT == 1
// These are useful for debugging.
Expand Down
5 changes: 4 additions & 1 deletion tests/FailingTest/FailingTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,14 @@ testing(fixture_slow_expire_monitor) {
// -------------------------------------------------------------------------

void setup() {
#ifdef ARDUINO
#if ! defined(EPOXY_DUINO)
delay(1000); // Wait for stability on some boards, otherwise garage on Serial
#endif
SERIAL_PORT_MONITOR.begin(115200);
while (! SERIAL_PORT_MONITOR); // Wait until Serial is ready - Leonardo/Micro
#if defined(EPOXY_DUINO)
SERIAL_PORT_MONITOR.setLineModeUnix();
#endif

SERIAL_PORT_MONITOR.println(F("This test should produce the following:"));
SERIAL_PORT_MONITOR.println(
Expand Down
5 changes: 4 additions & 1 deletion tests/FilterTest/FilterTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,14 @@ test(lifeCycle) {
// -----------------------------------------------------------------------

void setup() {
#ifdef ARDUINO
#if ! defined(EPOXY_DUINO)
delay(1000); // Wait for stability on some boards, otherwise garage on Serial
#endif
SERIAL_PORT_MONITOR.begin(115200);
while (! SERIAL_PORT_MONITOR); // Wait until Serial is ready - Leonardo
#if defined(EPOXY_DUINO)
SERIAL_PORT_MONITOR.setLineModeUnix();
#endif

// Verify that the include() and exclude() work as expected. The name of test
// is either "test_{name}" (1-argument version of test()) or
Expand Down
5 changes: 4 additions & 1 deletion tests/Print64Test/Print64Test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,14 @@ test(Print64, println64_ULL) {
}

void setup() {
#ifdef ARDUINO
#if ! defined(EPOXY_DUINO)
delay(1000); // Wait for stability on some boards, otherwise garage on Serial
#endif
SERIAL_PORT_MONITOR.begin(115200);
while (! SERIAL_PORT_MONITOR); // Wait until Serial is ready - Leonardo
#if defined(EPOXY_DUINO)
SERIAL_PORT_MONITOR.setLineModeUnix();
#endif
}


Expand Down
5 changes: 4 additions & 1 deletion tests/SetupAndTeardownTest/SetupAndTeardownTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,14 @@ testingF(CustomAgain, expire) { expire(); }
testingF(CustomAgain, excluded) { fail(); }

void setup() {
#ifdef ARDUINO
#if ! defined(EPOXY_DUINO)
delay(1000); // Wait for stability on some boards, otherwise garage on Serial
#endif
SERIAL_PORT_MONITOR.begin(115200);
while (! SERIAL_PORT_MONITOR); // Wait until Serial is ready - Leonardo/Micro
#if defined(EPOXY_DUINO)
SERIAL_PORT_MONITOR.setLineModeUnix();
#endif

SERIAL_PORT_MONITOR.println(F("This test should produce the following:"));
SERIAL_PORT_MONITOR.println(
Expand Down

0 comments on commit 8f6d8f5

Please sign in to comment.