use Cwd qw(abs_path getcwd);
use File::Path qw(mkpath); # mkpath works with ancient perl, as well as newer perl
use File::Spec;
-use Data::Dumper; # for debugging.
# these are created in the directory where we are run, which might be
# a build directory.
}
}
- #print sprintf("END: %08x\n", $r);
-
if($r == 0) {
if($linecount == 0) {
printf " %-40s: passed\n", $name;
while(<CONFIG_H>) {
chomp;
if(/^\#define (.*) 1/) {
- #print "Setting $1\n";
$main::confighhash->{$1} = 1;
}
}
close(CONFIG_H);
- #print Dumper($main::confighhash);
# also run tcpdump --fp-type to get the type of floating-point
# arithmetic we're doing, setting a HAVE_{fptype} key based
my $configset = $testconfig->{config_set};
my $configunset = $testconfig->{config_unset};
my $ch = loadconfighash();
- #print Dumper($ch);
if(defined($configset)) {
$foundit = ($ch->{$configset} == 1);
return 0;
}
- #use Data::Dumper;
- #print Dumper($testconfig);
-
# EXPAND any occurrences of @TESTDIR@ to $testsdir
$options =~ s/\@TESTDIR\@/$testsdir/;
$definitions = <FILE>;
}
close(FILE);
- #print "STUFF: ${definitions}\n";
eval $definitions;
if(defined($testlist)) {
- #use Data::Dumper;
- #print Dumper($testlist);
foreach $test (@$testlist) {
runOneComplexTest($test);
}
unlink("core");
($name, $input, $output, @options) = split;
- #print "processing ${only} vs ${name}\n";
next if(defined($only) && $only ne $name);
my $options = join(" ", @options);
- #print "@{options} becomes ${options}\n";
-
my $hash = { name => $name,
input=> $input,
output=>$output,