summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/games/files-games-section
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/games/files-games-section
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/games/files-games-section')
-rw-r--r--t/recipes/checks/games/files-games-section/build-spec/debian/control.in50
-rw-r--r--t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-both.install2
-rw-r--r--t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-both.manpages2
-rw-r--r--t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-good.install1
-rw-r--r--t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-good.manpages1
-rw-r--r--t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-no-games.install1
-rw-r--r--t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-no-games.manpages1
-rw-r--r--t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-wrong.install1
-rw-r--r--t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-wrong.manpages1
-rw-r--r--t/recipes/checks/games/files-games-section/build-spec/fill-values4
-rwxr-xr-xt/recipes/checks/games/files-games-section/build-spec/orig/shell-blaster2
-rw-r--r--t/recipes/checks/games/files-games-section/build-spec/orig/shell-blaster.18
-rw-r--r--t/recipes/checks/games/files-games-section/build-spec/orig/shell-blaster.68
-rw-r--r--t/recipes/checks/games/files-games-section/eval/desc2
-rw-r--r--t/recipes/checks/games/files-games-section/eval/hints3
15 files changed, 87 insertions, 0 deletions
diff --git a/t/recipes/checks/games/files-games-section/build-spec/debian/control.in b/t/recipes/checks/games/files-games-section/build-spec/debian/control.in
new file mode 100644
index 0000000..897b19c
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/debian/control.in
@@ -0,0 +1,50 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: [% $source %]-both
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: [% $source %]-good, [% $source %]-wrong, [% $source %]-no-games
+Description: [% $description %] (both)
+ Package has both regular binaries and games.
+ .
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package.
+
+Package: [% $source %]-good
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (good)
+ Games package in games section.
+ .
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package.
+
+Package: [% $source %]-no-games
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (no games)
+ Games package without any games.
+ .
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package.
+
+Package: [% $source %]-wrong
+Section: devel
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: [% $source %]-good
+Description: [% $description %] (wrong)
+ Games package in wrong section.
+ .
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package.
diff --git a/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-both.install b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-both.install
new file mode 100644
index 0000000..86aecc7
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-both.install
@@ -0,0 +1,2 @@
+shell-blaster usr/bin
+shell-blaster usr/games
diff --git a/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-both.manpages b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-both.manpages
new file mode 100644
index 0000000..e4d1bd8
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-both.manpages
@@ -0,0 +1,2 @@
+shell-blaster.1
+shell-blaster.6
diff --git a/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-good.install b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-good.install
new file mode 100644
index 0000000..d10f2ef
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-good.install
@@ -0,0 +1 @@
+shell-blaster usr/games
diff --git a/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-good.manpages b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-good.manpages
new file mode 100644
index 0000000..835dfac
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-good.manpages
@@ -0,0 +1 @@
+shell-blaster.6
diff --git a/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-no-games.install b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-no-games.install
new file mode 100644
index 0000000..8b29e1f
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-no-games.install
@@ -0,0 +1 @@
+shell-blaster usr/bin
diff --git a/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-no-games.manpages b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-no-games.manpages
new file mode 100644
index 0000000..36e298a
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-no-games.manpages
@@ -0,0 +1 @@
+shell-blaster.1
diff --git a/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-wrong.install b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-wrong.install
new file mode 100644
index 0000000..d10f2ef
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-wrong.install
@@ -0,0 +1 @@
+shell-blaster usr/games
diff --git a/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-wrong.manpages b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-wrong.manpages
new file mode 100644
index 0000000..835dfac
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/debian/files-games-section-wrong.manpages
@@ -0,0 +1 @@
+shell-blaster.6
diff --git a/t/recipes/checks/games/files-games-section/build-spec/fill-values b/t/recipes/checks/games/files-games-section/build-spec/fill-values
new file mode 100644
index 0000000..f76f56b
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: files-games-section
+Section: games
+Description: Correct section for games packages
diff --git a/t/recipes/checks/games/files-games-section/build-spec/orig/shell-blaster b/t/recipes/checks/games/files-games-section/build-spec/orig/shell-blaster
new file mode 100755
index 0000000..48f8d5d
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/orig/shell-blaster
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "I'll be a game when I grow up!"
diff --git a/t/recipes/checks/games/files-games-section/build-spec/orig/shell-blaster.1 b/t/recipes/checks/games/files-games-section/build-spec/orig/shell-blaster.1
new file mode 100644
index 0000000..a8fe203
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/orig/shell-blaster.1
@@ -0,0 +1,8 @@
+.TH SHELL-BLASTER 1 "2008-12-30"
+.SH "NAME"
+shell\-blaster \- A simple shell non\-game
+.SH "SYNOPSIS"
+.B shell\-blaster
+.SH "DESCRIPTION"
+.B shell\-blaster
+wants to be a game but isn't yet.
diff --git a/t/recipes/checks/games/files-games-section/build-spec/orig/shell-blaster.6 b/t/recipes/checks/games/files-games-section/build-spec/orig/shell-blaster.6
new file mode 100644
index 0000000..9d6bcef
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/build-spec/orig/shell-blaster.6
@@ -0,0 +1,8 @@
+.TH SHELL-BLASTER 6 "2008-12-30"
+.SH "NAME"
+shell\-blaster \- A simple shell non\-game
+.SH "SYNOPSIS"
+.B shell\-blaster
+.SH "DESCRIPTION"
+.B shell\-blaster
+wants to be a game but isn't yet.
diff --git a/t/recipes/checks/games/files-games-section/eval/desc b/t/recipes/checks/games/files-games-section/eval/desc
new file mode 100644
index 0000000..9885711
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/eval/desc
@@ -0,0 +1,2 @@
+Testname: files-games-section
+Check: games
diff --git a/t/recipes/checks/games/files-games-section/eval/hints b/t/recipes/checks/games/files-games-section/eval/hints
new file mode 100644
index 0000000..8a60579
--- /dev/null
+++ b/t/recipes/checks/games/files-games-section/eval/hints
@@ -0,0 +1,3 @@
+files-games-section-wrong (binary): game-outside-section
+files-games-section-no-games (binary): package-section-games-but-contains-no-game
+files-games-section-both (binary): package-section-games-but-has-usr-bin