2 # Test in command mode...
5 my $DATADIR = "t/data";
7 # Get a list of the example OS definition files
8 opendir(DIR, $DATADIR) || die "can't opendir $DATADIR: $!";
9 my @files = grep { /\.os/ } readdir(DIR);
11 use Test::More qw(no_plan);
14 foreach my $file (sort @files) {
17 my $issue = $1 . ".issue";
18 my $outfile = "t/outfile";
19 my $result = `./OsChooser.pm os_list.txt $outfile 1 $DATADIR/$issue`;
20 # Do something with $result
21 compare_ok($outfile, "$DATADIR/$file", $osname);