From cb3b38e43c936664e3744fdfa7a846d4b52bd588 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Fri, 11 Jan 2013 17:28:53 +0100 Subject: tests: test preprocessor include --- tests/data/wixl/IncludeTest.wxs | 5 +++++ tests/data/wixl/IncludeWarn.wxi | 4 ++++ tests/wixl.at | 10 ++++++++++ 3 files changed, 19 insertions(+) create mode 100644 tests/data/wixl/IncludeTest.wxs create mode 100644 tests/data/wixl/IncludeWarn.wxi 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 @@ + + + + + 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 @@ + + + + \ 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], [ ], [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]) -- cgit