When we want to make tee-io-validator part of a larger product, we want tee-io-validator to be a library.
The library provides an interface to test a specific test config. For example:error_code validate_IDE( IDE_TEST_CONFIG &config);
About the interface, I have three requirements:
- define a clear header file and define all the structures and macros used in the interface;
- return a clear error code when meeting the first error in the testing flow;
- keep silent; do not print anything in the function;