intel / tee-io-validator

Other
11 stars 8 forks source link

Refine the default test config functions #111

Closed mxu9 closed 2 months ago

mxu9 commented 2 months ago

Each configuration has its own specific enable/disable/check/support funcs. The validator calls the configurations's funcs with chain, which means if there are 2 configurations, then validator calls the config's func one by one.

In a test case, there is default configuration funcs, such as checking if IDE Stream is supported. So in the previous implementation, these default funcs are:

Actually they are type of IDE_TEST_CONFIGURATION_TYPE_DEFAULT. This patch calls the default type configuration funcs instead of the test_config_xxx_common funcs. This is to reduce the interfaces when a new test_category is introduced, such as CXL-IDE, TDISP, etc.