Révision ebe5be1d
tests: verify executable flag for plugins with shebang
| t/test.t | ||
|---|---|---|
| 48 | 48 |
my ( $file, $filename, $interpreter, $arguments ) = @_; |
| 49 | 49 |
use v5.10.1; |
| 50 | 50 |
|
| 51 |
if ( $interpreter =~ m{/bin/sh} ) {
|
|
| 51 |
if ( ! -x $file ) {
|
|
| 52 |
# missing executable flag |
|
| 53 |
diag( |
|
| 54 |
sprintf("\nFile '%s' lacks executable permission bits. Maybe try 'chmod +x $file'?\n",
|
|
| 55 |
$file) |
|
| 56 |
); |
|
| 57 |
} |
|
| 58 |
elsif ( $interpreter =~ m{/bin/sh} ) {
|
|
| 52 | 59 |
subtest $filename => sub {
|
| 53 | 60 |
plan tests => 2; |
| 54 | 61 |
run_check( |
Formats disponibles : Unified diff