Skip to content

Commit

Permalink
examples: 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 8f6d8f5 commit 5c36aae
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 3 deletions.
5 changes: 4 additions & 1 deletion examples/AUnitPlatformIO/AUnitPlatformIO.ino
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ test(exampleTest) {
//----------------------------------------------------------------------------

void setup() {
#if ARDUINO
#if ! defined(EPOXY_DUINO)
delay(1000); // wait for stability on some boards to prevent garbage Serial
#endif
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while(!Serial); // for the Arduino Leonardo/Micro only
#if defined(EPOXY_DUINO)
Serial.setLineModeUnix();
#endif
}

void loop() {
Expand Down
5 changes: 4 additions & 1 deletion examples/AUnitPlatformIO/src/AUnitPlatformIO.ino
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ test(exampleTest) {
//----------------------------------------------------------------------------

void setup() {
#if ARDUINO
#if ! defined(EPOXY_DUINO)
delay(1000); // wait for stability on some boards to prevent garbage Serial
#endif
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while(!Serial); // for the Arduino Leonardo/Micro only
#if defined(EPOXY_DUINO)
Serial.setLineModeUnix();
#endif
}

void loop() {
Expand Down
5 changes: 5 additions & 0 deletions examples/advanced/advanced.ino
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,14 @@ testingF(MyTestAgain, again) {
//----------------------------------------------------------------------------

void setup() {
#if ! defined(EPOXY_DUINO)
delay(1000); // wait for stability on some boards to prevent garbage Serial
#endif
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while (!Serial); // for the Arduino Leonardo/Micro only
#if defined(EPOXY_DUINO)
Serial.setLineModeUnix();
#endif

//TestRunner::setVerbosity(Verbosity::kAll);

Expand Down
7 changes: 6 additions & 1 deletion examples/basic/basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ test(incorrect) {
//----------------------------------------------------------------------------

void setup() {
#if ! defined(EPOXY_DUINO)
delay(1000); // wait for stability on some boards to prevent garbage Serial
#endif
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while(!Serial); // for the Arduino Leonardo/Micro only
while (!Serial); // for the Arduino Leonardo/Micro only
#if defined(EPOXY_DUINO)
Serial.setLineModeUnix();
#endif

Serial.println(F("This test should produce the following:"));
Serial.println(
Expand Down
5 changes: 5 additions & 0 deletions examples/basic_verbose/basic_verbose.ino
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ test(incorrect) {
//----------------------------------------------------------------------------

void setup() {
#if ! defined(EPOXY_DUINO)
delay(1000); // wait for stability on some boards to prevent garbage Serial
#endif
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while(!Serial); // for the Arduino Leonardo/Micro only
#if defined(EPOXY_DUINO)
Serial.setLineModeUnix();
#endif

Serial.println(F("This test should produce the following:"));
Serial.println(
Expand Down
5 changes: 5 additions & 0 deletions examples/continuous/continuous.ino
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ testing(continuous) {
//----------------------------------------------------------------------------

void setup() {
#if ! defined(EPOXY_DUINO)
delay(1000); // wait for stability on some boards to prevent garbage Serial
#endif
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while(!Serial); // for the Arduino Leonardo/Micro only
#if defined(EPOXY_DUINO)
Serial.setLineModeUnix();
#endif

Serial.println(F("This test should produce the following:"));
Serial.println(
Expand Down
5 changes: 5 additions & 0 deletions examples/filter/filter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ test(crypto_sha256) { pass(); }
//----------------------------------------------------------------------------

void setup() {
#if ! defined(EPOXY_DUINO)
delay(1000); // wait for stability on some boards to prevent garbage Serial
#endif
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while(!Serial); // for the Arduino Leonardo/Micro only
#if defined(EPOXY_DUINO)
Serial.setLineModeUnix();
#endif

// all tests named net_ - something, except net_ftp
TestRunner::exclude("*");
Expand Down
5 changes: 5 additions & 0 deletions examples/fixture/fixture.ino
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,14 @@ testF(LogTest, insert) {
//----------------------------------------------------------------------------

void setup() {
#if ! defined(EPOXY_DUINO)
delay(1000); // Wait for stability on some boards, otherwise garage on Serial
#endif
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while (!Serial); // for the Arduino Leonardo/Micro only
#if defined(EPOXY_DUINO)
Serial.setLineModeUnix();
#endif

Serial.println(F("This test should produce the following:"));
Serial.println(
Expand Down
5 changes: 5 additions & 0 deletions examples/meta_asserts/meta_asserts.ino
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,14 @@ testing(slow_expire_monitor) {
//----------------------------------------------------------------------------

void setup() {
#if ! defined(EPOXY_DUINO)
delay(1000); // wait for stability on some boards to prevent garbage Serial
#endif
Serial.begin(115200); // ESP8266 default of 74880 not supported on Linux
while(!Serial); // for the Arduino Leonardo/Micro only
#if defined(EPOXY_DUINO)
Serial.setLineModeUnix();
#endif

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

0 comments on commit 5c36aae

Please sign in to comment.