-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes coverage report for feature/sgx branch (#224)
- Triggers the coverage workflow for pushes to master and feature/sgx branches - Adds optional exec argument unit tests scripts - Some additional fixes to unit tests
- Loading branch information
1 parent
1d0044f
commit fc5aab6
Showing
12 changed files
with
170 additions
and
98 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
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,13 +1,21 @@ | ||
#!/bin/bash | ||
BASEDIR=$(dirname $0) | ||
TESTDIRS="bigdigits_helper ints memutil" | ||
TESTDIRS=${1:-"$TESTDIRS"} | ||
|
||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
if [[ $1 == "exec" ]]; then | ||
BASEDIR=$(realpath $(dirname $0)) | ||
TESTDIRS="bigdigits_helper ints memutil" | ||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
exit 0 | ||
else | ||
# Script directory | ||
REPOROOT=$(realpath $(dirname $0)/../../../../) | ||
SCRIPT=$(realpath $0 --relative-to=$REPOROOT) | ||
|
||
$REPOROOT/docker/mware/do-notty-nousb /hsm2 "./$SCRIPT exec" | ||
fi |
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,13 +1,21 @@ | ||
#!/bin/bash | ||
BASEDIR=$(dirname $0) | ||
TESTDIRS="sha256" | ||
TESTDIRS=${1:-"$TESTDIRS"} | ||
|
||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
if [[ $1 == "exec" ]]; then | ||
BASEDIR=$(realpath $(dirname $0)) | ||
TESTDIRS="sha256" | ||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
exit 0 | ||
else | ||
# Script directory | ||
REPOROOT=$(realpath $(dirname $0)/../../../../../) | ||
SCRIPT=$(realpath $0 --relative-to=$REPOROOT) | ||
|
||
$REPOROOT/docker/mware/do-notty-nousb /hsm2 "./$SCRIPT exec" | ||
fi |
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,21 @@ | ||
#!/bin/bash | ||
ROOTDIR=$(dirname $0)/../../../../.. | ||
TESTDIR=$(realpath $(dirname $0) --relative-to $ROOTDIR) | ||
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 $? | ||
done | ||
if [[ $1 == "exec" ]]; then | ||
BASEDIR=$(realpath $(dirname $0)) | ||
TESTDIRS="nvmem secret_store seed" | ||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
exit 0 | ||
else | ||
# Script directory | ||
REPOROOT=$(realpath $(dirname $0)/../../../../..) | ||
SCRIPT=$(realpath $0 --relative-to=$REPOROOT) | ||
|
||
$REPOROOT/docker/mware/do-notty-nousb /hsm2 "./$SCRIPT exec" | ||
fi |
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,21 @@ | ||
#!/bin/bash | ||
ROOTDIR=$(dirname $0)/../../../../.. | ||
TESTDIR=$(realpath $(dirname $0) --relative-to $ROOTDIR) | ||
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 $? | ||
done | ||
if [[ $1 == "exec" ]]; then | ||
BASEDIR=$(realpath $(dirname $0)) | ||
TESTDIRS="bip32 endian hmac_sha256 hmac_sha512 keccak256" | ||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
exit 0 | ||
else | ||
# Script directory | ||
REPOROOT=$(realpath $(dirname $0)/../../../../..) | ||
SCRIPT=$(realpath $0 --relative-to=$REPOROOT) | ||
|
||
$REPOROOT/docker/mware/do-notty-nousb /hsm2 "./$SCRIPT exec" | ||
fi |
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,13 +1,21 @@ | ||
#!/bin/bash | ||
BASEDIR=$(dirname $0) | ||
TESTDIRS="signer_ux" | ||
TESTDIRS=${1:-"$TESTDIRS"} | ||
|
||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
if [[ $1 == "exec" ]]; then | ||
BASEDIR=$(realpath $(dirname $0)) | ||
TESTDIRS="signer_ux" | ||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
exit 0 | ||
else | ||
# Script directory | ||
REPOROOT=$(realpath $(dirname $0)/../../../../../) | ||
SCRIPT=$(realpath $0 --relative-to=$REPOROOT) | ||
|
||
$REPOROOT/docker/mware/do-notty-nousb /hsm2 "./$SCRIPT exec" | ||
fi |
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,13 +1,22 @@ | ||
#!/bin/bash | ||
BASEDIR=$(dirname $0) | ||
TESTDIRS="attestation bootloader onboard pin signer_authorization ui_comm ui_heartbeat unlock ux_handlers" | ||
TESTDIRS=${1:-"$TESTDIRS"} | ||
|
||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
if [[ $1 == "exec" ]]; then | ||
BASEDIR=$(realpath $(dirname $0)) | ||
TESTDIRS="attestation bootloader onboard pin signer_authorization ui_comm ui_heartbeat unlock ux_handlers" | ||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
exit 0 | ||
else | ||
# Script directory | ||
REPOROOT=$(realpath $(dirname $0)/../../../../../) | ||
SCRIPT=$(realpath $0 --relative-to=$REPOROOT) | ||
|
||
$REPOROOT/docker/mware/do-notty-nousb /hsm2 "./$SCRIPT exec" | ||
fi | ||
|
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,13 +1,21 @@ | ||
#!/bin/bash | ||
BASEDIR=$(dirname $0) | ||
TESTDIRS="btcscript btctx difficulty srlp svarint trie" | ||
TESTDIRS=${1:-"$TESTDIRS"} | ||
|
||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
if [[ $1 == "exec" ]]; then | ||
BASEDIR=$(realpath $(dirname $0)) | ||
TESTDIRS="btcscript btctx difficulty srlp svarint trie" | ||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
exit 0 | ||
else | ||
# Script directory | ||
REPOROOT=$(realpath $(dirname $0)/../../../../) | ||
SCRIPT=$(realpath $0 --relative-to=$REPOROOT) | ||
|
||
$REPOROOT/docker/mware/do-notty-nousb /hsm2 "./$SCRIPT exec" | ||
fi |
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,13 +1,21 @@ | ||
#!/bin/bash | ||
BASEDIR=$(dirname $0) | ||
TESTDIRS="system" | ||
TESTDIRS=${1:-"$TESTDIRS"} | ||
|
||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
if [[ $1 == "exec" ]]; then | ||
BASEDIR=$(realpath $(dirname $0)) | ||
TESTDIRS="system" | ||
for d in $TESTDIRS; do | ||
echo "******************************" | ||
echo "Testing $d..." | ||
echo "******************************" | ||
cd "$BASEDIR/$d" | ||
make clean test || exit $? | ||
cd - > /dev/null | ||
done | ||
exit 0 | ||
else | ||
# Script directory | ||
REPOROOT=$(realpath $(dirname $0)/../../../../) | ||
SCRIPT=$(realpath $0 --relative-to=$REPOROOT) | ||
|
||
$REPOROOT/docker/mware/do-notty-nousb /hsm2 "./$SCRIPT exec" | ||
fi |