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 = "$DATADIR/$1.issue";
18 my $outfile = "t/outfile";
19 OsChooser::write_file($outfile,
20 OsChooser::oschooser("os_list.txt", 1, $issue));
21 compare_ok($outfile, "$DATADIR/$file", $osname);