summaryrefslogtreecommitdiffstats
path: root/t/data
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-07-05 15:10:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-07-05 15:10:00 +0000
commit79a9cfca4f9e46fcb121194b8db5bcb8d528547d (patch)
treec625850f250ecc13cd275b34219482bf2cd26034 /t/data
parent70245f8746d11e83141d2320f57c53b698624a2e (diff)
downloadurpmi-79a9cfca4f9e46fcb121194b8db5bcb8d528547d.tar
urpmi-79a9cfca4f9e46fcb121194b8db5bcb8d528547d.tar.gz
urpmi-79a9cfca4f9e46fcb121194b8db5bcb8d528547d.tar.bz2
urpmi-79a9cfca4f9e46fcb121194b8db5bcb8d528547d.tar.xz
urpmi-79a9cfca4f9e46fcb121194b8db5bcb8d528547d.zip
add test on rpmnew creation for %config files
Diffstat (limited to 't/data')
-rw-r--r--t/data/SPECS/rpmnew/a-1.spec28
-rw-r--r--t/data/SPECS/rpmnew/a-2.spec28
-rw-r--r--t/data/SPECS/rpmnew/a-3.spec28
3 files changed, 84 insertions, 0 deletions
diff --git a/t/data/SPECS/rpmnew/a-1.spec b/t/data/SPECS/rpmnew/a-1.spec
new file mode 100644
index 00000000..7fc44f13
--- /dev/null
+++ b/t/data/SPECS/rpmnew/a-1.spec
@@ -0,0 +1,28 @@
+%define content orig
+
+Summary: x
+Name: a
+Version: 1
+Release: 1
+License: x
+Group: x
+Url: x
+BuildArch: noarch
+
+%description
+tee
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc
+echo %{content} > $RPM_BUILD_ROOT/etc/config-noreplace
+echo %{content} > $RPM_BUILD_ROOT/etc/config
+echo %{content} > $RPM_BUILD_ROOT/etc/normal
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%verify(not md5 size mtime) %config(noreplace) /etc/config-noreplace
+%config /etc/config
+/etc/normal
diff --git a/t/data/SPECS/rpmnew/a-2.spec b/t/data/SPECS/rpmnew/a-2.spec
new file mode 100644
index 00000000..60f45dc2
--- /dev/null
+++ b/t/data/SPECS/rpmnew/a-2.spec
@@ -0,0 +1,28 @@
+%define content orig
+
+Summary: x
+Name: a
+Version: 2
+Release: 1
+License: x
+Group: x
+Url: x
+BuildArch: noarch
+
+%description
+tee
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc
+echo %{content} > $RPM_BUILD_ROOT/etc/config-noreplace
+echo %{content} > $RPM_BUILD_ROOT/etc/config
+echo %{content} > $RPM_BUILD_ROOT/etc/normal
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%verify(not md5 size mtime) %config(noreplace) /etc/config-noreplace
+%config /etc/config
+/etc/normal
diff --git a/t/data/SPECS/rpmnew/a-3.spec b/t/data/SPECS/rpmnew/a-3.spec
new file mode 100644
index 00000000..cdec3d00
--- /dev/null
+++ b/t/data/SPECS/rpmnew/a-3.spec
@@ -0,0 +1,28 @@
+%define content changed
+
+Summary: x
+Name: a
+Version: 3
+Release: 1
+License: x
+Group: x
+Url: x
+BuildArch: noarch
+
+%description
+tee
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc
+echo %{content} > $RPM_BUILD_ROOT/etc/config-noreplace
+echo %{content} > $RPM_BUILD_ROOT/etc/config
+echo %{content} > $RPM_BUILD_ROOT/etc/normal
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%verify(not md5 size mtime) %config(noreplace) /etc/config-noreplace
+%config /etc/config
+/etc/normal