aboutsummaryrefslogtreecommitdiffstats
path: root/util/pl/BC-32.pl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-04-21 20:09:36 +0200
committerRichard Levitte <levitte@openssl.org>2015-09-07 16:10:58 +0200
commitfd9ad2300b280c0f71d24456bfbf04579331bc94 (patch)
tree37265c65bf6e1c19a28c977d0b60684f1750f36f /util/pl/BC-32.pl
parent93de4f58ef8be2cb764343cb3102d41c81f11593 (diff)
downloadopenssl-fd9ad2300b280c0f71d24456bfbf04579331bc94.tar.gz
Adapt mk1mf.pl and helpers to the new testing framework.
With the new testing framework, building a test target with mk1mf.pl becomes a very simple thing. And especially, no more need to do the amount of hackery in unix.pl we did. Also, some tests need a working apps/CA.pl as well as rehashed certs in certs/demo. So, move the code creating those files so it gets done regardless, not just in non-mk1mf environments. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'util/pl/BC-32.pl')
-rw-r--r--util/pl/BC-32.pl23
1 files changed, 23 insertions, 0 deletions
diff --git a/util/pl/BC-32.pl b/util/pl/BC-32.pl
index fd5c4b63af..3b2b85469c 100644
--- a/util/pl/BC-32.pl
+++ b/util/pl/BC-32.pl
@@ -94,6 +94,29 @@ if ($shlib)
$tmp_def="tmp32dll";
}
+sub do_rehash_rule {
+ my ($target, $deps) = @_;
+ my $ret = <<"EOF";
+$target: $deps
+ set OPENSSL=\$(BIN_D)${o}openssl.exe
+ set OPENSSL_DEBUG_MEMORY=on
+ \$(PERL) tools/c_rehash certs/demo
+EOF
+ return $ret
+}
+sub do_test_rule {
+ my ($target, $deps, $test_cmd) = @_;
+ my $ret = <<"EOF";
+$target: $deps force.$target
+ set TOP=.
+ set BIN_D=\$(BIN_D)
+ set TEST_D=\$(TEST_D)
+ set PERL=\$(PERL)
+ \$(PERL) test\\$test_cmd
+force.$target:
+EOF
+}
+
sub do_lib_rule
{
local($objs,$target,$name,$shlib)=@_;