Jesse Vincent
a93159afd7
We don't need to tell arduino to check the current directory for includes. It does that by default
4 years ago
Jesse Vincent
b8755d1def
TEST_OBJS is a dependency for compiliation. This only broke during parallel builds
4 years ago
Jesse Vincent
5c98cc0532
more test make output cleanup. no intentional functional changes
4 years ago
Jesse Vincent
3a2554fd94
tighten up text display in sim test makefiles
4 years ago
Jesse Vincent
43c0e12ce1
extract out some common code in the testing makefiles
4 years ago
Jesse Vincent
2f873a0e20
clean up top and test dirs
4 years ago
Jesse Vincent
7aa68d8633
it helps if i name my env variables correctly
4 years ago
Jesse Vincent
306a9f45fd
get back ccache support
4 years ago
Jesse Vincent
3a68baca25
Revert "No longer hardcode ar and c++ in libcommon.mk"
...
This reverts commit f9b756ff5d637ba9e1c52ff6569fa4d8dc545720.
4 years ago
Jesse Vincent
ff99286daf
anotehr thing that will not work
4 years ago
Jesse Vincent
ce77fe3ac7
probably doesn't help
4 years ago
Jesse Vincent
3535d91dd7
maybe this fixes tests
4 years ago
Jesse Vincent
72516aafa8
I think this will fix building simulator tests?
4 years ago
Jesse Vincent
121f46076c
try to clean up setting kaleidoscope paths
4 years ago
Jesse Vincent
4ffe328025
clean up a couple rm calls to better insulate against paths that start with -. while unlikely, the protection is easy
4 years ago
Jesse Vincent
96fb56c4bb
No longer hardcode ar and c++ in libcommon.mk
4 years ago
Jesse Vincent
ff9db36814
Don't hardcode the compiler name in testcase.mk
4 years ago
Jesse Vincent
138fe4065b
no longer need an explicit "ARCH"
4 years ago
Jesse Vincent
ba3721187b
Tease apart sketch and Kaleidoscope makefiles
4 years ago
Jesse Vincent
4c3021995a
attempt to make simulator tests build again
4 years ago
Jesse Vincent
d7cf811b00
finish removing "BOARD_HARDWARE_PATH"
4 years ago
Jesse Vincent
ea068cc72c
more work excising BOARD_HARDWARE_PATH
4 years ago
Jesse Vincent
4111d535a3
remove an extra include
4 years ago
Jesse Vincent
9677426b82
start moving to the new makefile, bundled inside Kaleidoscope
4 years ago
Jesse Vincent
ee16e7d610
switch the sim to use the new build system
4 years ago
Jesse Vincent
fd7a9dcb1e
remove build-all, now that we no longer need it
4 years ago
Jesse Vincent
142f9ed6a3
make the use of build-all explicit. Even if we do need it to go away
4 years ago
Jesse Vincent
ea0a0c3dd6
try a hacky workaround for the fact that arduino-cli doesn't seem to let us put doublequotes in build-props
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
51fd6be466
target to generate given testcase
4 years ago
Jesse Vincent
aafd594183
Make it possible to run a single testcase's makefile without being called from above
...
by setting topdir if it's not set
4 years ago
Jesse Vincent
cd211efa24
Remove generated testcases when running make clean
...
Fixes #976
4 years ago
Jesse Vincent
8c13d25cc3
Don't try to add the generated testcase to the list of possible test files if it already exists
...
Fixes #975
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
4 years ago
Jesse Vincent
1b061fe27f
We no longer use that HIDAdaptor
4 years ago
Jesse Vincent
4517ff7c0e
Add a first version of a Kaleidoscope testing DSL.
...
The goal is to make it easy for folks to write tests without knowing C++
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
4 years ago
Jesse Vincent
820560f77c
Change the target the test suite uses when compiling sketches to avoid duplicate compilation
4 years ago
Jesse Vincent
9ec11f1b4b
Force compilation of sketches in the simulator.
...
Because the Arduino build system doesn't -really- interface well with Makefiles, there's no other way to pick up Kaleidoscope or sketch changes from Make. This -does- slow down sim builds / test runs a bit.
Fixes #942
4 years ago
Gergely Nagy
6bc8c4e243
testing/makefiles: Respect the VERBOSE environment variable
...
Instead of unconditionally running the arduino-based build parts in verbose
mode, respect $VERBOSE. This cuts down on the amount of output we generate by
default, while still allowing us to have a verbose mode if need be.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
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
Gergely Nagy
802d2087d2
testing/makefiles/testcase.mk: Make it work without BOARD_HARDWARE_PATH
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
4 years ago
Gergely Nagy
b036d7da51
travis: Update to run the new googletest-based suite aswell
...
We do a number of things here:
- Bump the distro version from Trusty to Bionic, because we need newer tools.
- Install cmake.
- Unset CC, because it interferes with our virtual builds.
- Run the googletest-based suite before building the examples
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