mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-24 02:19:41 +00:00
Add cryptest-windows.pl script
This commit is contained in:
parent
625a6dd09a
commit
46a4385db5
@ -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
23
TestScripts/cryptest-windows.pl
Executable 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"');
|
Loading…
Reference in New Issue
Block a user