Projet

Général

Profil

Révision 6c0e154e

ID6c0e154e07e1dde9286e935f017a23bc01c42126
Parent f0872703
Enfant e59e2d01, eb795830

Ajouté par Lars Kruse il y a plus de 7 ans

tests: add "shellcheck" tests for "ksh" scripts

Voir les différences:

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