Root directory of the filesystem used for testing: /b/s/w/ir/tmp/t/JcdixN
CASE DiscoverAndRunTests [STARTED]
DiscoverAndRunTestsBasicPass [RUNNING]
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/0/succeed1.sh
Success!
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/0/succeed2.sh
Success!
SUMMARY: Ran 2 tests: 0 failed (0.001 sec)
[PASSED] (7 ms)
DiscoverAndRunTestsBasicFail [RUNNING]
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/1/fail.sh
Failure!
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/1/succeed.sh
Success!
The following tests failed:
/b/s/w/ir/tmp/t/JcdixN/1/fail.sh: returned nonzero: 77
SUMMARY: Ran 2 tests: 1 failed (0.001 sec)
[PASSED] (12 ms)
DiscoverAndRunTestsFallsBackToDefaultDirs [RUNNING]
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/2/succeed.sh
Success!
SUMMARY: Ran 1 tests: 0 failed (0.001 sec)
[PASSED] (9 ms)
DiscoverAndRunTestsFailsWithNoTestGlobsOrDefaultDirs [RUNNING]Test list path, test directory globs or default test directories must be specified. [PASSED] (5 ms)
DiscoverAndRunTestsFailsWithBadArgs [RUNNING]Usage: ./runtests [-q|-v] [-S|-s] [-M|-m] [-L|-l] [-P|-p] [-a]
[-w timeout] [-t test names] [-o directory]
[directory globs ...]
[-- [-args -to -the -test -bin]]
The required [directory globs...] is a list of
globs which match directories containing tests to run,
non-recursively. Note that non-directories captured by
a glob will be silently ignored.
After directory globs, `--` can be followed by any
number of arguments to pass to the binaries under
test.
options:
-h: See this message
-d: Dry run, just print test file names and exit
-v: Verbose output [1]
-q: Quiet output
-S: Turn ON Small tests (on by default) [2]
-s: Turn OFF Small tests [2]
-M: Turn ON Medium tests (on by default) [2]
-m: Turn OFF Medium tests [2]
-L: Turn ON Large tests (off by default) [2]
-l: Turn OFF Large tests [2]
-P: Turn ON Performance tests (off by default) [2]
-p: Turn OFF Performance tests [2]
-a: Turn on All tests
-t: Filter tests by name
(accepts a comma-separated list)
-f: Run tests specified in this file [3]
-r: Repeat the test suite this many times
-o: Write test output to a directory [4]
-w: Watchdog timeout [5]
(accepts the timeout value in seconds)
The default is up to each test.
[1] -v will pass "v=1" argument to the test binary.
Not all test frameworks will honor this argument,
and some, like Rust, may interpret it as a filter.
Use "-- --nocapture" for a similar behaviour
when running Rust tests.
[2] The test selection options -[sSmMlLpP] only work
for tests that support the RUNTESTS_TEST_CLASS
environment variable.
[3] -f and [directory globs ...] are mutually
exclusive.
[4] If -o is enabled, then a JSON summary of the test
results will be written to a file named
"summary.json" under the desired directory, in
addition to each test's standard output and error.
The summary contains a listing of the tests
executed by full path (e.g.,
/boot/test/core/futex_test), as well as whether
the test passed or failed. For details, see
//system/ulib/runtests-utils/summary-schema.json
[5] The watchdog timeout option -w only works for
tests that support the RUNTESTS_WATCHDOG_TIMEOUT
environment variable.
[PASSED] (5 ms)
DiscoverAndRunTestsWithGlobs [RUNNING]
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/5/succeed.sh
Success!
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/5/A/B/C/succeed.sh
Success!
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/5/A/D/C/succeed.sh
Success!
SUMMARY: Ran 3 tests: 0 failed (0.001 sec)
[PASSED] (16 ms)
DiscoverAndRunTestsWithOutput [RUNNING]
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/6/fail.sh
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/6/succeed.sh
The following tests failed:
/b/s/w/ir/tmp/t/JcdixN/6/fail.sh: returned nonzero: 77
SUMMARY: Ran 2 tests: 1 failed (0.001 sec)
[PASSED] (14 ms)
DiscoverAndRunTestsWithSyslogOutput [RUNNING]
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/7/fail.sh
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/7/succeed.sh
The following tests failed:
/b/s/w/ir/tmp/t/JcdixN/7/fail.sh: returned nonzero: 77
SUMMARY: Ran 2 tests: 1 failed (0.001 sec)
[PASSED] (13 ms)
CASE DiscoverAndRunTests [PASSED]
CASE RunTests [STARTED]
RunTestsWithVerbosity [RUNNING]
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/8/succeed.sh
[PASSED] (9 ms)
RunTestsWithArguments [RUNNING]
------------------------------------------------
RUNNING TEST: /b/s/w/ir/tmp/t/JcdixN/9/succeed.sh
[PASSED] (9 ms)
CASE RunTests [PASSED]
CASE DiscoverTestsInListFile [STARTED]
DiscoverTestsInListFileWithTrailingWhitespace [RUNNING] [PASSED] (0 ms)
CASE DiscoverTestsInListFile [PASSED]
CASE DiscoverTestsInDirGlobs [STARTED]
DiscoverTestsInDirGlobsBasic [RUNNING] [PASSED] (0 ms)
DiscoverTestsInDirGlobsFilter [RUNNING] [PASSED] (0 ms)
DiscoverTestsInDirGlobsIgnore [RUNNING] [PASSED] (5 ms)
CASE DiscoverTestsInDirGlobs [PASSED]
CASE RunTest [STARTED]
RunTestSuccess [RUNNING] [PASSED] (8 ms)
RunTestSuccessWithStdout [RUNNING] [PASSED] (9 ms)
RunTestFailureWithStderr [RUNNING] [PASSED] (9 ms)
RunTestFailureToLoadFile [RUNNING]FAILURE: posix_spawn failed: No such file or directory
[PASSED] (0 ms)
CASE RunTest [PASSED]
CASE ResolveGlobs [STARTED]
ResolveGlobsNoMatches [RUNNING] [PASSED] (0 ms)
ResolveGlobsMultipleMatches [RUNNING] [PASSED] (0 ms)
CASE ResolveGlobs [PASSED]
CASE WriteSummaryJSON [STARTED]
WriteSummaryJSONSucceeds [RUNNING] [PASSED] (0 ms)
WriteSummaryJSONSucceedsWithoutSyslogPath [RUNNING] [PASSED] (0 ms)
WriteSummaryJSONBadTestName [RUNNING]Error: output_file was empty or all slashes: /////
[PASSED] (0 ms)
CASE WriteSummaryJSON [PASSED]
CASE MkDirAll [STARTED]
MkDirAllTooLong [RUNNING] [PASSED] (0 ms)
MkDirAllAlreadyExists [RUNNING] [PASSED] (0 ms)
MkDirAllParentAlreadyExists [RUNNING] [PASSED] (0 ms)
MkDirAllParentDoesNotExist [RUNNING] [PASSED] (0 ms)
CASE MkDirAll [PASSED]
CASE JoinPath [STARTED]
JoinPathNoTrailingSlash [RUNNING] [PASSED] (0 ms)
JoinPathTrailingSlash [RUNNING] [PASSED] (0 ms)
JoinPathAbsoluteChild [RUNNING] [PASSED] (0 ms)
CASE JoinPath [PASSED]
CASE IsInWhitelist [STARTED]
EmptyWhitelist [RUNNING] [PASSED] (0 ms)
NonemptyWhitelist [RUNNING] [PASSED] (0 ms)
CASE IsInWhitelist [PASSED]
CASE ParseTestNames [STARTED]
ParseTestNamesEmptyStr [RUNNING] [PASSED] (0 ms)
ParseTestNamesEmptyStrInMiddle [RUNNING] [PASSED] (0 ms)
ParseTestNamesNormal [RUNNING] [PASSED] (0 ms)
ParseTestNamesTrailingComma [RUNNING] [PASSED] (0 ms)
CASE ParseTestNames [PASSED]
CASE TestHelpers [STARTED]
ScopedDirsAndFilesAreIndeedScoped [RUNNING] [PASSED] (0 ms)
CASE TestHelpers [PASSED]
====================================================
Results for test binary "/b/s/w/ir/k/zircon/build-x64/host_tests/runtests-utils-test.debug":
SUCCESS! All test cases passed!
CASES: 12 SUCCESS: 12 FAILED: 0
====================================================