-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathfilter.ino
45 lines (37 loc) · 1.22 KB
/
filter.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#line 2 "filter.ino"
// Adapted from:
// https://github.com/mmurdoch/arduinounit/blob/master/examples/filter/filter.ino
#include <AUnit.h>
using aunit::TestRunner;
// empty tests just to play with
test(net_tcp) { pass(); }
testing(net_udp) { pass(); }
test(net_ftp) { pass(); }
test(crypto_aes) { pass(); }
testing(crypto_rng) { pass(); }
test(crypto_sha256) { pass(); }
//----------------------------------------------------------------------------
// setup() and loop()
//----------------------------------------------------------------------------
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("*");
TestRunner::include("net_*");
TestRunner::exclude("net_ftp");
Serial.println(F("This test should produce the following:"));
Serial.println(
F("2 passed, 0 failed, 4 skipped, 0 timed out, out of 6 test(s).")
);
Serial.println(F("----"));
}
void loop() {
TestRunner::run();
}