summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-08 18:47:08 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-08 18:47:08 +0100
commit0e496d59f310ce8af66a2ffe5f13c8d872327663 (patch)
tree1cea79d1759b5cce786d60289722b1bae8952832 /tests
parent0aa239cc22c9e6085a2d09c9cdc62da6ea54a2ae (diff)
downloadmsitools-0e496d59f310ce8af66a2ffe5f13c8d872327663.tar.gz
msitools-0e496d59f310ce8af66a2ffe5f13c8d872327663.tar.xz
msitools-0e496d59f310ce8af66a2ffe5f13c8d872327663.zip
tests: add -D tests
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 194b4ab..b755090 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -19,6 +19,7 @@ AT_CHECK_WIXL([], [1], [ignore], [ignore])
AT_CHECK_WIXL([out.msi foo.wxs], [1], [ignore], [ignore])
AT_CHECK_WIXL([-o out.msi], [1], [ignore], [ignore])
AT_CHECK_WIXL([-E], [1], [ignore], [ignore])
+AT_CHECK_WIXL([-D], [1], [ignore], [ignore])
AT_CHECK_WIXL([-E -o out.msi], [1], [ignore], [ignore])
AT_CHECK([test -f out.msi], [1])
AT_CLEANUP
@@ -74,4 +75,17 @@ AT_CHECK_WIXL([-E variables.wxs], [0], [<?xml version="1.0"?>
<Property Id="IdSys" Value="(variables.wxs)foo"/>
</Wix>
], [ignore])
+AT_DATA([variables.wxs], [<?xml version="1.0"?>
+<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
+ <Property Id="Id$(var.Foo)" Value="$(var.Foo)"/>
+ <Property Id="Id$(var.Zig)" Value="$(var.Zig)"/>
+</Wix>
+])
+AT_CHECK_WIXL([-E variables.wxs -D Foo -D Zig=Zag], [0], [<?xml version="1.0"?>
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+ <Property Id="Id1" Value="1"/>
+ <Property Id="IdZag" Value="Zag"/>
+</Wix>
+], [ignore])
+
AT_CLEANUP