From 57007f5c1836aafdb51725e974c48e74551b93e7 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 24 Jan 2013 21:17:22 +0100 Subject: wixl: implement stable UUID generation Note that the UUIDs are *not* compatible with WiX! --- tests/data/wixl/ComponentGUID.wxs | 49 +++++++++++++++++++++++++++++++++++++++ tests/wixl.at | 13 +++++++++++ 2 files changed, 62 insertions(+) create mode 100644 tests/data/wixl/ComponentGUID.wxs (limited to 'tests') diff --git a/tests/data/wixl/ComponentGUID.wxs b/tests/data/wixl/ComponentGUID.wxs new file mode 100644 index 0000000..6ffbe18 --- /dev/null +++ b/tests/data/wixl/ComponentGUID.wxs @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/wixl.at b/tests/wixl.at index 56edef9..c28cc78 100644 --- a/tests/wixl.at +++ b/tests/wixl.at @@ -28,6 +28,19 @@ AT_CHECK_WIXL([-o out.msi SampleFirst.wxs], [0], [ignore], [ignore]) AT_CHECK([test -f out.msi], [0]) AT_CLEANUP +AT_SETUP([Stable component GUIDs]) +AT_WIXLDATA([ComponentGUID.wxs]) +AT_WIXLDATA([FoobarAppl10.exe]) +AT_WIXLDATA([Manual.pdf]) +AT_CHECK_WIXL([-o out.msi ComponentGUID.wxs], [0], [ignore], [ignore]) +# FIXME: add tons of tests on out.msi +AT_CHECK([msiinfo export -s out.msi Component | sort | grep INSERT], [0], +[INSERT INTO `Component` (`Component`, `ComponentId`, `Directory_`, `Attributes`, `KeyPath`) VALUES ('MainExecutable', '{8C320F7C-C521-5B19-A3C5-AF2B2ECEE71E}', 'INSTALLDIR', 0, 'FoobarEXE') +INSERT INTO `Component` (`Component`, `ComponentId`, `Directory_`, `Attributes`, `KeyPath`) VALUES ('Manual', '{BAEE488E-70FF-566B-8A74-FE3107FDBDE2}', 'INSTALLDIR', 0, 'Manual') +INSERT INTO `Component` (`Component`, `ComponentId`, `Directory_`, `Attributes`, `KeyPath`) VALUES ('ProgramMenuDir', '{F9F7F81C-5E64-5B7C-8018-FAF096969B88}', 'ProgramMenuDir', 4, 'reg5453B5C95074EA6F633E6D36318AFBF7') +]) +AT_CLEANUP + AT_SETUP([WiX tutorial SampleFragment]) AT_WIXLDATA([SampleFragment.wxs]) AT_WIXLDATA([Manual.wxs]) -- cgit