make cms-test.pl consistent with other branches
This commit is contained in:
		@@ -54,13 +54,13 @@
 | 
				
			|||||||
# OpenSSL PKCS#7 and CMS implementations.
 | 
					# OpenSSL PKCS#7 and CMS implementations.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
my $ossl_path;
 | 
					my $ossl_path;
 | 
				
			||||||
 | 
					my $redir = " 2>cms.err 1>cms.out";
 | 
				
			||||||
if ( -f "../apps/openssl" ) {
 | 
					# Make MSYS work
 | 
				
			||||||
 | 
					if ( $^O eq "MSWin32" && -f "../apps/openssl.exe" ) {
 | 
				
			||||||
 | 
					    $ossl_path = "cmd /c ..\\apps\\openssl";
 | 
				
			||||||
 | 
					elsif ( -f "../apps/openssl$ENV{EXE_EXT}" ) {
 | 
				
			||||||
    $ossl_path = "../util/shlib_wrap.sh ../apps/openssl";
 | 
					    $ossl_path = "../util/shlib_wrap.sh ../apps/openssl";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
elsif ( -f "../apps/openssl.exe" ) {
 | 
					 | 
				
			||||||
    $ossl_path = "../util/shlib_wrap.sh ../apps/openssl.exe";
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
elsif ( -f "..\\out32dll\\openssl.exe" ) {
 | 
					elsif ( -f "..\\out32dll\\openssl.exe" ) {
 | 
				
			||||||
    $ossl_path = "..\\out32dll\\openssl.exe";
 | 
					    $ossl_path = "..\\out32dll\\openssl.exe";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -336,10 +336,6 @@ my @smime_cms_comp_tests = (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
print "PKCS#7 <=> PKCS#7 consistency tests\n";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
run_smime_tests( \$badcmd, \@smime_pkcs7_tests, $pk7cmd, $pk7cmd );
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
print "CMS => PKCS#7 compatibility tests\n";
 | 
					print "CMS => PKCS#7 compatibility tests\n";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
run_smime_tests( \$badcmd, \@smime_pkcs7_tests, $cmscmd, $pk7cmd );
 | 
					run_smime_tests( \$badcmd, \@smime_pkcs7_tests, $cmscmd, $pk7cmd );
 | 
				
			||||||
@@ -389,14 +385,14 @@ sub run_smime_tests {
 | 
				
			|||||||
		$rscmd =~ s/-stream//;	
 | 
							$rscmd =~ s/-stream//;	
 | 
				
			||||||
		$rvcmd =~ s/-stream//;
 | 
							$rvcmd =~ s/-stream//;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
        system("$scmd$rscmd 2>cms.err 1>cms.out");
 | 
					        system("$scmd$rscmd$redir");
 | 
				
			||||||
        if ($?) {
 | 
					        if ($?) {
 | 
				
			||||||
            print "$tnam: generation error\n";
 | 
					            print "$tnam: generation error\n";
 | 
				
			||||||
            $$rv++;
 | 
					            $$rv++;
 | 
				
			||||||
            exit 1 if $halt_err;
 | 
					            exit 1 if $halt_err;
 | 
				
			||||||
            next;
 | 
					            next;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        system("$vcmd$rvcmd 2>cms.err 1>cms.out");
 | 
					        system("$vcmd$rvcmd$redir");
 | 
				
			||||||
        if ($?) {
 | 
					        if ($?) {
 | 
				
			||||||
            print "$tnam: verify error\n";
 | 
					            print "$tnam: verify error\n";
 | 
				
			||||||
            $$rv++;
 | 
					            $$rv++;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user