summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/AndroidTestUtilities/SetupTest3.cmake
blob: b32b6b1a8adc8b4e0164e4055868b8f08ddc4e1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
enable_testing()
include(AndroidTestUtilities)

add_custom_target(tests)
find_program(adb_executable adb)

set(ExternalData_URL_TEMPLATES
  "https://data.kitware.com/api/v1/file/hashsum/%(algo)/%(hash)/download"
  )
set(test_dir "/data/local/tests/example3")
set(test_files
  "data/a.txt"
  "data/subfolder/b.txt"
  )
set(test_libs "libs/exampleLib.txt")
set(files_dest "${test_dir}/storage_folder")
set(libs_dest "${test_dir}/lib/lib/lib")

set(ANDROID 1)

android_add_test_data(setup_test
  FILES ${test_files}
  LIBS ${test_libs}
  FILES_DEST ${files_dest}
  LIBS_DEST ${libs_dest}
  DEVICE_TEST_DIR "/data/local/tests/example3"
  DEVICE_OBJECT_STORE "/sdcard/.ExternalData/SHA"
  NO_LINK_REGEX "\\.p$")

set_property(
  TARGET setup_test
  PROPERTY EXCLUDE_FROM_ALL 1)
add_dependencies(tests setup_test)