-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Make sure tests can be run offline and by adding new cmake switch #4851
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
Conversation
|
This pull request has been marked as stale because it has had no activity for 30 days. While we won’t close it automatically, we encourage you to update or comment if it is still relevant. Keeping pull requests active and up-to-date helps us review and merge changes more efficiently. Thank you for your contributions! |
|
rebased |
9632e41 to
5b11bcd
Compare
|
json-test-data is now part of sid, and I removed the hardcoded version from the directory. @nlohmann can you please have another look? thanks |
nlohmann
left a comment
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 the idea of the PR can be achieved by adding test labels and leaving the CMake files as is. Then a test directory can be passed via -DJSON_TEST_DATA_DIR=... and tests that require internet can be excluded via ctest -LE ....
0acd9c8 to
4099eed
Compare
|
So nothing left to merge :D |
|
No, I think you still need to annotate the tests that require internet so you can skip those. |
|
@nlohmann the tests requiring git are the same requiring internet :) |
|
I'd rather not add an alias label. However, maybe this text from the README could be updated:
Thoughts? |
1a090a9 to
3eecdbc
Compare
nlohmann
left a comment
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.
Please revert this change. Renaming the label will be breaking other people's workflows.
3eecdbc to
ac4b99c
Compare
|
What do you think about this one? |
nlohmann
left a comment
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.
No, please do not add another label. This is all complexity down the road. I think a note to the README that if somebody wants to execute the test suite without internet, then git_required is there to help.
(Sorry for being so insistent, but this is a side project, and I have to be careful of adding stuff.)
…work issues Signed-off-by: Gianfranco Costamagna <[email protected]>
ac4b99c to
c0476f3
Compare
|
ack done |
nlohmann
left a comment
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.
|
Thanks! |
|
thanks to you! |
As said, I would like to package test_data jsons in Debian...