Increased output block size from 64 to 96 bytes; now using 8 counter values, instead...
[fast-key-erasure-rng-java.git] / test.cmd
blob02e2241d63516ce9192cea1ae133081ef2c4dced
1 @echo off
2 cd /d "%~dp0"
4 if not exist "%JDK17_HOME%\bin\java.exe" (
5 echo File "%JDK17_HOME%\bin\java.exe" not found. Please check JDK17_HOME and try again!
6 pause
7 exit /b 1
10 for %%i in ("%CD%\libexec\junit-platform-console-standalone*.jar") do (
11 set "JUNIT_RUNNER_PATH=%%~i"
12 goto:found_runner
15 echo File "libexec\junit-platform-console-standalone.jar" not found. Please build first!
16 echo Please download from https://mvnrepository.com/artifact/org.junit.platform/junit-platform-console-standalone
17 pause
18 exit /b 1
20 :found_runner
22 for %%i in ("%CD%\dist\fast-key-erasure*.tests.jar") do (
23 set "JAR_FILE_PATH=%%~i"
24 goto:found_jarfile
27 echo File "dist\fast-key-erasure.tests.jar" not found. Please build first!
28 pause
29 exit /b 1
31 :found_jarfile
33 if "%PROCESSOR_ARCHITECTURE%"=="x86" (
34 set TEE_EXEFILE=tee-x86.exe
35 ) else if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
36 set TEE_EXEFILE=tee-x64.exe
37 ) else if "%PROCESSOR_ARCHITECTURE%"=="ARM64" (
38 set TEE_EXEFILE=tee-a64.exe
39 ) else (
40 echo Unknown processor architecture!
41 pause
42 exit /b 1
45 set "JAVA_HOME=%JDK17_HOME%"
46 set "PATH=%JAVA_HOME%\bin;%PATH%"
47 set CLASSPATH=
49 "%JAVA_HOME%\bin\java.exe" -Xmx10g -Xms10g -ea -jar "%JUNIT_RUNNER_PATH%" --classpath "%JAR_FILE_PATH%" --scan-classpath | "%CD%\libexec\windows\%TEE_EXEFILE%" NUL
51 pause