Commit 39e8b04
committed
ACVP: Filter unsupported functions from test cases
The previous encapDecap-file gate only loaded the file when all four
sub-functions (encapsulation, decapsulation, encapsulationKeyCheck,
decapsulationKeyCheck) were compiled in. Under encaps-only, decaps-only,
keygen-encaps, and keygen-decaps configurations that skipped the entire
prompt file, so ACVP reported OK while driving zero test cases through
the binary.
This commit intead loads the encapDecap file whenever _any_ of its
sub-functions are supported, and drops unsupported test cases via a
filter that mutates both the prompt and the expectedResults data
consistently. This mirrors the filter_test_cases machinery introduced
for the same reason in mldsa-native (PR #1140).
Reduced-API runs also now emit a labelled stderr summary block after
"ALL GOOD!" for both whole-prompt skips and per-test drops, so coverage
gaps aren't buried in scrollback. Full-API runs stay silent.
Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>1 parent a81a2fc commit 39e8b04
27 files changed
Lines changed: 95 additions & 42 deletions
File tree
- examples
- basic_deterministic/mlkem_native
- bring_your_own_fips202_static/mlkem_native
- bring_your_own_fips202/mlkem_native
- custom_backend/mlkem_native
- monolithic_build_multilevel_native/mlkem_native
- monolithic_build_multilevel/mlkem_native
- monolithic_build_native/mlkem_native
- monolithic_build/mlkem_native
- multilevel_build_native/mlkem_native
- multilevel_build/mlkem_native
- mlkem
- proofs/cbmc
- test
- acvp
- configs
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | 159 | | |
161 | 160 | | |
162 | 161 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
| |||
0 commit comments