CASE DiscoverAndRunTests [STARTED]
DiscoverAndRunTestsBasicPass [RUNNING]
------------------------------------------------
RUNNING TEST: /test-memfs/0/succeed1.sh
Success!
PASSED: /test-memfs/0/succeed1.sh passed
------------------------------------------------
RUNNING TEST: /test-memfs/0/succeed2.sh
Success!
PASSED: /test-memfs/0/succeed2.sh passed
SUMMARY: Ran 2 tests: 0 failed (0.001 sec)
[PASSED] (11 ms)
DiscoverAndRunTestsBasicFail [RUNNING]
------------------------------------------------
RUNNING TEST: /test-memfs/1/succeed.sh
Success!
PASSED: /test-memfs/1/succeed.sh passed
------------------------------------------------
RUNNING TEST: /test-memfs/1/fail.sh
Failure!
FAILURE: /test-memfs/1/fail.sh exited with nonzero status: 77
The following tests failed:
/test-memfs/1/fail.sh: returned nonzero: 77
SUMMARY: Ran 2 tests: 1 failed (0.001 sec)
[PASSED] (11 ms)
DiscoverAndRunTestsFallsBackToDefaultDirs [RUNNING]
------------------------------------------------
RUNNING TEST: /test-memfs/2/succeed.sh
Success!
PASSED: /test-memfs/2/succeed.sh passed
SUMMARY: Ran 1 tests: 0 failed (0.001 sec)
[PASSED] (6 ms)
DiscoverAndRunTestsFailsWithNoTestGlobsOrDefaultDirs [RUNNING]Test list path, test directory globs or default test directories must be specified. [PASSED] (0 ms)
DiscoverAndRunTestsFailsWithBadArgs [RUNNING]./runtests: unrecognized option: ?
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
-v: Verbose output
-q: Quiet output
-S: Turn ON Small tests (on by default)
-s: Turn OFF Small tests
-M: Turn ON Medium tests (on by default)
-m: Turn OFF Medium tests
-L: Turn ON Large tests (off by default)
-l: Turn OFF Large tests
-P: Turn ON Performance tests (off by default)
-p: Turn OFF Performance tests
-a: Turn on All tests
-t: Filter tests by name
(accepts a comma-separated list)
-f: Run tests specified in this file
-o: Write test output to a directory
-w: Watchdog timeout
(accepts the timeout value in seconds)
The default is up to each test.
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
The test selection options -[sSmMlLpP] only work for
tests that support the RUNTESTS_TEST_CLASS environment
variable.
The watchdog timeout option -w only works for tests
that support the RUNTESTS_WATCHDOG_TIMEOUT environment
variable.
-f and [directory globs ...] are mutually exclusive.
[PASSED] (0 ms)
DiscoverAndRunTestsWithGlobs [RUNNING]
------------------------------------------------
RUNNING TEST: /test-memfs/5/succeed.sh
Success!
PASSED: /test-memfs/5/succeed.sh passed
------------------------------------------------
RUNNING TEST: /test-memfs/5/A/B/C/succeed.sh
Success!
PASSED: /test-memfs/5/A/B/C/succeed.sh passed
------------------------------------------------
RUNNING TEST: /test-memfs/5/A/D/C/succeed.sh
Success!
PASSED: /test-memfs/5/A/D/C/succeed.sh passed
SUMMARY: Ran 3 tests: 0 failed (0.001 sec)
[PASSED] (20 ms)
DiscoverAndRunTestsWithOutput [RUNNING]
------------------------------------------------
RUNNING TEST: /test-memfs/6/succeed.sh
Success!
PASSED: /test-memfs/6/succeed.sh passed
------------------------------------------------
RUNNING TEST: /test-memfs/6/fail.sh
Failure!
FAILURE: /test-memfs/6/fail.sh exited with nonzero status: 77
Warning: Could not sync /: Not supported
The following tests failed:
/test-memfs/6/fail.sh: returned nonzero: 77
SUMMARY: Ran 2 tests: 1 failed (0.001 sec)
[PASSED] (14 ms)
DiscoverAndRunTestsWithSyslogOutput [RUNNING]
------------------------------------------------
RUNNING TEST: /test-memfs/7/succeed.sh
Success!
PASSED: /test-memfs/7/succeed.sh passed
------------------------------------------------
RUNNING TEST: /test-memfs/7/fail.sh
Failure!
FAILURE: /test-memfs/7/fail.sh exited with nonzero status: 77
Warning: Could not sync /: Not supported
The following tests failed:
/test-memfs/7/fail.sh: returned nonzero: 77
SUMMARY: Ran 2 tests: 1 failed (0.001 sec)
[PASSED] (14 ms)
CASE DiscoverAndRunTests [PASSED]
CASE RunTests [STARTED]
RunTestsWithVerbosity [RUNNING]
------------------------------------------------
RUNNING TEST: /test-memfs/8/succeed.sh
Success! v=77
PASSED: /test-memfs/8/succeed.sh passed
[PASSED] (6 ms)
RunTestsWithArguments [RUNNING]
------------------------------------------------
RUNNING TEST: /test-memfs/9/succeed.sh
Success! first second third -4 -- - seventh
PASSED: /test-memfs/9/succeed.sh passed
[PASSED] (6 ms)
CASE RunTests [PASSED]
CASE DiscoverTestsInListFile [STARTED]
DiscoverTestsInListFileWithTrailingWhitespace [RUNNING] [PASSED] (0 ms)
CASE DiscoverTestsInListFile [PASSED]
CASE DiscoverTestsInDirGlobs [STARTED]
DiscoverTestsInDirGlobsBasic [RUNNING] [PASSED] (1 ms)
DiscoverTestsInDirGlobsFilter [RUNNING] [PASSED] (1 ms)
DiscoverTestsInDirGlobsIgnore [RUNNING] [PASSED] (2 ms)
CASE DiscoverTestsInDirGlobs [PASSED]
CASE RunTest [STARTED]
RunTestSuccess [RUNNING]PASSED: /test-memfs/14/succeed.sh passed
[PASSED] (5 ms)
RunTestSuccessWithStdout [RUNNING]Expect this!
PASSED: /test-memfs/15/succeed.sh passed
[PASSED] (6 ms)
RunTestFailureWithStderr [RUNNING]Expect this!
FAILURE: /test-memfs/16/fail.sh exited with nonzero status: 77
[PASSED] (6 ms)
RunTestFailureToLoadFile [RUNNING]FAILURE: Failed to launch i/do/not/exist/: -40 (ZX_ERR_IO): failed to load executable from i/do/not/exist/
[PASSED] (0 ms)
CASE RunTest [PASSED]
CASE ResolveGlobs [STARTED]
ResolveGlobsNoMatches [RUNNING] [PASSED] (0 ms)
ResolveGlobsMultipleMatches [RUNNING] [PASSED] (2 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] (1 ms)
MkDirAllParentAlreadyExists [RUNNING] [PASSED] (1 ms)
MkDirAllParentDoesNotExist [RUNNING] [PASSED] (1 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] (3 ms)
CASE TestHelpers [PASSED]
CASE LogListenerTests [STARTED]
TestLog [RUNNING] [PASSED] (0 ms)
TestLogMany [RUNNING] [PASSED] (0 ms)
TestDroppedLogs [RUNNING] [PASSED] (0 ms)
CASE LogListenerTests [PASSED]
CASE PublishDataTests [STARTED]
RunTestDontPublishData [RUNNING]
CASE publish_data_helper_tests [STARTED]
publish_data [RUNNING] [PASSED] (0 ms)
CASE publish_data_helper_tests [PASSED]
====================================================
Results for test binary "/test-memfs/26/publish-data-helper":
SUCCESS! All test cases passed!
CASES: 1 SUCCESS: 1 FAILED: 0
====================================================
PASSED: /test-memfs/26/publish-data-helper passed
[PASSED] (6 ms)
RunTestsPublishData [RUNNING]
------------------------------------------------
RUNNING TEST: /test-memfs/27/publish-data-helper
CASE publish_data_helper_tests [STARTED]
publish_data [RUNNING] [PASSED] (0 ms)
CASE publish_data_helper_tests [PASSED]
====================================================
Results for test binary "/test-memfs/27/publish-data-helper":
SUCCESS! All test cases passed!
CASES: 1 SUCCESS: 1 FAILED: 0
====================================================
PASSED: /test-memfs/27/publish-data-helper passed
[PASSED] (8 ms)
RunAllTestsPublishData [RUNNING]
------------------------------------------------
RUNNING TEST: /test-memfs/28/publish-data-helper
CASE publish_data_helper_tests [STARTED]
publish_data [RUNNING] [PASSED] (0 ms)
CASE publish_data_helper_tests [PASSED]
====================================================
Results for test binary "/test-memfs/28/publish-data-helper":
SUCCESS! All test cases passed!
CASES: 1 SUCCESS: 1 FAILED: 0
====================================================
PASSED: /test-memfs/28/publish-data-helper passed
Warning: Could not sync /: Not supported
SUMMARY: Ran 1 tests: 0 failed (0.001 sec)
[PASSED] (10 ms)
CASE PublishDataTests [PASSED]
CASE FuchsiaComponentInfo [STARTED]
TestFileComponentInfoTest [RUNNING] [PASSED] (0 ms)
CASE FuchsiaComponentInfo [PASSED]
====================================================
Results for test binary "/boot/test/sys/runtests-utils":
SUCCESS! All test cases passed!
CASES: 15 SUCCESS: 15 FAILED: 0
====================================================