Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable reuse of eglib native test framework and test driver source.
In current eglib test framework there is no mechanism to specify where the include file describing all tests is located. Current implementation also assumes it is the main entry point of the process since it defines the main symbol. There are several scenarios where it could make sense to reuse eglib test framework and its driver in other native unit test projects unit testing native code. In those scenarios it would be nice to include existing driver.c from eglib/test (no copy) and use toolchain capabilities to include needed header with test descriptions and change main symbol name, since main will most likely be defined elsewhere. This can be achieved by two simple defines that can be set when embedding eglib test framwork in other native binaries. By default these defines will not be set and current behavior will be preserved.
- Loading branch information