-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hoist functional tests into composite action
Signed-off-by: Hanno Becker <[email protected]>
- Loading branch information
1 parent
6ec233c
commit 227fd53
Showing
2 changed files
with
41 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Functional tests | ||
description: Run functional tests for MLKEM-C_AArch64 | ||
|
||
inputs: | ||
cflags: | ||
description: CFLAGS to pass to compilation | ||
default: '' | ||
cross-prefix: | ||
description: Binary prefix for cross compilation | ||
default: '' | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Run functional tests | ||
id: func_test | ||
shell: nix develop .#ci -c bash -e {0} | ||
run: | | ||
tests func --cross-prefix=${{ inputs.cross-prefix }} --cflags ${{ inputs.cflags }} -v | ||
- name: Run KAT tests | ||
if: | | ||
success() | ||
|| steps.func_test.conclusion == 'failure' | ||
id: kat_test | ||
shell: nix develop .#ci -c bash -e {0} | ||
run: | | ||
tests kat --cross-prefix=${{ inputs.cross-prefix }} --cflags ${{ inputs.cflags }} -v | ||
- name: Run Nistkat tests | ||
id: nistkat_test | ||
if: | | ||
success() | ||
|| steps.func_test.conclusion == 'failure' | ||
|| steps.kat_test.conclusion == 'failure' | ||
shell: nix develop .#ci -c bash -e {0} | ||
run: | | ||
tests nistkat --cross-prefix=${{ inputs.cross-prefix }} --cflags ${{ inputs.cflags }} -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters