diff options
Diffstat (limited to 't/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig')
15 files changed, 41 insertions, 0 deletions
diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/bin-env b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/bin-env new file mode 100644 index 0000000..005e1a9 --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/bin-env @@ -0,0 +1,2 @@ +#!/bin/env perl +print "Hello world\n"; diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/csh-shell b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/csh-shell new file mode 100644 index 0000000..3e39c0b --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/csh-shell @@ -0,0 +1 @@ +#!/bin/csh diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/cwl-runner b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/cwl-runner new file mode 100644 index 0000000..3f3280f --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/cwl-runner @@ -0,0 +1 @@ +#!/usr/bin/cwl-runner diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/interpreters.1 b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/interpreters.1 new file mode 100644 index 0000000..9e6dd89 --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/interpreters.1 @@ -0,0 +1,5 @@ +.TH interpreters 1 "Debian Utilities" "DEBIAN" \" -*- nroff -*- +.SH NAME +interpreters \- test script + +Dummy manpage to avoid triggering warnings about it not existing. diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/no-interpreter b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/no-interpreter new file mode 100644 index 0000000..3487806 --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/no-interpreter @@ -0,0 +1,3 @@ +#! +# Script missing any interpreter. +true diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/not-absolute b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/not-absolute new file mode 100644 index 0000000..ee656c6 --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/not-absolute @@ -0,0 +1,2 @@ +#!perl +print "Hello world\n"; diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/python2.7 b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/python2.7 new file mode 100644 index 0000000..1989667 --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/python2.7 @@ -0,0 +1,3 @@ +#!/usr/bin/python2.7 +import sys +sys.exit(0) diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/syntax b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/syntax new file mode 100644 index 0000000..c04b97f --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/syntax @@ -0,0 +1,4 @@ +#!/bin/sh +# A shell script with a syntax error. +if true ; then + echo True diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/unusual b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/unusual new file mode 100644 index 0000000..8a74f66 --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/unusual @@ -0,0 +1,2 @@ +#!/usr/bin/lintian +use lintian shell to check package diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/unversioned-pike b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/unversioned-pike new file mode 100644 index 0000000..f1eaf01 --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/unversioned-pike @@ -0,0 +1,4 @@ +#! /usr/bin/pike + +This is not a real pike script but sufficient to trigger a warning that the package +is missing a dependency for the interpreter. diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/usr-bin-env-perl b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/usr-bin-env-perl new file mode 100644 index 0000000..069c68b --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/usr-bin-env-perl @@ -0,0 +1,3 @@ +#!/usr/bin/env perl + +print "Hello world\n"; diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/usr-local b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/usr-local new file mode 100644 index 0000000..be79cf8 --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/usr-local @@ -0,0 +1,2 @@ +#!/usr/local/bin/special-perl +print "Hello world\n"; diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/usr-local-bin-perl b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/usr-local-bin-perl new file mode 100644 index 0000000..3c8f6fa --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/usr-local-bin-perl @@ -0,0 +1,3 @@ +#!/usr/local/bin/perl + +print "Hello world\n"; diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/versioned-pike b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/versioned-pike new file mode 100644 index 0000000..6b3b65b --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/versioned-pike @@ -0,0 +1,4 @@ +#! /usr/bin/pike7.6 + +This is not a real pike script but sufficient to trigger a warning that the package +is missing a dependency for the interpreter. diff --git a/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/wrong-perl-path b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/wrong-perl-path new file mode 100644 index 0000000..1602d4e --- /dev/null +++ b/t/recipes/checks/script/syntax/scripts-interpreters/build-spec/orig/wrong-perl-path @@ -0,0 +1,2 @@ +#!/bin/perl +print "Hello world\n"; |