forked from arduino/arduino-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Porting
legacy
tests to new integration-test infra (part 4...) (ard…
…uino#2315) * ported SketchThatIncludesArduinoH from legacy into integration test * ported SketchWithStaticAsserts from legacy into integration test * ported SketchWithEnumClass from legacy into integration test * ported SketchWithExternC from legacy into integration test * ported testBuilderSketchWithMultilinePrototypes from legacy into integration test * ported SketchWithExternCMultiline from legacy into integration test * ported SketchWithMultilineTemplate from legacy into integration test * ported SketchWithFakeFunctionPointer from legacy into integration test * fix wrong templating * ported SketchWithMinMaxDefinitions from legacy into integration test * ported SketchWithFastledsLibrary from legacy into integration test * ported sketch with merged sketch and bootloader from legacy into integration test * temporary disable legacy test, before porting them to the new infra * update .gitignore * ported CheckBuildOptionsFile from legacy into integration test * ported SketchClassFunction from legacy into integration test * ported SketchThatChecksIfSPIHasTransactionsAndIncludesMissingEthernet from legacy into integration test * remove legacy builder test folder * remove unsued fields from context
- Loading branch information
1 parent
9c073c1
commit 6d57ce6
Showing
122 changed files
with
630 additions
and
12,222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
...tegrationtest/compile_4/testdata/SketchClassFunction/SketchClassFunction.preprocessed.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <Arduino.h> | ||
#line 1 {{QuoteCppString .sketchMainFile}} | ||
class test { | ||
void asdf() {} | ||
}; | ||
#line 4 {{QuoteCppString .sketchMainFile}} | ||
void setup(); | ||
#line 7 {{QuoteCppString .sketchMainFile}} | ||
void loop(); | ||
#line 8 {{QuoteCppString .sketchMainFile}} | ||
void asdf(); | ||
#line 4 {{QuoteCppString .sketchMainFile}} | ||
void setup() { | ||
asdf(); | ||
} | ||
void loop() {} | ||
void asdf() {} |
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions
21
...compile_4/testdata/SketchThatIncludesArduinoH/SketchThatIncludesArduinoH.preprocessed.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#line 1 {{QuoteCppString .sketchMainFile}} | ||
// Arduino.h should not be automatically included by the Arduino | ||
// preprocessor before the explicit include line in this sketch. | ||
|
||
#if defined(HIGH) | ||
#error Arduino.h seems to be automatically included | ||
#endif | ||
|
||
# include <Arduino.h> | ||
|
||
#line 10 {{QuoteCppString .sketchMainFile}} | ||
void setup(); | ||
#line 13 {{QuoteCppString .sketchMainFile}} | ||
void loop(); | ||
#line 10 {{QuoteCppString .sketchMainFile}} | ||
void setup() { | ||
} | ||
|
||
void loop() { | ||
} | ||
|
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
...tegrationtest/compile_4/testdata/SketchWithEnumClass/SketchWithEnumClass.preprocessed.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include <Arduino.h> | ||
#line 1 {{QuoteCppString .sketchMainFile}} | ||
#line 1 {{QuoteCppString .sketchMainFile}} | ||
void test(); | ||
#line 11 {{QuoteCppString .sketchMainFile}} | ||
void test2(); | ||
#line 14 {{QuoteCppString .sketchMainFile}} | ||
void setup(); | ||
#line 17 {{QuoteCppString .sketchMainFile}} | ||
void loop(); | ||
#line 1 {{QuoteCppString .sketchMainFile}} | ||
void test() { | ||
test2(); | ||
} | ||
|
||
enum class MyEnum | ||
{ | ||
AValue = 0, | ||
AnotherValue = 1 | ||
}; | ||
|
||
void test2() { | ||
} | ||
|
||
void setup() { | ||
} | ||
|
||
void loop() { | ||
} | ||
|
||
|
File renamed without changes.
Oops, something went wrong.