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
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
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