A lot of the unit tests make use of the C++ thread library but the
cmakefile doesn't explicitly link them to the pthread library but
instead rely on hipcc to implicitly link in the pthread library.
Some tests that rely on librt have a similar issue. The tests
break when we are cleaning up hipcc by removing the implcit linking
to those libraries.
* SWDEV-359379 - catch2: Standalone single exe per file
-workaround for rsp file issue.
-Creates single exe per file
-tests detection is still during execution time and NOT compile time
Change-Id: Iddfb83d57b2d767212f3d9307a276b7d572da6cd
* SWDEV-359379 - Update CMakeList
* Update Catch.cmake
* Temporarily disable failing tests
- Removed ifdef from hipTestContext class
- Fix potential race condition in hipTest::launchRTCKernel()
- Improve documentation
- Move moduleUnloading to main() instead of explicitly calling it on every test
- Fix code formating
- Fix segmentation fault caused by using catch2 macro after catch2 is destroyed
Earlier ctest file creation was taking place during build time.
Due to cmake framework issue the file creation had issues,
which in turn failed the test build.
This change moves this logic to the execution phase
and gets rid of the unwanted dependency during build time
Change-Id: Ifbf7e325f1b15a8be12e76560a6d339bc76705ee