|
| 1 | +@echo off |
| 2 | +setlocal enabledelayedexpansion |
| 3 | + |
| 4 | +:: Copyright (c) 2025 Theo Beuhler |
| 5 | +:: |
| 6 | +:: Permission to use, copy, modify, and distribute this software for any |
| 7 | +:: purpose with or without fee is hereby granted, provided that the above |
| 8 | +:: copyright notice and this permission notice appear in all copies. |
| 9 | +:: |
| 10 | +:: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 11 | +:: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 12 | +:: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 13 | +:: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 14 | +:: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 15 | +:: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 16 | +:: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 17 | + |
| 18 | +set mlkem_tests_bin=%1 |
| 19 | +set mlkem_tests_bin=%mlkem_tests_bin:/=\% |
| 20 | +if not exist %mlkem_tests_bin% exit /b 1 |
| 21 | + |
| 22 | +%mlkem_tests_bin% mlkem768_decap_tests %srcdir%\mlkem768_decap_tests.txt |
| 23 | +if !errorlevel! neq 0 ( |
| 24 | + exit /b 1 |
| 25 | +) |
| 26 | +%mlkem_tests_bin% mlkem768_encap_tests %srcdir%\mlkem768_encap_tests.txt |
| 27 | +if !errorlevel! neq 0 ( |
| 28 | + exit /b 1 |
| 29 | +) |
| 30 | +%mlkem_tests_bin% mlkem768_keygen_tests %srcdir%\mlkem768_keygen_tests.txt |
| 31 | +if !errorlevel! neq 0 ( |
| 32 | + exit /b 1 |
| 33 | +) |
| 34 | +%mlkem_tests_bin% mlkem768_nist_decap_tests %srcdir%\mlkem768_nist_decap_tests.txt |
| 35 | +if !errorlevel! neq 0 ( |
| 36 | + exit /b 1 |
| 37 | +) |
| 38 | +%mlkem_tests_bin% mlkem768_nist_keygen_tests %srcdir%\mlkem768_nist_keygen_tests.txt |
| 39 | +if !errorlevel! neq 0 ( |
| 40 | + exit /b 1 |
| 41 | +) |
| 42 | +%mlkem_tests_bin% mlkem1024_decap_tests %srcdir%\mlkem1024_decap_tests.txt |
| 43 | +if !errorlevel! neq 0 ( |
| 44 | + exit /b 1 |
| 45 | +) |
| 46 | +%mlkem_tests_bin% mlkem1024_encap_tests %srcdir%\mlkem1024_encap_tests.txt |
| 47 | +if !errorlevel! neq 0 ( |
| 48 | + exit /b 1 |
| 49 | +) |
| 50 | +%mlkem_tests_bin% mlkem1024_keygen_tests %srcdir%\mlkem1024_keygen_tests.txt |
| 51 | +if !errorlevel! neq 0 ( |
| 52 | + exit /b 1 |
| 53 | +) |
| 54 | +%mlkem_tests_bin% mlkem1024_nist_decap_tests %srcdir%\mlkem1024_nist_decap_tests.txt |
| 55 | +if !errorlevel! neq 0 ( |
| 56 | + exit /b 1 |
| 57 | +) |
| 58 | +%mlkem_tests_bin% mlkem1024_nist_keygen_tests %srcdir%\mlkem1024_nist_keygen_tests.txt |
| 59 | +if !errorlevel! neq 0 ( |
| 60 | + exit /b 1 |
| 61 | +) |
| 62 | + |
| 63 | +endlocal |
0 commit comments