diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/files/contents/bin-sbin-confusion-in-script | |
parent | Initial commit. (diff) | |
download | lintian-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 '')
7 files changed, 30 insertions, 0 deletions
diff --git a/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/build-spec/debian/install b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/build-spec/debian/install new file mode 100644 index 0000000..b28d0c7 --- /dev/null +++ b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/build-spec/debian/install @@ -0,0 +1,2 @@ +our-script usr/bin +calls-sbin usr/bin diff --git a/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/build-spec/fill-values b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/build-spec/fill-values new file mode 100644 index 0000000..ea3ffc8 --- /dev/null +++ b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: bin-sbin-confusion-in-script +Description: Mix up bin and sbin when calling a package's own executables +Package-Architecture: any diff --git a/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/build-spec/orig/calls-sbin b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/build-spec/orig/calls-sbin new file mode 100755 index 0000000..7bf1674 --- /dev/null +++ b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/build-spec/orig/calls-sbin @@ -0,0 +1,14 @@ +#!/bin/sh + +BIN_PATH="/bin/our-script" +SBIN_PATH="/sbin/our-script" +USR_BIN_PATH="/usr/bin/our-script" +USR_SBIN_PATH="/usr/sbin/our-script" + +printf "Calling %s\n" $BIN_PATH +printf "Calling %s\n" $SBIN_PATH +printf "Calling %s\n" $USR_BIN_PATH +printf "Calling %s\n" $USR_SBIN_PATH + +exit 0 + diff --git a/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/build-spec/orig/our-script b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/build-spec/orig/our-script new file mode 100755 index 0000000..b80088b --- /dev/null +++ b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/build-spec/orig/our-script @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "THIS SCRIPT DOES NOTHING" diff --git a/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/eval/desc b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/eval/desc new file mode 100644 index 0000000..c4a8c4a --- /dev/null +++ b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/eval/desc @@ -0,0 +1,2 @@ +Testname: bin-sbin-confusion-in-script +Check: files/contents diff --git a/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/eval/hints b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/eval/hints new file mode 100644 index 0000000..37825d2 --- /dev/null +++ b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/eval/hints @@ -0,0 +1,3 @@ +bin-sbin-confusion-in-script (binary): bin-sbin-mismatch usr/sbin/our-script -> usr/bin/our-script [usr/bin/calls-sbin] +bin-sbin-confusion-in-script (binary): bin-sbin-mismatch sbin/our-script -> usr/bin/our-script [usr/bin/calls-sbin] +bin-sbin-confusion-in-script (binary): bin-sbin-mismatch bin/our-script -> usr/bin/our-script [usr/bin/calls-sbin] diff --git a/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/eval/post-test b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/eval/post-test new file mode 100644 index 0000000..56a64fc --- /dev/null +++ b/t/recipes/checks/files/contents/bin-sbin-confusion-in-script/eval/post-test @@ -0,0 +1,2 @@ +/bin-sbin-confusion-in-script \(binary\): bin-sbin-mismatch usr\/bin\/calls-sbin sbin\/our-script -> usr\/bin\/our-script/ d +/bin-sbin-confusion-in-script \(binary\): bin-sbin-mismatch usr\/bin\/calls-sbin bin\/our-script -> usr\/bin\/our-script/ d |