diff options
author | Zack Galbreath <zack.galbreath@kitware.com> | 2017-02-03 20:44:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-04 13:16:24 (GMT) |
commit | 8a5cb84b0e5ef3deac4e241d0d4f3e9932daadaa (patch) | |
tree | 5ba23334f8cda3268c322759dec2ae1939a5ea6c /Tests/RunCMake/AndroidTestUtilities/SetupTest4.cmake | |
parent | 9d34e51cdb7ccc74eaf851f1784433616bc9c31a (diff) | |
download | CMake-8a5cb84b0e5ef3deac4e241d0d4f3e9932daadaa.zip CMake-8a5cb84b0e5ef3deac4e241d0d4f3e9932daadaa.tar.gz CMake-8a5cb84b0e5ef3deac4e241d0d4f3e9932daadaa.tar.bz2 |
AndroidTestUtilities: do not require ExternalData unconditionally
Attempting to use AndroidTestUtilities to simply install some local
files on device can result in the following error:
Neither ExternalData_URL_TEMPLATES nor ExternalData_OBJECT_STORES is set
We no longer require these ExternalData-specific variables to be set if
no such remote data files are requested.
Fixes: #16529
Diffstat (limited to 'Tests/RunCMake/AndroidTestUtilities/SetupTest4.cmake')
-rw-r--r-- | Tests/RunCMake/AndroidTestUtilities/SetupTest4.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/AndroidTestUtilities/SetupTest4.cmake b/Tests/RunCMake/AndroidTestUtilities/SetupTest4.cmake new file mode 100644 index 0000000..9a27266 --- /dev/null +++ b/Tests/RunCMake/AndroidTestUtilities/SetupTest4.cmake @@ -0,0 +1,13 @@ +enable_testing() +include(AndroidTestUtilities) + +find_program(adb_executable adb) + +set(test_files "data/a.txt") + +set(ANDROID 1) + +android_add_test_data(setup_test + FILES ${test_files} + DEVICE_TEST_DIR "/data/local/tests/example1" + DEVICE_OBJECT_STORE "/sdcard/.ExternalData/SHA") |