twister: support defining testcases in yaml file

Some complex testsuite use macros and other mean to define testcases
which makes them unparseable. This ends up in a descripency between the
testplan and the test results.

Allow adding the testcases into the yaml and use those instead of
parsing the C files.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-03-26 07:57:46 -04:00
commit 8e805596d5
2 changed files with 23 additions and 5 deletions

View file

@ -43,6 +43,11 @@ mapping:
required: false
sequence:
- type: str
"testcases":
type: seq
required: false
sequence:
- type: str
"harness":
type: str
required: false
@ -153,6 +158,11 @@ mapping:
"arch_allow":
type: str
required: false
"testcases":
type: seq
required: false
sequence:
- type: str
"build_only":
type: bool
required: false