Commit Graph

13 Commits (61fe8e07a126fe06cac5078bc35a7568ed71e8f3)

Author SHA1 Message Date
Niklas Hauser b119cb2280 Case: `timeout_ms` is unsigned, use 0 as do-not-use indicator. 2016-04-28 15:17:18 -05:00
Niklas Hauser a045c44f78 Refactor `set_up` to `setup`, `tear_down` to `teardown`. It's a verb vs. noun thing. 2016-04-28 15:17:14 -05:00
Niklas Hauser 9c32e01d52 Harness: Add `is_busy()` method. 2016-04-28 15:17:09 -05:00
Niklas Hauser e77743d6a6 Types: Add repeat count to `control_flow_handler_t`. 2016-04-28 15:17:05 -05:00
Niklas Hauser 2cf2ef5415 Move default handlers into specification. 2016-04-28 15:16:51 -05:00
Niklas Hauser 9a4e0d2da8 Add Specification class with common setup and teardown handlers. 2016-04-28 15:16:47 -05:00
Niklas Hauser e2a5d97f77 Harness: Add empty test case detection. 2016-04-28 15:16:44 -05:00
Niklas Hauser 2bbf725bcc Harness: Make it interrupt safe.
We do not want to have a call to `validate_callback()` before
`run_next_case()` is finished or while `handle_timeout()` is executing.
2016-04-28 15:16:40 -05:00
Niklas Hauser 8d84612472 Harness: Add correct handling of failures in setup and teardown handlers. 2016-04-28 15:16:36 -05:00
Niklas Hauser ad8fdc62d6 Defaults: Set greentea default handlers. 2016-04-28 15:16:24 -05:00
Niklas Hauser 64f54ed35c Harness: Call case setup only once for control flow cases. 2016-04-28 15:16:20 -05:00
Niklas Hauser 06fc81f99d Add much better default handler declaration and usage. 2016-04-28 15:16:16 -05:00
Niklas Hauser 171033622b Move types and classes into seperate header files. Rename TestHarness to Harness. 2016-04-28 15:16:12 -05:00