Skip to content

Commit 8a044e8

Browse files
feat(testkit): register tests and add a standalone test program
#[testkit::test] now also registers each test in a link-time registry, alongside the existing #[tokio::test] wrapper, so suites keep running under cargo test and nextest unchanged. testkit::main() runs the registered tests a binary links. Without a subcommand it speaks libtest's interface, so a harness = false target works under cargo test and nextest. Its subcommands are: - list: print each test's family, name, and description - ready: wait for the gateway, sharing its check with testkit-ready, and exit 2 if it is not ready in time - run (Unix only): run tests one at a time, each in its own process group with a timeout (SIGTERM, grace, SIGKILL), write a JUnit report, and exit 1 when a test failed or 2 when tests could not run A stopped test does not clean up its sandboxes yet; the README notes this. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
1 parent cc0642f commit 8a044e8

19 files changed

Lines changed: 3149 additions & 51 deletions

File tree

‎tests/suites/conformance/Cargo.lock‎

Lines changed: 208 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)