Removing usage of setTargetBackend from unittests #3793
+642
−866
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the second step towards removing
cudaq::set_target_backendandquantum_platform::setTargetBackend)from the public interfaces. In this step, all usages ofquantum_platform::setTargetBackend)are removed from the tests.Instead of calling
the tests now link in backendConfig.cpp and set target through NVQPP_TARGET_BACKEND_CONFIG.
Tests had to be split for each configuration, since the configuration can now only be set at compile time.
Some setups had to be moved from the test into the invoking script because the information is needed before the test enters main.
There are also some clean-ups to use the default cmake settings and variables.
The last step will be to remove the calls from the public interfaces, however this will have some impact on the documentation so it will be a separate PR.