Skip to content

Commit 2eaa5b6

Browse files
committed
CI: Add REDUCE_RAM config-variations tests
Add config-variations tests for REDUCE_RAM and REDUCE_RAM + PCT configurations to ensure allocation constants are validated for all four configuration variants. Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent c3894ba commit 2eaa5b6

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/actions/config-variations/action.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
description: 'GitHub token'
99
required: true
1010
tests:
11-
description: 'List of tests to run (space-separated IDs) or "all" for all tests. Available IDs: pct-enabled, pct-enabled-broken, custom-alloc-heap, custom-zeroize, native-cap-ON, native-cap-OFF, native-cap-ID_AA64PFR1_EL1, native-cap-CPUID_AVX2, no-asm, serial-fips202, custom-randombytes, custom-memcpy, custom-memset, custom-stdlib'
11+
description: 'List of tests to run (space-separated IDs) or "all" for all tests. Available IDs: pct-enabled, pct-enabled-broken, reduce-ram, reduce-ram-pct, custom-alloc-heap, custom-zeroize, native-cap-ON, native-cap-OFF, native-cap-ID_AA64PFR1_EL1, native-cap-CPUID_AVX2, no-asm, serial-fips202, custom-randombytes, custom-memcpy, custom-memset, custom-stdlib'
1212
required: false
1313
default: 'all'
1414
opt:
@@ -32,6 +32,35 @@ runs:
3232
opt: ${{ inputs.opt }}
3333
examples: true
3434
extra_args: "--exclude-example basic_deterministic"
35+
- name: "REDUCE_RAM"
36+
if: ${{ inputs.tests == 'all' || contains(inputs.tests, 'reduce-ram') }}
37+
uses: ./.github/actions/multi-functest
38+
with:
39+
gh_token: ${{ inputs.gh_token }}
40+
compile_mode: native
41+
cflags: "-DMLD_CONFIG_REDUCE_RAM -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all"
42+
ldflags: "-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all"
43+
func: true
44+
kat: true
45+
acvp: true
46+
alloc: true
47+
opt: ${{ inputs.opt }}
48+
examples: true
49+
- name: "REDUCE_RAM + PCT"
50+
if: ${{ inputs.tests == 'all' || contains(inputs.tests, 'reduce-ram-pct') }}
51+
uses: ./.github/actions/multi-functest
52+
with:
53+
gh_token: ${{ inputs.gh_token }}
54+
compile_mode: native
55+
cflags: "-DMLD_CONFIG_REDUCE_RAM -DMLD_CONFIG_KEYGEN_PCT -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all"
56+
ldflags: "-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all"
57+
func: true
58+
kat: true
59+
acvp: true
60+
alloc: true
61+
opt: ${{ inputs.opt }}
62+
examples: true
63+
extra_args: "--exclude-example basic_deterministic"
3564
- name: "PCT enabled + broken"
3665
if: ${{ inputs.tests == 'all' || contains(inputs.tests, 'pct-enabled-broken') }}
3766
shell: bash

0 commit comments

Comments
 (0)