summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-11 17:28:53 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-11 17:29:15 +0100
commitcb3b38e43c936664e3744fdfa7a846d4b52bd588 (patch)
tree016c0ebd24df4bd7eed6671edfba6fd74c134955 /tests
parent7906f5f165351ba499733f1bf91d8421d43f9cc3 (diff)
downloadmsitools-cb3b38e43c936664e3744fdfa7a846d4b52bd588.tar.gz
msitools-cb3b38e43c936664e3744fdfa7a846d4b52bd588.tar.xz
msitools-cb3b38e43c936664e3744fdfa7a846d4b52bd588.zip
tests: test preprocessor include
Diffstat (limited to 'tests')
-rw-r--r--tests/data/wixl/IncludeTest.wxs5
-rw-r--r--tests/data/wixl/IncludeWarn.wxi4
-rw-r--r--tests/wixl.at10
3 files changed, 19 insertions, 0 deletions
diff --git a/tests/data/wixl/IncludeTest.wxs b/tests/data/wixl/IncludeTest.wxs
new file mode 100644
index 0000000..776e574
--- /dev/null
+++ b/tests/data/wixl/IncludeTest.wxs
@@ -0,0 +1,5 @@
+<?xml version='1.0' encoding='windows-1252'?>
+<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
+ <?include IncludeWarn.wxi ?>
+</Wix>
+
diff --git a/tests/data/wixl/IncludeWarn.wxi b/tests/data/wixl/IncludeWarn.wxi
new file mode 100644
index 0000000..c83f960
--- /dev/null
+++ b/tests/data/wixl/IncludeWarn.wxi
@@ -0,0 +1,4 @@
+<?xml version='1.0' encoding='windows-1252'?>
+<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">
+ <?warning IncludeWarn is included?>
+</Include> \ No newline at end of file
diff --git a/tests/wixl.at b/tests/wixl.at
index 6215d75..bbd4a22 100644
--- a/tests/wixl.at
+++ b/tests/wixl.at
@@ -86,6 +86,16 @@ AT_CHECK_WIXL([-E variables.wxs -D Foo -D Zig=Zag], [0], [<?xml version="1.0"?>
], [ignore])
AT_CLEANUP
+AT_SETUP([Preprocessor include])
+AT_WIXLDATA([IncludeTest.wxs])
+AT_WIXLDATA([IncludeWarn.wxi])
+AT_CHECK_WIXL([-o out.msi IncludeTest.wxs], [0], [ignore],
+[IncludeWarn.wxi:3: warning: IncludeWarn is included
+])
+# FIXME: add tons of tests on out.msi
+AT_CHECK([test -f out.msi], [0])
+AT_CLEANUP
+
AT_SETUP([ARP example])
AT_WIXLDATA([test-arp.wxs])
AT_WIXLDATA([FoobarAppl10.exe])