From 47a810b2ff166e6b7639fceb09d438e5b2299bb5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 20 Dec 2007 18:49:46 +0000 Subject: add a test case for #27417 (no fix yet) --- t/data/SPECS/multi-line-macro.spec | 28 ++++++++++++++++++++++++++++ t/data/SPECS/multi-line-macro2.spec | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 t/data/SPECS/multi-line-macro.spec create mode 100644 t/data/SPECS/multi-line-macro2.spec (limited to 't/data/SPECS') diff --git a/t/data/SPECS/multi-line-macro.spec b/t/data/SPECS/multi-line-macro.spec new file mode 100644 index 00000000..3971a179 --- /dev/null +++ b/t/data/SPECS/multi-line-macro.spec @@ -0,0 +1,28 @@ +%define foobar /etc/foo \ + /etc/bar + +Summary: x +Name: multi-linux-macro +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/etc +echo foo > $RPM_BUILD_ROOT/etc/foo +echo bar > $RPM_BUILD_ROOT/etc/bar + +%clean +rm -rf $RPM_BUILD_ROOT + +%description +x + +%files +%defattr(-,root,root) +%foobar +# if %foobar is the last line it fails (#27417) diff --git a/t/data/SPECS/multi-line-macro2.spec b/t/data/SPECS/multi-line-macro2.spec new file mode 100644 index 00000000..df7e4b45 --- /dev/null +++ b/t/data/SPECS/multi-line-macro2.spec @@ -0,0 +1,28 @@ +%define foobar echo foo > $RPM_BUILD_ROOT/etc/foo \ + echo bar > $RPM_BUILD_ROOT/etc/bar + +Summary: x +Name: multi-linux-macro +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%description +x + +%files +%defattr(-,root,root) +/etc/foo +/etc/bar + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/etc +%foobar +# if %foobar is the last line it fails (#27417) -- cgit v1.2.1