summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-09-19 11:30:14 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-09-19 11:30:14 +0000
commitb5cee977c2ae0c0bec73dcdacab4b8a4228a34e4 (patch)
treea961141f73874c7d673146710e05454c00502836
parentae3b60ba99033ff06da382b764a9f50134e30806 (diff)
update FIPS script generator to make output easier to hand edit
-rw-r--r--fips/mkfipsscr.pl19
1 files changed, 15 insertions, 4 deletions
diff --git a/fips/mkfipsscr.pl b/fips/mkfipsscr.pl
index dc60cdf580..3c30130022 100644
--- a/fips/mkfipsscr.pl
+++ b/fips/mkfipsscr.pl
@@ -297,6 +297,7 @@ my $filter = "";
my $tvdir;
my $tprefix;
my $shwrap_prefix;
+my $shwrap;
my $debug = 0;
my $quiet = 0;
my $rspdir = "rsp";
@@ -331,6 +332,10 @@ foreach (@ARGV)
{
$rspdir = $1;
}
+ elsif (/--noshwrap$/)
+ {
+ $shwrap = "";
+ }
elsif (/--rspignore$/)
{
$rspignore = 1;
@@ -396,6 +401,8 @@ else
$shwrap_prefix = "../util/" unless defined $shwrap_prefix;
}
+ $shwrap = "${shwrap_prefix}shlib_wrap.sh " unless defined $shwrap;
+
$bufinit .= <<END;
#!/bin/sh
@@ -403,6 +410,10 @@ else
# Auto generated by mkfipsscr.pl script
# Do not edit
+RM=rm -rf
+MKDIR=mkdir
+TPREFIX=$tprefix
+
END
}
@@ -558,8 +569,8 @@ END
$bufout .= <<END;
echo Running tests in "$req"
-rm -rf "$rsp"
-mkdir "$rsp"
+\$RM "$rsp"
+\$MKDIR "$rsp"
END
}
@@ -584,7 +595,7 @@ sub test_line
else
{
$bufout .= <<END;
-${shwrap_prefix}shlib_wrap.sh $tprefix$tcmd "$req" "$rsp" || { echo "$req failure" ; exit 1
+${shwrap}\${TPREFIX}$tcmd "$req" "$rsp" || { echo "$req failure" ; exit 1
}
END
$_programs{"${shwrap_prefix}shlib_wrap.sh"} = 1;
@@ -624,7 +635,7 @@ END
else
{
$bufout .= <<END;
-${shwrap_prefix}shlib_wrap.sh $tprefix$tcmd < "$req" > "$rsp" || { echo "$req failure" ; exit 1; }
+${shwrap}\${TPREFIX}$tcmd < "$req" > "$rsp" || { echo "$req failure" ; exit 1; }
END
$_programs{"$tprefix$tcmd"} = 1;
}