3 rem Batch file to copy OpenSSL stuff to a NetWare server for testing
5 rem This batch file will create an "opensssl" directory at the root of the
6 rem specified NetWare drive and copy the required files to run the tests.
7 rem It should be run from inside the "openssl\netware" subdirectory.
10 rem cpy_tests.bat <test subdirectory> <NetWare drive>
11 rem <test subdirectory> - out_nw.dbg | out_nw
12 rem <NetWare drive> - any mapped drive letter
14 rem example ( copy from debug build to m: dirve ):
15 rem cpy_tests.bat out_nw.dbg m:
17 rem CAUTION: If a directory named OpenSSL exists on the target drive
18 rem it will be deleted first.
21 if "%1" == "" goto usage
22 if "%2" == "" goto usage
24 rem Assume running in \openssl directory unless cpy_tests.bat exists then
25 rem it must be the \openssl\netware directory
27 if exist cpy_tests.bat set loc=..
29 rem make sure the local build subdirectory specified is valid
30 if not exist %loc%\%1\NUL goto invalid_dir
32 rem make sure target drive is valid
33 if not exist %2\NUL goto invalid_drive
35 rem If an OpenSSL directory exists on the target drive, remove it
36 if exist %2\openssl\NUL goto remove_openssl
41 echo OpenSSL directory exists on %2 - it will be removed!
43 rmdir %2\openssl /s /q
46 rem make an "openssl" directory and others at the root of the NetWare drive
48 mkdir %2\openssl\test_out
50 mkdir %2\openssl\certs
54 rem copy the test nlms
55 copy %loc%\%1\*.nlm %2\openssl\
57 rem copy the test perl script
58 copy %loc%\netware\do_tests.pl %2\openssl\
60 rem copy the certs directory stuff
61 xcopy %loc%\certs\*.* %2\openssl\certs\ /s
63 rem copy the test directory stuff
64 copy %loc%\test\CAss.cnf %2\openssl\test\
65 copy %loc%\test\Uss.cnf %2\openssl\test\
66 copy %loc%\test\pkcs7.pem %2\openssl\test\
67 copy %loc%\test\pkcs7-1.pem %2\openssl\test\
68 copy %loc%\test\testcrl.pem %2\openssl\test\
69 copy %loc%\test\testp7.pem %2\openssl\test\
70 copy %loc%\test\testreq2.pem %2\openssl\test\
71 copy %loc%\test\testrsa.pem %2\openssl\test\
72 copy %loc%\test\testsid.pem %2\openssl\test\
73 copy %loc%\test\testx509.pem %2\openssl\test\
74 copy %loc%\test\v3-cert1.pem %2\openssl\test\
75 copy %loc%\test\v3-cert2.pem %2\openssl\test\
76 copy %loc%\crypto\evp\evptests.txt %2\openssl\test\
78 rem copy the apps directory stuff
79 copy %loc%\apps\client.pem %2\openssl\apps\
80 copy %loc%\apps\server.pem %2\openssl\apps\
81 copy %loc%\apps\openssl.cnf %2\openssl\apps\
85 echo Run the test script at the console by typing:
86 echo "Perl \openssl\do_tests.pl"
88 echo Make sure the Search path includes the OpenSSL subdirectory
94 echo Invalid build directory specified: %1
100 echo Invalid drive: %2
106 echo usage: cpy_tests.bat [test subdirectory] [NetWare drive]
107 echo [test subdirectory] - out_nw_clib.dbg, out_nw_libc.dbg, etc.
108 echo [NetWare drive] - any mapped drive letter
110 echo example: cpy_test out_nw_clib.dbg M:
111 echo (copy from clib debug build area to M: drive)