File: 01_can_run.t

package info (click to toggle)
libdevel-checkbin-perl 0.04-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 112 kB
  • sloc: perl: 40; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 236 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;
use utf8;
use Test::More;
use Devel::CheckBin;

if ($^O eq 'linux' || $^O eq 'darwin') {
    ok can_run("ls");
    ok !can_run("unknown_command");
} else {
    plan 'skip_all' => "Skip: $^O";
}

done_testing;