diff options
Diffstat (limited to '')
25 files changed, 87 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/build-spec/fill-values b/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/build-spec/fill-values new file mode 100644 index 0000000..0e031d2 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: debian-source-dir-classifications +Description: Test for d-s-d classifications tags diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/desc b/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/desc new file mode 100644 index 0000000..1c4797f --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/desc @@ -0,0 +1,2 @@ +Testname: debian-source-dir-classifications +Check: debian/source-dir diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/hints b/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/hints new file mode 100644 index 0000000..a3bdc6a --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/hints @@ -0,0 +1 @@ +debian-source-dir-classifications (source): source-format 3.0 (native) diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/debian/source/options b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/debian/source/options new file mode 100644 index 0000000..22a4de9 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/debian/source/options @@ -0,0 +1,2 @@ +compression = xz +compression-level = 9 diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/fill-values b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/fill-values new file mode 100644 index 0000000..05e98a5 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: debian-source-dir-custom-compression-settings +Source-Format: 3.0 (native) +Description: Check for custom compression settings in debian/source/format diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/desc b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/desc new file mode 100644 index 0000000..5d3372f --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/desc @@ -0,0 +1,2 @@ +Testname: debian-source-dir-custom-compression-settings +Check: debian/source-dir diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/hints b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/hints new file mode 100644 index 0000000..f03bb46 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/hints @@ -0,0 +1,3 @@ +debian-source-dir-custom-compression-settings (source): source-format 3.0 (native) +debian-source-dir-custom-compression-settings (source): custom-compression-in-debian-source-options compression-level = 9 [debian/source/options:2] +debian-source-dir-custom-compression-settings (source): custom-compression-in-debian-source-options compression = xz [debian/source/options:1] diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/debian/source/formt b/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/debian/source/formt new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/debian/source/formt @@ -0,0 +1 @@ +1.0 diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/fill-values b/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/fill-values new file mode 100644 index 0000000..8b1c351 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: debian-source-dir-general +Description: General tests for debian/source/* checks diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/pre-build b/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/pre-build new file mode 100755 index 0000000..9442d4c --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/pre-build @@ -0,0 +1,2 @@ +#!/bin/sh +rm "$1"/debian/source/format diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/desc b/t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/desc new file mode 100644 index 0000000..fedd774 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/desc @@ -0,0 +1,2 @@ +Testname: debian-source-dir-general +Check: debian/source-dir diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/hints b/t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/hints new file mode 100644 index 0000000..c9d8043 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/hints @@ -0,0 +1,4 @@ +debian-source-dir-general (source): unknown-file-in-debian-source [debian/source/formt] +debian-source-dir-general (source): source-format 1.0 [implicit native] +debian-source-dir-general (source): older-source-format 1.0 +debian-source-dir-general (source): missing-debian-source-format diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/patches/series b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/patches/series new file mode 100644 index 0000000..94cd91e --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/patches/series @@ -0,0 +1,11 @@ +# some line that ends with quilt-patches-deb-export-hook +# this looks like series file + + # but really it is just a bunch + +# of blank + +# lines + +# and # + # comments diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/source/git-patches b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/source/git-patches new file mode 100644 index 0000000..359925d --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/source/git-patches @@ -0,0 +1,11 @@ +upstream/$UPSTREAM_VERSION..patches/$DEB_VERSION + + + # this is an indented comment + + + + # some more blank lines + + + diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/fill-values b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/fill-values new file mode 100644 index 0000000..70ac870 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: debian-source-dir-gitpkg-series +Skeleton: upload-non-native +Source-Format: 3.0 (quilt) +Description: Test for trivial series file in git-patches-not-exported diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/orig/an_empty_file b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/orig/an_empty_file new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/orig/an_empty_file diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/desc b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/desc new file mode 100644 index 0000000..4ede50f --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/desc @@ -0,0 +1,2 @@ +Testname: debian-source-dir-gitpkg-series +Check: debian/source-dir diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/hints b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/hints new file mode 100644 index 0000000..8e9437c --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/hints @@ -0,0 +1,2 @@ +debian-source-dir-gitpkg-series (source): source-format 3.0 (quilt) +debian-source-dir-gitpkg-series (source): git-patches-not-exported [debian/patches/series] diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/debian/source/git-patches b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/debian/source/git-patches new file mode 100644 index 0000000..be4c03c --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/debian/source/git-patches @@ -0,0 +1,11 @@ +# upstream/$UPSTREAM_VERSION..patches/$DEB_VERSION + + + # this is an indented comment + + + + # some more blank lines + + + diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/fill-values b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/fill-values new file mode 100644 index 0000000..f8455d2 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: debian-source-dir-gitpkg +Skeleton: upload-non-native +Source-Format: 3.0 (quilt) +Description: Test for false positives in git-patches-not-exported diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/desc b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/desc new file mode 100644 index 0000000..8526d22 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/desc @@ -0,0 +1,4 @@ +Testname: debian-source-dir-gitpkg +Test-Against: + git-patches-not-exported +Check: debian/source-dir diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/hints b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/hints new file mode 100644 index 0000000..6212855 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/hints @@ -0,0 +1 @@ +debian-source-dir-gitpkg (source): source-format 3.0 (quilt) diff --git a/t/recipes/checks/debian/source-dir/source-format-1.0/build-spec/fill-values b/t/recipes/checks/debian/source-dir/source-format-1.0/build-spec/fill-values new file mode 100644 index 0000000..12123e7 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/source-format-1.0/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: source-format-1.0 +Source-Format: 1.0 +Description: General tests for debian/source/* checks diff --git a/t/recipes/checks/debian/source-dir/source-format-1.0/eval/desc b/t/recipes/checks/debian/source-dir/source-format-1.0/eval/desc new file mode 100644 index 0000000..c7df978 --- /dev/null +++ b/t/recipes/checks/debian/source-dir/source-format-1.0/eval/desc @@ -0,0 +1,2 @@ +Testname: source-format-1.0 +Check: debian/source-dir diff --git a/t/recipes/checks/debian/source-dir/source-format-1.0/eval/hints b/t/recipes/checks/debian/source-dir/source-format-1.0/eval/hints new file mode 100644 index 0000000..3fdf38f --- /dev/null +++ b/t/recipes/checks/debian/source-dir/source-format-1.0/eval/hints @@ -0,0 +1,2 @@ +source-format-1.0 (source): source-format 1.0 [native] +source-format-1.0 (source): older-source-format 1.0 |