Skip to content

Cleanup of tests #373

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

Merged

Conversation

JuanGonzalezCaminero
Copy link
Contributor

Moving IntegrationBenchmark into the test directory as it is not meant to be an example. Moving old tests into test/unit and the current validation and reproducibility into test/regression so that everything is registered in the same place.

Changed the test scripts to output into a temporary directory to make cleanup less error-prone

@phsft-bot
Copy link

Can one of the admins verify this patch?

@JuanGonzalezCaminero JuanGonzalezCaminero marked this pull request as ready for review April 1, 2025 15:08
@JuanGonzalezCaminero JuanGonzalezCaminero changed the title Some cleanup of tests Cleanup of tests Apr 1, 2025
Copy link
Collaborator

@SeverinDiederichs SeverinDiederichs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much cleaner now, thank you for the restructuring!

@SeverinDiederichs SeverinDiederichs merged commit f1b0dd5 into apt-sim:master Apr 2, 2025
3 checks passed
@JuanGonzalezCaminero JuanGonzalezCaminero deleted the track_weights branch April 2, 2025 08:47
SeverinDiederichs added a commit that referenced this pull request Apr 3, 2025
This mini PR fixes a minor hiccup from #373 :

The copying of the gdml was flawed, if one tried to reconfigure the
cmake config (e.g., switching from `-DASYNC_MODE=ON` to `OFF`) it would
fail with:

```
CMake Error at test/regression/CMakeLists.txt:27 (file):
  file COPY cannot copy file
  "/home/ndiederi/software/AdePT/examples/data/testEm3.gdml" to
  "/home/ndiederi/software/AdePT/adept-build/testEm3.gdml/testEm3.gdml": Not
  a directory.
```

This PR fixes it by using the directory as destination and not the file
itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants