From 62cce740eaa9a7f1f1df4034d00d46db4854ca83 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 5 Nov 2018 14:22:42 -0500 Subject: [PATCH] sanitycheck: clarify -s vs -T options in ztest doc Clarify the difference and fix the ztest documentation adding more examples. This fixes #10662. Signed-off-by: Anas Nashif --- doc/subsystems/test/ztest.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/subsystems/test/ztest.rst b/doc/subsystems/test/ztest.rst index 511ddc4342..f17922e94c 100644 --- a/doc/subsystems/test/ztest.rst +++ b/doc/subsystems/test/ztest.rst @@ -19,7 +19,15 @@ be automatically built and run by the sanitycheck script. If you are testing the **bar** component of **foo**, you should copy the sample folder to ``tests/foo/bar``. It can then be tested with:: - ./scripts/sanitycheck -s tests/foo/bar/test + ./scripts/sanitycheck -s tests/foo/bar/test-identifier + + +In the example above ``tests/foo/bar`` signifies the path to the test and the +``test-identifier`` references a test defined in the file::`testcase.yaml` file. + +To run all tests defined in a test project, run:: + + ./scripts/sanitycheck -T tests/foo/bar/ The sample contains the following files: