33# SPDX-License-Identifier: Apache-2.0
44"""Zephyr Sanity Tests
55
6+ Also check the "User and Developer Guides" at https://docs.zephyrproject.org/
7+
68This script scans for the set of unit test applications in the git
79repository and attempts to execute them. By default, it tries to
810build each test case on one platform per architecture, using a precedence
4244 when building or running the test case.
4345
4446 build_only: <True|False> (default False)
45- If true, don't try to run the test under QEMU even if the
46- selected platform supports it.
47+ If true, don't try to run the test even if the selected platform
48+ supports it.
4749
4850 build_on_all: <True|False> (default False)
4951 If true, attempt to build test on all available platforms.
@@ -2723,8 +2725,8 @@ def parse_arguments():
27232725 """
27242726Artificially long but functional example:
27252727 $ ./scripts/sanitycheck -v \\
2726- --testcase-root tests/ \\
2727- --testcase-root mytests/ \\
2728+ --testcase-root tests/ztest/base \\
2729+ --testcase-root tests/kernel \\
27282730 --test tests/ztest/base/testing.ztest.verbose_0 \\
27292731 --test tests/kernel/fifo/fifo_api/kernel.fifo.poll
27302732
@@ -2776,7 +2778,7 @@ Artificially long but functional example:
27762778 test_xor_subtest .add_argument (
27772779 "-s" , "--test" , action = "append" ,
27782780 help = "Run only the specified test cases. These are named by "
2779- "path/relative/to/Zephyr/base/section.name.in.testcase.yaml>" )
2781+ "< path/relative/to/Zephyr/base/section.name.in.testcase.yaml>" )
27802782
27812783 test_xor_subtest .add_argument (
27822784 "--sub-test" , action = "append" ,
@@ -2794,7 +2796,9 @@ Artificially long but functional example:
27942796
27952797 parser .add_argument (
27962798 "-o" , "--testcase-report" ,
2797- help = "Output a CSV spreadsheet containing results of the test run" )
2799+ help = """Output a CSV spreadsheet containing results of the test run.
2800+ The handler_time column is left blank for tests that were only
2801+ compiled and not run.""" )
27982802 parser .add_argument (
27992803 "-d" , "--discard-report" ,
28002804 help = "Output a CSV spreadsheet showing tests that were skipped "
@@ -2844,7 +2848,11 @@ Artificially long but functional example:
28442848 parser .add_argument ("--detailed-report" ,
28452849 action = "store" ,
28462850 metavar = "FILENAME" ,
2847- help = "Generate a junit report with detailed testcase results." )
2851+ help = """Generate a junit report with detailed testcase results.
2852+ Unlike the CSV file produced by --testcase-report, this XML
2853+ report includes only tests which have run and none which were
2854+ merely built. If an image with multiple tests crashes early then
2855+ later tests are not accounted for either.""" )
28482856
28492857 parser .add_argument ("--timestamps" ,
28502858 action = "store_true" ,
0 commit comments