forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sanitycheck: refinements to --list-tests
This packs a few improvements: - Add a smarter regex that will catch multiple combinations of ztest_[user_]unit_test[_setup_teardown](NAME[, setup, teardown]) as well as single liners like: ztest_test_suite(mutex_complex, ztest_user_unit_test(TESTNAME)); - Limit how much we look forward in suite_regex -- we don't have to look past the first argument, otherwise we consume too much and the loopup at suite_regex_match.start() will start too late. - Remove include_regex, unused - Fix the path where we warn about matches in achtung_regexes--it needed a few decodes and to use error() vs the unexistant warning() - Cleanup the path to produce the subcase names, doing the decode and the purging of any test_ prefix in scan_path(). Signed-off-by: Inaky Perez-Gonzalez <[email protected]>
- Loading branch information
1 parent
d67009d
commit 75e2d90
Showing
1 changed file
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters