8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9da77d commit d3ebdd9Copy full SHA for d3ebdd9
testsuite/.gitignore
@@ -0,0 +1 @@
1
+tmp
testsuite/run_tests.sh
@@ -32,16 +32,19 @@
32
source term.sh
33
34
test_preprocessor() {
35
+ rm -rf tmp
36
+ mkdir tmp
37
+
38
TEST=$1
39
say "@cyan[[Testing preprocessor on @b$TEST]]"
- ../arduino-preprocessor/arduino-preprocessor $TEST -- -std=gnu++11 > tmp.cpp
40
+ ../arduino-preprocessor/arduino-preprocessor $TEST -- -std=gnu++11 > tmp/preproc.cpp
41
if [ $? -ne 0 ]; then
42
fail "Error running arduino-preprocessor"
43
return 1
44
fi
45
46
say "@cyan[[Running compiler...]]"
- g++ -std=gnu++11 -c tmp.cpp
47
+ g++ -std=gnu++11 -c tmp/preproc.cpp -o tmp/preproc.o
48
49
# if the test fails output the preprocessed source code
50
echo ""
0 commit comments