Skip to content

Commit 42d49e6

Browse files
author
James Foster
committed
Now able to compile Ethernet library.
1 parent da40f27 commit 42d49e6

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99
### Added
1010
- Add `__AVR__` to defines when compiling
1111
- Add support for `diditalPinToPort()`, `digitalPinToBitMask()`, and `portOutputRegister()`
12+
- Add stubs for `Client.h`, `IPAddress.h`, `Printable.h`, `Server.h`, and `Udp.h`
1213

1314
### Changed
1415
- Move repository from https://github.com/ianfixes/arduino_ci to https://github.com/Arduino-CI/arduino_ci
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
unittest:
22
platforms:
33
- mega2560
4-
# libraries:
5-
# - "Ethernet"
4+
libraries:
5+
- "Ethernet"
66

77
compile:
88
platforms:
99
- mega2560
10-
# libraries:
11-
# - "Ethernet"
10+
libraries:
11+
- "Ethernet"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <NetworkLib.h>
2+
// if it seems bare, that's because it's only meant to
3+
// demonstrate compilation -- that references work
4+
void setup() {}
5+
6+
void loop() {}
+4-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
/*
2-
cd SampleProjects/Ethernet
2+
cd SampleProjects/NetworkLib
33
bundle config --local path vendor/bundle
44
bundle install
55
bundle exec arduino_ci_remote.rb --skip-compilation
66
# bundle exec arduino_ci_remote.rb --skip-examples-compilation
77
*/
88

9-
#include <ArduinoUnitTests.h>
109
#include <Arduino.h>
10+
#include <ArduinoUnitTests.h>
11+
#include <Ethernet.h>
1112

12-
unittest(test) {
13-
assertTrue(true);
14-
}
13+
unittest(test) { assertEqual(EthernetNoHardware, Ethernet.hardwareStatus()); }
1514

1615
unittest_main()

0 commit comments

Comments
 (0)