You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-16Lines changed: 14 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,21 +67,17 @@ For further details, please refer to [scripts/README.md](scripts/README.md)
67
67
68
68
## Running tests and benchmarks
69
69
70
-
The build system compiles tests and benchmarks for each mlkem parameter set on specified platform, currently supported platform includes `stm32f4discovery` and `mps2-an386` (could be simulated with the `QEMU` simulator).
70
+
The build system compiles tests and benchmarks for each mlkem parameter set on specified platform, supported platform can be found by running `tests --list-platforms`.
71
71
The PLATFORM configuration is optional, with the default platform set to `stm32f4discovery`.
72
72
73
73
For example,
74
-
-`make [PLATFORM=<PLATFORM_NAME>] bin/mlkem768-test.hex` assembles the `mlkem768` binary performing functional tests.
75
-
-`make [PLATFORM=<PLATFORM_NAME>] bin/mlkem1024-speed.hex` assembles the `mlkem-1024` speed benchmark binary.
76
-
-`make [PLATFORM=<PLATFORM_NAME>] test` assembles all binaries for functional tests.
77
-
-`make [PLATFORM=<PLATFORM_NAME>] speed` assembles all binaries for speed benchmarking
78
-
-`make [PLATFORM=<PLATFORM_NAME>] stack` assembles all binaries for stack benchmarking
74
+
-`make [PLATFORM=<PLATFORM_NAME>] [RNG=HAL|NOTRAND] test` assembles all binaries for functional tests.
75
+
-`make [PLATFORM=<PLATFORM_NAME>] [RNG=HAL|NOTRAND] speed` assembles all binaries for speed benchmarking
76
+
-`make [PLATFORM=<PLATFORM_NAME>] [RNG=HAL|NOTRAND] stack` assembles all binaries for stack benchmarking
79
77
-`make [PLATFORM=<PLATFORM_NAME>] RNG=NISTKAT nistkat` assembles all binaries for nistkat
80
78
-`make [PLATFORM=<PLATFORM_NAME>] (all)` assembles all the above targets for all parameter sets.
81
79
82
-
-`make emulate` build binaries for emulating `mps2-an386` on `QEMU` of test, speed, stack
83
-
-`make "emulate [test|speed|stack|nistkat]"` build binaries of test, speed, stack or nistkat for emulating `mps2-an386` on `QEMU`
84
-
-`make "emulate run" ELF_FILE=<ELF_FILE_NAME>` run emulatation for the file on `QEMU`
80
+
-`make emulate` run emulatation for the binary file on `QEMU`
85
81
-`make clean` cleans up intermediate artifacts
86
82
87
83
### Manual testing on board
@@ -104,6 +100,7 @@ Make sure to run `make clean` between running tests on QEMU or on board or runni
104
100
Usage: tests [OPTIONS] COMMAND [ARGS]...
105
101
106
102
Options:
103
+
--list-platforms List the supported platforms
107
104
--help Show this message and exit.
108
105
109
106
Commands:
@@ -119,13 +116,14 @@ func/speed tests depends on the iteration parameter, which is passed to the test
0 commit comments