Eric Paniagua
517856ad66
Factor out common test headers into setup-googltest.h.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
f2c96e06d1
Add to test build system to-dos.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
04bf1cf4c1
Add kaleidoscope::testing::ConsumerControlReport.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
5f99f56b56
Merge branch 'epan/testing/readable' into epan/testing/main
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
d3f5546e65
Fix one building/cleaning bug in testing/Makefile.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
6534f2a167
Add kaleidoscope::testing::AbsoluteMouseReport.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Jesse Vincent
f00ba327d9
Clean up "make clean" targets
...
Remove "Makefile" targets, as they don't do what Eric wanted
4 years ago
Eric Paniagua
ccc8542329
Add kaleidoscope::testing::HIDState.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
5cf3f65030
Add desired docker support to testing/TODO.txt.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
4ff8bdd901
Add a TODO file for the build system under testing/.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
e15c8f3d6a
Make IsEmpty work for SystemControlReport.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
0cab1494b5
Treat SystemControlReport like a container in tests.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
54f2dfb070
Rename matcher `ContainsKey` to `Contains`.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
5b17881676
Issue #840 : Fix verified by test. Regression test added.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
8c7ad97d92
Issue #840 : Verified by test.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
def72e6dde
Remove test dependency on change to KeyboardioHID/src/HIDReportObserver.h.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
c21f367c2e
Minor improvement to the test build system.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
dba2d77a97
Rename ::kaleidoscope::testing::Simulator to SimHarness.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
a89c95cc58
Make RunCycle return std::unique_ptr<State>.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
a9f1e960cc
First unit test working!
...
Must be run with the bundle checked out to `epan/build/justlib`. Also,
the build process is awkward. To be improved in a follow-up.
cd testing && make common && cd kaleidoscope && make
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
b6d607be62
[WIP]: Debugging NPE in kaleidoscope/simulator_test.cpp.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
eabea8f03c
[WIP]: Test in testing/kaleidoscope builds, links, and segfaults.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
a72b444dbd
[wip] Remaining: Stop arduino-builder from building test files.
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
da07dbc233
Merge branch 'epan/testing/main' into epan/testing/readable
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
1c8503edbe
Convert Kaleidoscope/testing to link manually.
...
Also, modify bin/kaleidoscope-builder to allow for building just a
library. Requires bundle branch epan/build/justlib until that is merged
into master.
Signed-off-by: Eric Paniagua <eric.paniagua@gmail.com>
4 years ago
Eric Paniagua
c2a8c9f1eb
wip
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
5c8a438cc6
wip
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
b1957f33e3
Trick arduino-builder into linking against googletest.
...
- Caveat: This won't work out of the box until virtual/platform.txt is
updated in the bundle repo to force the appropriate include and linker
paths.
- arduino-builder fails if it can't find a library for any included
header. fake-gtest is a library designed to fake out this detection
mechanism.
- Add a gtest test that exercises the simulator. This is
hello-simulator_test.h. It has to be a .h or else arduino-builder will
fail to compile it with one excuse or another.
- Add run-simulator-googletest "target" to the build system. It will
take care of running cmake and building googletest and googlemock. Of
course, this requires that cmake be installed on your system.
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
bf581e9366
Hello, googletest!
...
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago
Eric Paniagua
a10420dbdd
Check in a copy of googletest.
...
URL: https://github.com/google/googletest
SHA: 703bd9caab50b139428cea1aaff9974ebee5742e (tag: release-1.10.0)
Signed-off-by: Eric Paniagua <epaniagua@google.com>
4 years ago