Adapt to diffrent OpenSSL utility locations.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 16 Mar 2008 19:10:02 +0000 (19:10 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 16 Mar 2008 19:10:02 +0000 (19:10 +0000)
test/runex.pl

index 25ae879..5e460a3 100644 (file)
@@ -58,10 +58,23 @@ use MIME::Base64;
 my $badttest = 0;
 my $verbose  = 1;
 
-my $cmscmd = "../util/shlib_wrap.sh ../apps/openssl cms";
+my $cmscmd;
 my $exdir  = "./";
 my $exfile = "./rfc4134.txt";
 
+if (-f "../apps/openssl")
+       {
+       $cmscmd = "../util/shlib_wrap.sh ../apps/openssl cms";
+       }
+elsif (-f "..\\out32dll\\openssl.exe")
+       {
+       $cmscmd = "..\\out32dll\\openssl.exe cms";
+       }
+elsif (-f "..\\out32\\openssl.exe")
+       {
+       $cmscmd = "..\\out32\\openssl.exe cms";
+       }
+
 my @test_list = (
     [ "3.1.bin"  => "dataout" ],
     [ "3.2.bin"  => "encode, dataout" ],