Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-proofs: provide optional NUM_DOMAINS override #293

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions aws-proofs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ automatically spins up and terminates the corresponding AWS instance.
- `L4V_FEATURES`: Optional kernel features to test. Either `MCS` or empty.
- `L4V_PLAT`: Platform variant to test (optional). Either a platform name or
unset.
- `NUM_DOMAINS`: Optional override for the `KenrelNumDomains` config setting.
- `session`: which session to run (e.g. `CRefine` or `ASpec`, or `ASpec
CRefine`, i.e. a space-separated string). Runs all sessions if
unset.
Expand Down
3 changes: 3 additions & 0 deletions aws-proofs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ inputs:
L4V_PLAT:
description: 'Platform variant to test (optional). Either a platform name or unset.'
required: false
NUM_DOMAINS:
description: 'Optional override for KernelNumDomains config setting.'
required: false
session:
description: 'Which proof session to run (space-separated string)'
required: false
Expand Down
1 change: 1 addition & 0 deletions aws-proofs/steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ ssh -o SendEnv=INPUT_CI_BRANCH \
-o SendEnv=INPUT_L4V_ARCH \
-o SendEnv=INPUT_L4V_FEATURES \
-o SendEnv=INPUT_L4V_PLAT \
-o SendEnv=INPUT_NUM_DOMAINS \
-o SendEnv=INPUT_MANIFEST \
-o SendEnv=INPUT_ISA_BRANCH \
-o SendEnv=INPUT_SESSION \
Expand Down
6 changes: 5 additions & 1 deletion aws-proofs/vm-steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ isabelle/bin/isabelle components -a
export L4V_ARCH=${INPUT_L4V_ARCH}
export L4V_FEATURES=${INPUT_L4V_FEATURES}
export L4V_PLAT=${INPUT_L4V_PLAT}
L4V_ARCH_FEATURES="${L4V_ARCH}${L4V_FEATURES:+-${L4V_FEATURES}}${L4V_PLAT:+-${L4V_PLAT}}"

FEATURES_STR=${L4V_FEATURES:+-${L4V_FEATURES}}
PLAT_STR=${L4V_PLAT:+-${L4V_PLAT}}
NUM_DOMAINS_STR=${INPUT_NUM_DOMAINS:+-${INPUT_NUM_DOMAINS}}
L4V_ARCH_FEATURES="${L4V_ARCH}${FEATURES_STR}${PLAT_STR}${NUM_DOMAINS_STR}"

CACHE_NAME=${INPUT_CACHE_NAME}
if [ -z "${CACHE_NAME}" ]
Expand Down