-
Notifications
You must be signed in to change notification settings - Fork 12
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
224.fre make compile test #295
base: main
Are you sure you want to change the base?
Conversation
…e-make-compile-test
…e-make-compile-test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me! We discussed a number of these changes last week.
# Check for creation of compile script | ||
# Check for FMS directory | ||
# Check for log.compile file | ||
assert [Path(f"{OUT}/fremake_canopy/test/null_model_full/{plat}-{targ}/exec/compile.sh").exists(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should probably also check for the executable file too, the other files might still be there if it failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this catch! You're 100% right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I can't actually run the full compile here because it needs the checked out source code and the makefile (which are not made in this test). I can change the test name though to something more informative like "test_compile_execution_logfile_creation" or something (b/c even though the compile fails, the test passes since those paths are there)
Or, I can include that path check for the executable but mark the test as fail.
Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I suppose my first though there might be covered by def test_bad_target_compilelog():
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: I forgot I can just set an assert equal to False
Describe your changes
Issue ticket number and link (if applicable)
Checklist before requesting a review