Commit Graph

12 Commits

Author SHA1 Message Date
Colin Cross
6254b53781 Revert "Add toybox-gtests to TEST_MAPPING presubmit"
This reverts commit 2feebe553c.

Reason for revert: b/308983534

Change-Id: I87794ff762ac654b2154603eb6c8d29a977b4414
2023-11-02 19:10:51 +00:00
Colin Cross
2feebe553c Add toybox-gtests to TEST_MAPPING presubmit
Test: atest toybox-gtests
Change-Id: Iac92b2a62108f6569c55310705b4051879e571f7
2023-10-27 03:03:14 +00:00
Colin Cross
4baab9cf40 Fix toybox-gtests and re-enable them for postsubmit
A last minute change to toybox-gtests wasn't tested in presubmit
because the CL to enable the test in presubmit had to be separated
out into a later CL.  /bin/bash doesn't exist on the device (only
/bin/sh).  Failures when execing the test subprocesses would cause
RunTest to return and then continue out of the fork conditional,
causing the subproces to continue into the test running loop and
start trying to run more tests as if it were the parent process.

Fix the path to /system/bin/sh (via _PATH_BSHELL) on the device,
rename RunTest to ExecTest to make it clear it shouln't return on
success, and _exit with an error when ExecTest returns.

Bug: 305475166
Test: atest toybox-gtests
Change-Id: I9ee3be597f75a9de3b5c8ebb72298d24834a6c09
2023-10-16 22:12:23 -07:00
Dan Shi
a7031e521b Remove toybox-gtests from test mapping postsubmit suite
Bug: 305475166
Change-Id: Iba148a8a1fc4d848d465b681b0396ca2af14007e
Test: NA
2023-10-15 06:28:38 +00:00
Colin Cross
cf9e164fb5 Wrap the toybox test scripts in a gtest binary
The test infrastructure understands the output from gtests, but can
only handle a single pass/fail status from an sh_test.  Add a cc_test
that dynamically registers each tests/*.test file as a gtest that then
execs the toybox test shell scripts.

Test: atest toybox-gtests
Change-Id: I00de1bd3dd48724998866bcd17fe05597f351b50
2023-10-13 20:34:54 +00:00
Edward Liaw
b85931e0cf TEST_MAPPING: add toybox test cases to kernel-presubmit
Bug: 258819618
Test: atest :kernel-presubmit
Change-Id: I4cbfb9078eba46282bd1911ce630932a43ad8410
Signed-off-by: Edward Liaw <edliaw@google.com>
2022-11-11 19:20:56 +00:00
Steven Moreland
ad12679e54 toybox TEST_MAPPING += aidl_integration_test
This test exercises some of the toybox APIs which aren't
covered by the tests here yet.

Bug: 240183489
Test: aidl_integration_test
Change-Id: I9c046d410142d0407e7ca7f58ed18417d7a34fb7
2022-07-27 16:44:56 +00:00
Florian Mayer
1bc04b1490 Add toybox-test to hwasan-postsubmit.
Change-Id: Id950edeaf2890b7547567ea5f9060755fef0f580
Test: Run tests under HWASan.
Bug: 193568145
2022-03-17 00:33:12 +00:00
Elliott Hughes
aa152dbf63 Move toybox tests to presubmit.
Bug: http://b/135744229
Test: treehugger
Change-Id: Ibfe1029f2383609c3f9905c6d1ee6d187da47921
2019-08-06 12:24:30 -07:00
Julien Desprez
f749c212fb Configure Toybox test again for Test mapping
Include the recommended host_support, device_support.

Test: atest toybox-tests
Bug: 135957483
Change-Id: Ifd13e6ce51585126d20d1b6563c9e7876bfee2a5
2019-06-28 11:40:24 -07:00
Julien Desprez
f91d9c802a Remove toybox from test mapping for now
Test: none
Bug: 135960326
Change-Id: I88e5ed996873bd88f9735c16c115b76f43481bf3
2019-06-24 20:00:39 -07:00
Julien Desprez
ba11fb979f Setup a basic first config to execute toybox tests
Needs aosp/987354.

Test: atest toybox-tests
Bug: 135744229
Change-Id: I1dd5efe7204bce9cf5eae82324810c226de41aeb
2019-06-21 09:09:35 -07:00