Jesse Vincent
5805fb1117
We shouldn't unilaterally force CCACHE to on when running tests
3 years ago
Jesse Vincent
fbbead928b
Don't interleave output from test suite when running under gmake4 or
...
newer.
On gmake 3, warn the user
3 years ago
Jesse Vincent
493528a556
If you're using gmake 4.0 or newer, display simulator test output nicer
3 years ago
Jesse Vincent
091419c919
Switch 'make all' in tests to use our new recursive-testrunner.
...
Output ordering isn't right yet, but it's a lot faster
3 years ago
Jesse Vincent
b71ed0cdad
'build' now has a proper dependency on generate-testcase.
3 years ago
Jesse Vincent
65dd53ba17
We now run 'generate-testcase' as part of the build process
3 years ago
Jesse Vincent
d132ad2446
move cmake-clean rule up in the file for clarity
3 years ago
Jesse Vincent
968f2cbb1a
enable cccache for cmake
3 years ago
Jesse Vincent
784dd83167
Clean up cmake invocation to not require a directory change and not fail
...
if the build directory exists
3 years ago
Jesse Vincent
89678327a4
Reformat some testing rules for clarity
3 years ago
Jesse Vincent
7cb1e225b7
Make it possible to make some test rules a little quieter
3 years ago
Jesse Vincent
7a9588e404
Force ccache on for simulator tests
3 years ago
Jesse Vincent
dbeed3c767
Apply some of our makefile optimization techniques to the test suite
3 years ago
Jesse Vincent
275d45f479
Hotfix for the macos compiler fixes for the virtual platform
3 years ago
Jesse Vincent
86c7a32ccc
We weren't actually reporting out failed tests as an exit code when running simulator tests
4 years ago
Jesse Vincent
6ef1570964
Improve dependency tracking, cleanup and presentation in test Makefiles.
4 years ago
Jesse Vincent
61f8fc5456
Rename test sketches to match directory names
...
In the arduino world, all sketches need to be in directories whose names match the sketch names.
4 years ago
Jesse Vincent
a61765e630
Exit from the testing loop with an error in case of failed test.
...
Fixes #974
4 years ago
Jesse Vincent
b0902f35da
Add a "generate-testcases" target to make -C tests
...
Make ktest regeneration use a little bit more of Make's smarts.
Fixed #973
4 years ago
Jesse Vincent
b2e899429f
'make clean' fixes
4 years ago
Jesse Vincent
e96d06893c
Make it possible to only run a subset of the simulator tests using the TEST_PATH variable
...
Suggested by @gendankenexperimenter
4 years ago
Gergely Nagy
9319cc1099
testing: Build and run the tests separately
...
Instead of running the tests right after compiling them, compile them all first,
then run them one after another. This way the test output is kept much closer
together, which is easier to glance over.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
4 years ago
Eric Paniagua
fad1b7e051
Add a googletest-based test harness & tests
...
This adds a googletest-based test harness (with googletest pulled into
`testing/googletest`, so we have a fixed state of it), and a few test
cases that demonstrate its use.
Original work by Eric Paniagua in #898 , with minor cleanups by Gergely
Nagy.
Signed-off-by: Eric Paniagua <epaniagua@google.com>
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
4 years ago