summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/AndroidTestUtilities/SetupTest4.cmake
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2017-02-03 20:44:51 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-04 13:16:24 (GMT)
commit8a5cb84b0e5ef3deac4e241d0d4f3e9932daadaa (patch)
tree5ba23334f8cda3268c322759dec2ae1939a5ea6c /Tests/RunCMake/AndroidTestUtilities/SetupTest4.cmake
parent9d34e51cdb7ccc74eaf851f1784433616bc9c31a (diff)
downloadCMake-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.cmake13
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")