Yabin Cui
a32fc8685d
Don't use StringPrintf() in gtest runner.
...
Change-Id: I0cd0b3cbb952c65b1c449e88ce12964b93029538
2015-12-03 16:28:03 -08:00
Yabin Cui
d4c9b9d5ac
Improve unit test runner.
...
1. Read unit test's output while the test is running. Previously
we only read output when the test finishes, which has trouble
when the test outputs too many stuff.
2. Report failed unit test's exit code. It is useful when the
test doesn't fail in ASSERT_xxx, but in somewhere else.
Bug: 25392375
Change-Id: Ie90823337f7c2ee25fa489a5534801d991258f95
2015-12-03 13:20:39 -08:00
Yabin Cui
bc6379d7da
Remove the workaround which fixes JOB_COUNT in CTS test.
...
Bug: 24376925
Change-Id: Ib195ce1577ee9412068cc1b6223fc051b5bcfcaa
2015-10-06 16:30:14 -07:00
Elliott Hughes
0b2acdfcc9
Use const auto& in for loops.
...
Change-Id: Ic437c59797ee4e7dc38291da35c72d827bc89c8d
2015-10-02 18:25:19 -07:00
Christopher Ferris
daaaed18ce
Force cts to only run one test at a time.
...
Also, slightly increase the timeout for each test run.
Bug: 24198050
Change-Id: I2b0ebdebb909023d0f179e0a433c564266a99161
2015-09-25 09:16:31 -07:00
Yabin Cui
767fb1c5c6
build bionic gtest runner on mac.
...
Change-Id: I39a7e94b6662256646dfaeb8f9ecd5c03cd5fbc6
2015-09-01 15:40:38 -07:00
Yabin Cui
bf830ade7f
Omit comment when reading --gtest_list_tests option's output.
...
Gtest add comments when listing typed tests. And we should omit them.
Bug: 23040880
Change-Id: If6034af301337fc06eeab294d2dbe5317a6b7f91
2015-08-10 12:12:39 -07:00
Christopher Ferris
119cb55d43
gtest_repeat should allow negative values.
...
If you pass in a negative value to gtest_repeat, it should run forever.
The new runner didn't allow this, now it does.
Change-Id: Ie0002c12e2fdad22b264adca37c165cfcfe05c7a
2015-04-02 12:16:00 -07:00
Yabin Cui
64a9c4f697
Make gtest_main exit 1 when some test are failed.
...
This is the gtest behavior, which I think can make test status
judgement more convenient.
Change-Id: I7d3c210d1744b954a4148cd905dd5c353207fce8
2015-03-12 23:36:29 -07:00
Yabin Cui
f6237470a3
Make bionic gtest main be compatible with gtest output format for cts test.
...
Bug: 17589740
Change-Id: Ifab521da379a33bf0a7bf11c21386f936f0d494c
2015-02-26 19:03:54 -08:00
Yabin Cui
ea9c933f36
Make all output of child test go to parent process in gtest_main.
...
Change-Id: Iad460e89755051cdb99593cbf42c97d9a359f32b
2015-02-24 14:44:51 -08:00
Yabin Cui
ead08148bd
Add path separator in bionic-unit-tests program path.
...
Bug: 19220800
Change-Id: I4245b1270363544cd5f083fe7ea7d9b11b46cdc0
2015-02-05 10:39:37 -08:00
Yabin Cui
1d4c780a2e
Add signal handling in bionic gtest main.
...
The two bugs are very closely related and code amount is very small,
So I think they may be fixed in one change.
Bug: 19128558
Bug: 19129994
Change-Id: I44a35398e64dfca7e9676428cb8f4026e8f6e488
2015-02-04 19:06:07 -08:00
Yabin Cui
11c4353cdd
Add --gtest-filter as synonym for --gtest_filter in bionic gtest main.
...
Bug: 19130480
Change-Id: I0d3df70ee8f692581cc4b9b742c5f347259fd0d2
2015-01-28 14:28:14 -08:00
Yabin Cui
0bc4e9697e
Fix parse of gtest_filter in bionic gtest main.
...
Bug: 19130330
Change-Id: Id6a60570a8aab6ae7259ff228b3801285b378f77
2015-01-27 11:22:46 -08:00
Yabin Cui
4a82ede754
Rename "TIMEWARN" to "SLOW" in bionic gtest.
...
Bug: 19109188.
Change-Id: Idfe769ac652bf37642da24e4abb6061ca861d57e
2015-01-26 20:56:20 -08:00
Yabin Cui
657b1f9bef
Support --gtest_ouput option in bionic gtest main.
...
Bug: 19109500
Change-Id: Ib18f90ad522e66ea62dd4e02e314585d9b36e15f
2015-01-26 16:53:05 -08:00
Yabin Cui
516eb53113
Remove testcase time printing in bionic-unit-tests.
...
Bug: 19075565
Change-Id: Icccb60657a2985e96abb1703673f0ebe2199586a
2015-01-20 14:46:03 -08:00
Yabin Cui
be837360c3
Make bionic-unit-tests default run isolate mode.
...
Fix bug of handling signal terminated tests.
Bug: 17589740
Bug: 18951146
Change-Id: I4803382b26cd5454693090202b3ba38e3dbe66e5
2015-01-08 20:34:58 -08:00
Yabin Cui
294d1e2c9e
better gtest runner for bionic
...
1. option to run each test in a separate forked process: "--isolate".
2. warnings about slow tests: "--warnline".
3. run multiple tests at the same time: "-j N".
Bug: 17589740
Change-Id: Ife5f4cafec43aa051ad7bd9c9b2b7e2e437db0de
2014-12-13 18:53:34 -08:00