Add cryptest-windows.pl script

This commit is contained in:
Jeffrey Walton 2016-10-01 14:44:40 -04:00
parent 625a6dd09a
commit 46a4385db5
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 26 additions and 3 deletions

View File

@ -686,9 +686,9 @@ endif
convert:
-$(CHMOD) 0700 TestVectors/ TestData/ TestScripts/
-$(CHMOD) 0600 $(TEXT_FILES) *.asm *.S *.zip *.cmake TestVectors/*.txt TestData/*.dat
-$(CHMOD) 0700 $(EXEC_FILES) *.sh *.cmd TestScripts/*.sh TestScripts/cryptest-win.pl
-$(CHMOD) 0700 *.cmd *.sh GNUmakefile GNUmakefile-cross
-unix2dos --keepdate --quiet $(TEXT_FILES) *.asm *.cmd *.cmake TestScripts/cryptest-win.pl
-$(CHMOD) 0700 $(EXEC_FILES) *.sh *.cmd TestScripts/*.sh TestScripts/*.pl
-$(CHMOD) 0700 *.cmd *.sh GNUmakefile GNUmakefile-cross TestScripts/*.sh TestScripts/*.pl
-unix2dos --keepdate --quiet $(TEXT_FILES) *.asm *.cmd *.cmake TestScripts/*.pl
-dos2unix --keepdate --quiet GNUmakefile GNUmakefile-cross *.S *.sh TestScripts/*.sh
ifneq ($(IS_DARWIN),0)
-xattr -c *

23
TestScripts/cryptest-windows.pl Executable file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env perl
# cryptest-windows.sh - written and placed in public domain by Jeffrey Walton and Uri Blumenthal.
# Copyright assigned to Crypto++ project.
# This is a test script that can be used on some Windows machines to automate building the
# library and running the self test with various combinations of flags, options, and conditions.
# For more details, see http://cryptopp.com/wiki/cryptest-windows.pl.
# To run the script, copy cryptest-windows.pl from TestScripts to the root and then perform the following:
# .\cryptest-windows.pl
use strict;
use warnings;
my $DEBUG32_CXXFLAGS="/DDEBUG";
my $RELEASE32_CXXFLAGS="/DNDEBUG";
my $DEBUG64_CXXFLAGS="/DDEBUG";
my $RELASE64_CXXFLAGS="/DNDEBUG";
system('nmake', '/f', 'cryptest.nmake', 'clean');
system('nmake', '/f', 'cryptest.nmake', 'CXXFLAGS="DEBUG32_CXXFLAGS"');