-
-
Notifications
You must be signed in to change notification settings - Fork 7k
tests: Mark the tests that don't need to downoad test files with the … #4669
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
base: develop
Are you sure you want to change the base?
Conversation
…offline label Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
f770907
to
eedb7a8
Compare
Is it better to mark the ones that don't need to download things, or the ones that do? |
From the README:
Would using |
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! |
Can we merge and improve later maybe? |
Can you check if JSON_TestDataDirectory works for you? |
Hello, so some questions:
|
ok we can package the json test data separately in Debian as standalone project, this will also help your ci test environment (if you want to use apt) --- nlohmann-json3-3.11.3.orig/cmake/download_test_data.cmake
+++ nlohmann-json3-3.11.3/cmake/download_test_data.cmake
@@ -1,6 +1,12 @@
set(JSON_TEST_DATA_URL https://github.com/nlohmann/json_test_data)
set(JSON_TEST_DATA_VERSION 3.1.0)
+set(JSON_TEST_DATA_DIR /usr/share/json_test_data-${JSON_TEST_DATA_VERSION})
+
+if(EXISTS ${JSON_TEST_DATA_DIR})
+ set(JSON_TestDataDirectory ${JSON_TEST_DATA_DIR})
+endif()
+
# if variable is set, use test data from given directory rather than downloading them
if(JSON_TestDataDirectory)
message(STATUS "Using test data in ${JSON_TestDataDirectory}.") |
|
Exactly. |
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! |
This way in Debian and Ubuntu we can easily skip them when no internet is available