Révision 6c0e154e
tests: add "shellcheck" tests for "ksh" scripts
| t/test.t | ||
|---|---|---|
| 85 | 85 |
}; |
| 86 | 86 |
} |
| 87 | 87 |
elsif ( $interpreter =~ m{/bin/ksh} ) {
|
| 88 |
run_check( |
|
| 89 |
{ command => [ 'ksh', '-n', $file ],
|
|
| 90 |
description => 'ksh syntax check', |
|
| 91 |
filename => $filename |
|
| 92 |
} |
|
| 93 |
); |
|
| 88 |
subtest $filename => sub {
|
|
| 89 |
plan tests => 2; |
|
| 90 |
run_check( |
|
| 91 |
{ command => [ 'ksh', '-n', $file ],
|
|
| 92 |
description => 'ksh syntax check', |
|
| 93 |
filename => $filename |
|
| 94 |
} |
|
| 95 |
); |
|
| 96 |
run_check( |
|
| 97 |
{ command => [ 'shellcheck', $file ],
|
|
| 98 |
description => 'shellcheck' |
|
| 99 |
} |
|
| 100 |
); |
|
| 101 |
} |
|
| 94 | 102 |
} |
| 95 | 103 |
elsif ( $interpreter =~ m{bash} ) {
|
| 96 | 104 |
run_check( |
Formats disponibles : Unified diff