diff options
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/.gitattributes | 2 | ||||
-rw-r--r-- | tests/data/1.json | 6 | ||||
-rw-r--r-- | tests/data/2.json | 4 | ||||
-rw-r--r-- | tests/data/CMakeLists.txt | 4 | ||||
-rw-r--r-- | tests/data/channels.json | 2 | ||||
-rw-r--r-- | tests/data/tst_DownloadUpdateTask-test_writeInstallScript_win32.xml | 17 |
6 files changed, 25 insertions, 10 deletions
diff --git a/tests/data/.gitattributes b/tests/data/.gitattributes new file mode 100644 index 00000000..9ac803f0 --- /dev/null +++ b/tests/data/.gitattributes @@ -0,0 +1,2 @@ +* -text -diff + diff --git a/tests/data/1.json b/tests/data/1.json index d5261d2c..f9f99b22 100644 --- a/tests/data/1.json +++ b/tests/data/1.json @@ -8,7 +8,7 @@ "Sources": [ { "SourceType": "http", - "Url": "file://$PWD/tests/data/fileOneA" + "Url": "$PWD/tests/data/fileOneA" } ], "Executable": true, @@ -20,7 +20,7 @@ "Sources": [ { "SourceType": "http", - "Url": "file://$PWD/tests/data/fileTwo" + "Url": "$PWD/tests/data/fileTwo" } ], "Executable": false, @@ -32,7 +32,7 @@ "Sources": [ { "SourceType": "http", - "Url": "file://$PWD/tests/data/fileThree" + "Url": "$PWD/tests/data/fileThree" } ], "Executable": false, diff --git a/tests/data/2.json b/tests/data/2.json index a96aff79..bb59b9b6 100644 --- a/tests/data/2.json +++ b/tests/data/2.json @@ -8,7 +8,7 @@ "Sources": [ { "SourceType": "http", - "Url": "file://$PWD/tests/data/fileOneB" + "Url": "$PWD/tests/data/fileOneB" } ], "Executable": true, @@ -20,7 +20,7 @@ "Sources": [ { "SourceType": "http", - "Url": "file://$PWD/tests/data/fileTwo" + "Url": "$PWD/tests/data/fileTwo" } ], "Executable": false, diff --git a/tests/data/CMakeLists.txt b/tests/data/CMakeLists.txt deleted file mode 100644 index eee5a596..00000000 --- a/tests/data/CMakeLists.txt +++ /dev/null @@ -1,4 +0,0 @@ -add_custom_target(MultiMC_Test_Data - ALL - COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} -) diff --git a/tests/data/channels.json b/tests/data/channels.json index e4f04bff..6bf65a82 100644 --- a/tests/data/channels.json +++ b/tests/data/channels.json @@ -5,7 +5,7 @@ "id": "develop", "name": "Develop", "description": "The channel called \"develop\"", - "url": "file://$PWD/tests/data/" + "url": "$PWD/tests/data/" }, { "id": "stable", diff --git a/tests/data/tst_DownloadUpdateTask-test_writeInstallScript_win32.xml b/tests/data/tst_DownloadUpdateTask-test_writeInstallScript_win32.xml new file mode 100644 index 00000000..c79ef984 --- /dev/null +++ b/tests/data/tst_DownloadUpdateTask-test_writeInstallScript_win32.xml @@ -0,0 +1,17 @@ +<update version="3"> + <install> + <file> + <source>sourceOne</source> + <dest>destOne</dest> + <mode>0777</mode> + </file> + <file> + <source>MultiMC.exe</source> + <dest>M\u\l\t\i\M\C\e\x\e</dest> + <mode>0644</mode> + </file> + </install> + <uninstall> + <file>toDelete.abc</file> + </uninstall> +</update> |