Skip to content

Commit

Permalink
Add slow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
korran committed Nov 22, 2023
1 parent 3f4abe6 commit 891b694
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/fw-test-emu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
rom-logging:
default: true
type: boolean
slow-tests
default: false
type: boolean

jobs:
build_and_test:
Expand Down Expand Up @@ -58,17 +61,27 @@ jobs:
run: |
export CALIPTRA_PREBUILT_FW_DIR=/tmp/caliptra-test-firmware
FEATURE_FLAG=
FEATURE_FLAG="--features="
if [ "${{ inputs.trng }}" == "external" ] || [ -z "${{ inputs.trng }}" ]; then
echo Using external TRNG
elif [ "${{ inputs.trng }}" == "internal" ]; then
echo Using internal TRNG
FEATURE_FLAG="--features=itrng"
FEATURE_FLAG+=",itrng"
else
echo "Unexpected inputs.trng: ${{ inputs.rom-logging }}"
fi
if [ "${{ inputs.slow-tests }}" == "false" ] || [ -z "${{ inputs.slow-tests }}" ]; then
echo Ignoring slow tests
elif [ "${{ inputs.slow_tests }}" == "true" ]; then
echo Including slow tests
FEATURE_FLAG+=",slow_tests"
else
echo "Unexpected inputs.slow-tests: ${{ slow-tests }}"
exit 1
fi
if [ "${{ inputs.rom-logging }}" == "true" ] || [ -z "${{ inputs.rom-logging }}" ]; then
export CPTRA_ROM_TYPE=ROM_WITH_UART
elif [ "${{ inputs.rom-logging }}" == false ]; then
Expand All @@ -78,6 +91,8 @@ jobs:
exit 1
fi
echo Using feature flags "${FEATURE_FLAG}"
# Workaround https://github.com/nextest-rs/nextest/issues/267
export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
artifact-suffix: -sw-emulator-realtime-etrng-log
trng: external
rom-logging: true
slow-tests: true

sw-emulator-full-suite-etrng-nolog:
name: sw-emulator Suite (etrng, nolog)
Expand All @@ -100,6 +101,7 @@ jobs:
artifact-suffix: -sw-emulator-realtime-etrng-nolog
trng: external
rom-logging: false
slow-tests: true

sw-emulator-full-suite-itrng-log:
name: sw-emulator Suite (itrng, log)
Expand All @@ -110,6 +112,7 @@ jobs:
artifact-suffix: -sw-emulator-realtime-itrng-log
trng: internal
rom-logging: true
slow-tests: false

sw-emulator-full-suite-itrng-nolog:
name: sw-emulator Suite (itrng, nolog)
Expand All @@ -120,6 +123,7 @@ jobs:
artifact-suffix: -sw-emulator-realtime-itrng-nolog
trng: internal
rom-logging: false
slow-tests: false



Expand Down

0 comments on commit 891b694

Please sign in to comment.