summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file')
-rw-r--r--t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/fill-values4
-rwxr-xr-xt/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/post-build.in3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints1
4 files changed, 10 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/fill-values
new file mode 100644
index 0000000..a9262a1
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: changelog-distribution-does-not-match-changes-file
+Skeleton: upload-native
+Distribution: experimental
+Description: Test upload with unstable in changes but experimental in changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/post-build.in b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/post-build.in
new file mode 100755
index 0000000..10a61dc
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/post-build.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+perl -pi -e 's/^(Distribution:)\s+\S+/$1 unstable/' [% $build_product %]
diff --git a/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/desc b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/desc
new file mode 100644
index 0000000..d46c519
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-distribution-does-not-match-changes-file
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints
new file mode 100644
index 0000000..cede117
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints
@@ -0,0 +1 @@
+changelog-distribution-does-not-match-changes-file (binary): changelog-distribution-does-not-match-changes-file experimental != unstable [usr/share/doc/changelog-distribution-does-not-match-changes-file/changelog.gz:1]