xt/05_script-shebang.t
raw| 1 | use strict; |
| 2 | use warnings; |
| 3 | use Test::More; |
| 4 | use Test::Requires 'Test::Script::Shebang'; |
| 5 | use File::Find qw/find/; |
| 6 | |
| 7 | my @files; |
| 8 | for my $dir (qw/bin script/) { |
| 9 | next unless -d $dir; |
| 10 | find { |
| 11 | no_chdir => 1, |
| 12 | wanted => sub { push @files, $_ if -f }, |
| 13 | }, $dir; |
| 14 | } |
| 15 | plan skip_all => 'script not found' unless @files; |
| 16 | |
| 17 | check_shebang(@files); |
| 18 | |
| 19 | done_testing; |