-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
# Perl utility to run or verify FIPS 140-2 CMVP algorithm tests based on the
# pathnames of input algorithm test files actually present (the unqualified
# file names are consistent but the pathnames are not).
}
}
+
sanity_check_exe( $win32, $tprefix, $shwrap_prefix );
+my $cmd_prefix = $win32 ? "" : "${shwrap_prefix}shlib_wrap.sh ";
+
my %fips_files;
foreach ( keys %fips_tests ) {
}
if ($bad) {
print STDERR "FATAL ERROR: executables missing\n";
+ exit (1);
}
elsif ($debug) {
print STDERR "Executable sanity check passed OK\n";
next;
}
my $tcmd = $fips_tests{$tname};
- my $cmd = "${shwrap_prefix}shlib_wrap.sh $tprefix$tcmd ";
+ my $cmd = "$cmd_prefix$tprefix$tcmd ";
if ( $tcmd =~ /-f$/ ) {
$cmd .= "$req $out";
}
my $vout = $rsp;
$vout =~ s/\.rsp$/.ver/;
$tcmd = $verify_special{$tname};
- $cmd = "${shwrap_prefix}shlib_wrap.sh $tprefix$tcmd ";
+ $cmd = "$cmd_prefix$tprefix$tcmd ";
$cmd .= "<$out >$vout";
system($cmd);
if ( $? != 0 ) {