diff options
Diffstat (limited to 't/recipes/checks/testsuite/testsuite-general')
10 files changed, 94 insertions, 0 deletions
diff --git a/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/control b/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/control new file mode 100644 index 0000000..aa243b3 --- /dev/null +++ b/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/control @@ -0,0 +1,53 @@ +Tests: test-1 +Comment: Test-1 is öh so good. + Last paragraph misses a Tests field. + +Tests: fifo missing-test under_score + +Tests: test-in-subdir +Restrictions: + rw-build-tree + breaks-testbed + needs-root + build-needed +Depends: @ +Features: +Tests-Directory: subdir + +Test-Command: /bin/true +Depends: @ + +Tests: test-2 +Test-Command: /bin/true +Depends: @, missing a comma + +Test-Command: /bin/true +Features: unknownfeature, test-name=false-positive +Restrictions: unknownrestriction + +Test-Command: /bin/true +Restrictions: breaks-testbed, rw-build-tree, needs-root, needs-recommends, needs-sudo # comment +Depends: @, @builddeps@ + +Tests: test-1, test-2 +Depends: @ + +Tests: asym, asym1, self, self1, broken, lfifo, working +Depends: @ + +# Depends line starts on a newline (#910210) +Tests: test-1 +Depends: + @ + +Test-Command: /bin/comment +Restrictions: needs-root, # comment + # comment + breaks-testbed + # comment +Depends: @, + @builddeps@ + # comment + +Test-Command: /bin/true +Depends: @, @builddeps@, @recommends@ diff --git a/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/control.autodep8 b/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/control.autodep8 new file mode 100644 index 0000000..19e2aee --- /dev/null +++ b/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/control.autodep8 @@ -0,0 +1 @@ +Tests: test-1 diff --git a/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/test-1 b/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/test-1 new file mode 100644 index 0000000..039e4d0 --- /dev/null +++ b/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/test-1 @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/test-2 b/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/test-2 new file mode 100644 index 0000000..039e4d0 --- /dev/null +++ b/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/test-2 @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/under_score b/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/under_score new file mode 100644 index 0000000..039e4d0 --- /dev/null +++ b/t/recipes/checks/testsuite/testsuite-general/build-spec/debian/tests/under_score @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/t/recipes/checks/testsuite/testsuite-general/build-spec/fill-values b/t/recipes/checks/testsuite/testsuite-general/build-spec/fill-values new file mode 100644 index 0000000..95c0c3c --- /dev/null +++ b/t/recipes/checks/testsuite/testsuite-general/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: testsuite-general +Description: General tests of the autopkgtest control file diff --git a/t/recipes/checks/testsuite/testsuite-general/build-spec/orig/subdir/test-in-subdir b/t/recipes/checks/testsuite/testsuite-general/build-spec/orig/subdir/test-in-subdir new file mode 100644 index 0000000..039e4d0 --- /dev/null +++ b/t/recipes/checks/testsuite/testsuite-general/build-spec/orig/subdir/test-in-subdir @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/t/recipes/checks/testsuite/testsuite-general/build-spec/pre-build b/t/recipes/checks/testsuite/testsuite-general/build-spec/pre-build new file mode 100755 index 0000000..2e39c9c --- /dev/null +++ b/t/recipes/checks/testsuite/testsuite-general/build-spec/pre-build @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +DIR="$1" +mkfifo "$DIR/debian/tests/fifo" +ln -s nonexistent "$DIR/debian/tests/broken" +ln -s fifo "$DIR/debian/tests/lfifo" +ln -s test-1 "$DIR/debian/tests/working" diff --git a/t/recipes/checks/testsuite/testsuite-general/eval/desc b/t/recipes/checks/testsuite/testsuite-general/eval/desc new file mode 100644 index 0000000..6357ee3 --- /dev/null +++ b/t/recipes/checks/testsuite/testsuite-general/eval/desc @@ -0,0 +1,4 @@ +Testname: testsuite-general +Test-Against: + unnecessary-testsuite-autopkgtest-field +Check: testsuite diff --git a/t/recipes/checks/testsuite/testsuite-general/eval/hints b/t/recipes/checks/testsuite/testsuite-general/eval/hints new file mode 100644 index 0000000..cc2cee3 --- /dev/null +++ b/t/recipes/checks/testsuite/testsuite-general/eval/hints @@ -0,0 +1,16 @@ +testsuite-general (source): unknown-runtime-tests-restriction unknownrestriction [debian/tests/control:26] +testsuite-general (source): unknown-runtime-tests-field Comment [debian/tests/control:2] +testsuite-general (source): unknown-runtime-tests-feature unknownfeature [debian/tests/control:25] +testsuite-general (source): testsuite-dependency-has-unparsable-elements "missing a comma" [debian/tests/control:22] +testsuite-general (source): runtime-test-file-is-not-a-regular-file debian/tests/lfifo [debian/tests/control:35] +testsuite-general (source): runtime-test-file-is-not-a-regular-file debian/tests/fifo [debian/tests/control:5] +testsuite-general (source): obsolete-runtime-tests-restriction needs-recommends [debian/tests/control:29] +testsuite-general (source): missing-runtime-test-file debian/tests/self1 [debian/tests/control:35] +testsuite-general (source): missing-runtime-test-file debian/tests/self [debian/tests/control:35] +testsuite-general (source): missing-runtime-test-file debian/tests/missing-test [debian/tests/control:5] +testsuite-general (source): missing-runtime-test-file debian/tests/broken [debian/tests/control:35] +testsuite-general (source): missing-runtime-test-file debian/tests/asym1 [debian/tests/control:35] +testsuite-general (source): missing-runtime-test-file debian/tests/asym [debian/tests/control:35] +testsuite-general (source): illegal-runtime-test-name under_score [debian/tests/control:5] +testsuite-general (source): debian-tests-control-autodep8-is-obsolete [debian/tests/control.autodep8] +testsuite-general (source): conflicting-test-fields Tests Test-Command [debian/tests/control:20] |