[openssl-dev] [openssl.org #3830] [PATCH] Fix test execution on Windows

Gunnar Kudrjavets via RT rt at openssl.org
Sat May 2 06:05:21 UTC 2015


Hello,

Summary: fix test case execution on Windows so that all the tests will be run.

Additional data:

1) Operating systems affected: all versions of Windows.

2) OpenSSL versions affected: all versions running on Windows.

Thank you,
Gunnar Kudrjavets


-------------- next part --------------
>From 3a27a5e98f883034c0d61928f6e71f364fcc024a Mon Sep 17 00:00:00 2001
From: Gunnar Kudrjavets <gunnarku at microsoft.com>
Date: Fri, 1 May 2015 13:07:20 -0700
Subject: [PATCH] Fix test execution on Windows

Currently running tests on Windows is broken because '.\ms\testss.bat'
references 'certCA.srl' instead of '..\ms\certCA.srl'. Given that the
working directory during test execution is not 'ms' then this means that
not all the tests will be executed.

The fix is trivial. We just copy the file from '..\ms\'. Referencing it
directly would cause the contents to change which will mark the file as
modified every time test cases will be executed.

If everything goes well then after running 'nmake -f ms\ntdll.mak test'
one should see 'passed all tests' in the output.
---
 ms/testss.bat | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ms/testss.bat b/ms/testss.bat
index 5afa131..291532d 100755
--- a/ms/testss.bat
+++ b/ms/testss.bat
@@ -48,6 +48,9 @@ if errorlevel 1 goto e_req_gen
 
 echo --
 echo sign certificate request with the just created CA via 'x509'
+rem The serial number file is not in the current directory. Need to copy it
+rem from the source location so that the next test will pass.
+copy /y ..\ms\%CAserial% .
 %x509cmd% -CAcreateserial -in %Ureq% -days 30 -req -out %Ucert% -CA %CAcert% -CAkey %CAkey% -CAserial %CAserial%
 if errorlevel 1 goto e_x_sign
 
-- 
1.9.5.msysgit.1



More information about the openssl-dev mailing list