kunit: add tests for filtering attributes
authorRae Moar <rmoar@google.com>
Tue, 25 Jul 2023 21:25:19 +0000 (21:25 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 26 Jul 2023 19:29:41 +0000 (13:29 -0600)
commit76066f93f1df27657eb937b7c9c091e3a6abf4db
tree602c7775e9ac5e0c8eaa0d306a13b02668f934aa
parenta547c4ce10bde42d4e9ea63d1155970fbfd77db2
kunit: add tests for filtering attributes

Add four tests to executor_test.c to test behavior of filtering attributes.

- parse_filter_attr_test - to test the parsing of inputted filters

- filter_attr_test - to test the filtering procedure on attributes

- filter_attr_empty_test - to test the behavior when all tests are filtered
  out

- filter_attr_skip_test - to test the configurable filter_action=skip
  option

Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Rae Moar <rmoar@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/executor_test.c