-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run CI unit tests in a docker container
To keep all firmware unit tests consistent, we now only run them inside the mware docker container in the CI workflow. run-all.sh scripts, on the other side, do not make that assumption. This keeps every test consistent so that we don't need to guess which ones internally start a docker container and which ones just run in the host machine.
- Loading branch information
1 parent
39b9a8b
commit 560dd16
Showing
3 changed files
with
16 additions
and
14 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
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/bin/bash | ||
ROOTDIR=$(dirname $0)/../../../../.. | ||
TESTDIR=$(realpath $(dirname $0) --relative-to $ROOTDIR) | ||
BASEDIR=$(dirname $0) | ||
TESTDIRS="nvmem secret_store seed" | ||
TESTDIRS=${1:-"$TESTDIRS"} | ||
|
||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
$ROOTDIR/docker/mware/do-notty-nousb /hsm2/$TESTDIR/$d "make clean test" || exit $? | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done |
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/bin/bash | ||
ROOTDIR=$(dirname $0)/../../../../.. | ||
TESTDIR=$(realpath $(dirname $0) --relative-to $ROOTDIR) | ||
BASEDIR=$(dirname $0) | ||
TESTDIRS="bip32 endian hmac_sha256 hmac_sha512 keccak256" | ||
TESTDIRS=${1:-"$TESTDIRS"} | ||
|
||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
$ROOTDIR/docker/mware/do-notty-nousb /hsm2/$TESTDIR/$d "make clean test" || exit $? | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done |