-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SWDEV-359379 - catch2: Standalone single exe per file [EXPERIMENTAL- DO NOT MERGE] #86
base: develop
Are you sure you want to change the base?
Conversation
Change-Id: I292765dded4ff745f02d3d284168663875853d76
It was not clear on what to do this. and it seems that hip-tests is not being used anywhere. I modified What I think I'll do is drop all the changes to tests from ROCm/HIP#2975 and move these changes to hip-tests? Most of these changes are trivial like doing/not doing things based on |
I was able to integrate this into CHIP-SPV but the main issues remain:
consider a test file I would like to build the code and run As it stands now, ctest will not know where this test is located so it will have to run all the executables (JITing things in the process) until it finds it and then run. If I want to re-run the test case this process will be repeated because the test discovery doesn't seem to persist. Please note that this is a regression from HIP 4.x where things were working well. |
To illustrate: ~6min to run a single test through cmake and 6min again running the 2nd time (meaning test registration is not saved)
Compare this to running the test directly from the executable:
|
I noticed that this issue is also present HIP. It was introduced at some point after 4.5, I believe. Here is a diff that fixes the issue for me:
|
Hi @pvelesko , instructions for building HIP tests from hip-tests project are at https://github.com/ROCm-Developer-Tools/hip-tests#build-hip-catch-tests. Yes please move HIP tests (catch ) related changes to this project as a PR. |
I was under the impression that all documentation is moving to docs.amd.com so it would be nice to include these in the "installation guide" or something like that. |
@pvelesko - your diff in the other comment is the original code from catch framework. This had worked fine for linux but on windows we had issues detecting the executable. It looked like a race condition between generation of exe and using the exe to find the tests names. |
Yes - I'm still using the integrated HIP tests rather than hip-tests due to this. Could you integrate this into the current branch for the UNIX path? It would be very helpful and I could switch to using hip-tests. maybe an option like |
Standalone has been merged and test discovery has been addressed in #459 - this can be closed. |
SWDEV-359379 - catch2: Standalone single exe per file
Use -DSTANDALONE_TESTS=1 to build standalone tests one exe per file. Default option will continue to build one exe for all the files under a submodule.
TODO - This PR fails to execute on Windows. Will update this PR when I have the fix for windows too.
Currently only ABM folder is used for experiment. Please uncomment the folders in [catch/CMakeLists.txt] file to build other folders.
Change-Id: I292765dded4ff745f02d3d284168663875853d76