Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test include detection with subfolders
This verifies that: - Source files inside the src/ subfolder of a sketch are subject to include detection. - Header files included by the main sketch are subject to include detection. - Source files in other subfolders are *not* subject to include detection. This commit adds four dummy libraries, "testlib1" to "testlib4" that only contain an empty header file. These can be used to test whether an include leads to the correct library being included, without running into other unexpected issues when using real libraries (like one library including another, or not all libraries being available for all boards, etc.). Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
- Loading branch information
1 parent
3eed66c
commit efd06bc
Showing
11 changed files
with
54 additions
and
6 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
Empty file.
Empty file.
Empty file.
Empty file.
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
1 change: 1 addition & 0 deletions
1
src/arduino.cc/builder/test/sketch_with_subfolders/sketch_with_subfolders.ino
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#include <testlib1.h> | ||
#include "subfolder/other.h" | ||
#include "src/subfolder/other.h" | ||
|
||
|
1 change: 1 addition & 0 deletions
1
src/arduino.cc/builder/test/sketch_with_subfolders/src/subfolder/other.cpp
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#include <Arduino.h> // Arduino 1.0 | ||
#include <testlib2.h> | ||
|
||
#include "other.h" | ||
|
||
|
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
1 change: 1 addition & 0 deletions
1
src/arduino.cc/builder/test/sketch_with_subfolders/subfolder/dont_load_me.cpp
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
#include <testlib4.h> | ||
#error "Whattya looking at?" |
1 change: 1 addition & 0 deletions
1
src/arduino.cc/builder/test/sketch_with_subfolders/subfolder/dont_load_me.ino
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
#include <testlib4.h> | ||
#error "Whattya looking at?" |