Skip to content
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

Rebuild when test file changes #584

Merged
merged 13 commits into from
Feb 21, 2024
Merged

Conversation

bennibbelink
Copy link
Contributor

Closes #476. CMake wasn't rebuilding on a change to the test files because the cyclus_unit_tests target doesn't reference the source files directly - we use the UseCyclus macro to handle a lot of the cycamore build and "return" env vars holding build info.

This forces cmake to rebuild the test/ directory when one of the test files changes.

I'm no CMake expert... if someone knows a better way to handle this please let me know.

Copy link

Build Status Report

Build FROM cyclus_20.04_apt/cyclus:latest
  • Cycamore: Success
  • Cymetric: Success
Build FROM cyclus_20.04_apt/cyclus:stable
  • Cycamore: Failure
  • Cymetric: Skipped due to upstream failure ⚠️
Build FROM cyclus_20.04_conda/cyclus:latest
  • Cycamore: Success
  • Cymetric: Success
Build FROM cyclus_20.04_conda/cyclus:stable
  • Cycamore: Failure
  • Cymetric: Skipped due to upstream failure ⚠️
Build FROM cyclus_22.04_apt/cyclus:latest
  • Cycamore: Success
  • Cymetric: Success
Build FROM cyclus_22.04_apt/cyclus:stable
  • Cycamore: Failure
  • Cymetric: Skipped due to upstream failure ⚠️
Build FROM cyclus_22.04_conda/cyclus:latest
  • Cycamore: Success
  • Cymetric: Success
Build FROM cyclus_22.04_conda/cyclus:stable
  • Cycamore: Failure
  • Cymetric: Skipped due to upstream failure ⚠️

@bennibbelink bennibbelink requested a review from gonuke February 19, 2024 21:47
Copy link
Member

@gonuke gonuke left a comment

Choose a reason for hiding this comment

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

LGTM - no clear way to test it without downloading and building/rebuilding

@gonuke gonuke merged commit 38e6017 into cyclus:main Feb 21, 2024
10 checks passed
@bennibbelink bennibbelink deleted the recognize-test-changes branch February 21, 2024 00:54
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.

CMake does not recognize changes to *_tests.cc
2 participants