From 0bcdd93151c21b78ff64d05c05711b0bf79966c5 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Sat, 22 Nov 2008 01:15:20 +0200 Subject: Add some basic tests for config file behavior --- tests/data/SPECS/configtest.spec | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/data/SPECS/configtest.spec (limited to 'tests/data') diff --git a/tests/data/SPECS/configtest.spec b/tests/data/SPECS/configtest.spec new file mode 100644 index 000000000..5ea7cae72 --- /dev/null +++ b/tests/data/SPECS/configtest.spec @@ -0,0 +1,23 @@ +Name: configtest +Version: %{ver} +Release: 1 +Summary: Testing config file behavior + +Group: Testing +License: GPL +BuildArch: noarch + +%description +%{summary} + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir} +echo "%{filedata}" > $RPM_BUILD_ROOT/%{_sysconfdir}/my.conf + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%config %{_sysconfdir}/my.conf -- cgit v1.2.3