Some test madness

This commit is contained in:
Petr Mrázek
2013-12-17 02:09:58 +01:00
parent 20e86801b3
commit d6c71488b3
22 changed files with 457 additions and 201 deletions

2
tests/data/.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
* -text -diff

View File

@ -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,

View File

@ -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,

View File

@ -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}
)

View File

@ -5,7 +5,7 @@
"id": "develop",
"name": "Develop",
"description": "The channel called \"develop\"",
"url": "file://$PWD/tests/data/"
"url": "$PWD/tests/data/"
},
{
"id": "stable",

View File

@ -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>