summaryrefslogtreecommitdiffstats
path: root/tests/copy_tests.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tests/copy_tests.cmake')
-rw-r--r--tests/copy_tests.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/copy_tests.cmake b/tests/copy_tests.cmake
new file mode 100644
index 00000000..0af7f730
--- /dev/null
+++ b/tests/copy_tests.cmake
@@ -0,0 +1,13 @@
+file(GLOB data_files "${MultiMC_TEST_DATA_PATH_SOURCE}/*")
+foreach(data_file ${data_files})
+ get_filename_component(filename ${data_file} NAME)
+ configure_file(
+ ${data_file}
+ ${MultiMC_TEST_DATA_PATH}/${filename}
+ @ONLY
+ NEWLINE_STYLE LF
+ )
+endforeach()
+
+file(GLOB raw_data_files "${MultiMC_TEST_DATA_PATH_SOURCE_RAW}/*")
+file(COPY ${raw_data_files} DESTINATION ${MultiMC_TEST_DATA_PATH}/)