-
Notifications
You must be signed in to change notification settings - Fork 5
Test Filter
There are two ways to disable tests:
On runtime
On compile time
To disable test groups on runtime use the GDBManipulator command
-d <filter> or --disableGroups <filter>
-e <filter> or --enableGroups <filter>
This enables a runtime filter on the target that filters each test group that has the suffix.
To define the target buffer size see the deUnit configuration
To use this feature is is requiered to call each testgroup (on the target) by
if(!shallExecuteTestGroup("groupName")){callGroupe();} else {disabledTest ++;}
Or to generate the test files by ab awk script.
Each test group applies to the filter if the group name is equal to one subfilter.
It is possible to separate filters with <:>
e.g. --disableGroups TEST_HAL:TEST_LCD
It is also possible the extend a sub filter with the wildcard <*> which stands for every string.
e.g. --disableGroups UNIT*:*SYSTEM*
does disable each test group with stats with "UNIT" or does contain "SYSTEM".
If the "enable filter" is set just tests that do apply to this filter(and are not disabled) get executed.
If the "disable filter" is set just tests that do not apply to this filter get executed.
To disable test on compile time it is possible to opt out each group that has the suffix while calling the awk script.
E.g.
awk -v testFilter="<group>" -f awk/parseSingleFile.awk test.c
Note: Here are no Wildcards allowed! The Test group must have the suffix! Disable multiple Test Groups
To Disable more than one Group it is in both ways possible to to separate the test groups with a <:>
E.g.
awk -v testFilter="TEST_HAL:TEST_LCD>"
GDBManipulator -d TEST_HAL:TEST_LCD
That would disable each test with the suffix TEST_HAL and TEST_LCD.