summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/conffiles/conffiles-general/build-spec
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/conffiles/conffiles-general/build-spec')
-rw-r--r--t/recipes/checks/conffiles/conffiles-general/build-spec/debian/conffiles9
-rw-r--r--t/recipes/checks/conffiles/conffiles-general/build-spec/debian/install3
-rw-r--r--t/recipes/checks/conffiles/conffiles-general/build-spec/debian/links1
-rwxr-xr-xt/recipes/checks/conffiles/conffiles-general/build-spec/debian/rules12
-rw-r--r--t/recipes/checks/conffiles/conffiles-general/build-spec/fill-values4
-rw-r--r--t/recipes/checks/conffiles/conffiles-general/build-spec/orig/etc/rc2.d/file1
-rw-r--r--t/recipes/checks/conffiles/conffiles-general/build-spec/orig/usr/share/foo1
-rw-r--r--t/recipes/checks/conffiles/conffiles-general/build-spec/orig/var/cache/foo1
8 files changed, 32 insertions, 0 deletions
diff --git a/t/recipes/checks/conffiles/conffiles-general/build-spec/debian/conffiles b/t/recipes/checks/conffiles/conffiles-general/build-spec/debian/conffiles
new file mode 100644
index 0000000..51222d6
--- /dev/null
+++ b/t/recipes/checks/conffiles/conffiles-general/build-spec/debian/conffiles
@@ -0,0 +1,9 @@
+/etc/foo
+/etc/rc2.d/file
+/etc/symlink
+/usr/share/foo
+/var/cache/foo
+etc/foo
+/etc/thin-air
+/usr/gone
+/var/bye
diff --git a/t/recipes/checks/conffiles/conffiles-general/build-spec/debian/install b/t/recipes/checks/conffiles/conffiles-general/build-spec/debian/install
new file mode 100644
index 0000000..46dd330
--- /dev/null
+++ b/t/recipes/checks/conffiles/conffiles-general/build-spec/debian/install
@@ -0,0 +1,3 @@
+usr
+var
+etc
diff --git a/t/recipes/checks/conffiles/conffiles-general/build-spec/debian/links b/t/recipes/checks/conffiles/conffiles-general/build-spec/debian/links
new file mode 100644
index 0000000..01a5497
--- /dev/null
+++ b/t/recipes/checks/conffiles/conffiles-general/build-spec/debian/links
@@ -0,0 +1 @@
+etc/foo etc/symlink
diff --git a/t/recipes/checks/conffiles/conffiles-general/build-spec/debian/rules b/t/recipes/checks/conffiles/conffiles-general/build-spec/debian/rules
new file mode 100755
index 0000000..02d8017
--- /dev/null
+++ b/t/recipes/checks/conffiles/conffiles-general/build-spec/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+pkg=conffiles-general
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ mkdir -p debian/$(pkg)/etc/
+ echo "Hallo World" > debian/$(pkg)/etc/foo
+ mkdir -p debian/$(pkg)/DEBIAN
+ cp debian/conffiles debian/$(pkg)/DEBIAN
+ dpkg-deb --nocheck --build debian/$(pkg) ../$(pkg)_1.0-1_all.deb
diff --git a/t/recipes/checks/conffiles/conffiles-general/build-spec/fill-values b/t/recipes/checks/conffiles/conffiles-general/build-spec/fill-values
new file mode 100644
index 0000000..03c9386
--- /dev/null
+++ b/t/recipes/checks/conffiles/conffiles-general/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-non-native
+Testname: conffiles-general
+Package-Architecture: all
+Description: Test for conffile-related checks
diff --git a/t/recipes/checks/conffiles/conffiles-general/build-spec/orig/etc/rc2.d/file b/t/recipes/checks/conffiles/conffiles-general/build-spec/orig/etc/rc2.d/file
new file mode 100644
index 0000000..87eb780
--- /dev/null
+++ b/t/recipes/checks/conffiles/conffiles-general/build-spec/orig/etc/rc2.d/file
@@ -0,0 +1 @@
+DUMMY INIT.
diff --git a/t/recipes/checks/conffiles/conffiles-general/build-spec/orig/usr/share/foo b/t/recipes/checks/conffiles/conffiles-general/build-spec/orig/usr/share/foo
new file mode 100644
index 0000000..563ac09
--- /dev/null
+++ b/t/recipes/checks/conffiles/conffiles-general/build-spec/orig/usr/share/foo
@@ -0,0 +1 @@
+MEANINGFUL CONTENTS.
diff --git a/t/recipes/checks/conffiles/conffiles-general/build-spec/orig/var/cache/foo b/t/recipes/checks/conffiles/conffiles-general/build-spec/orig/var/cache/foo
new file mode 100644
index 0000000..59a262a
--- /dev/null
+++ b/t/recipes/checks/conffiles/conffiles-general/build-spec/orig/var/cache/foo
@@ -0,0 +1 @@
+ALSO MEANINGFUL.