32 lines
689 B
Bash
Raw Normal View History

2021-04-17 16:31:44 -04:00
#!/bin/bash
set -e
set -o pipefail
bold=$(tput bold)
normal=$(tput sgr0)
2021-04-19 13:43:55 -04:00
mkdir -p /tmp/pi
2021-04-22 10:57:10 -04:00
printf "$bold%s$normal\n" "Please type sudo password and press enter"
2021-04-17 16:31:44 -04:00
read -rs password
export password=$password
2021-05-21 14:02:00 -04:00
if [ -n "$1" ]; then
printf "%s\n" "Running unit test…"
expect ./tests/$1
else
printf "%s\n" "Running unit tests…"
expect ./tests/bip39.exp
expect ./tests/passphrase.exp
2021-05-21 14:02:00 -04:00
expect ./tests/default.exp
expect ./tests/shamir.exp
expect ./tests/shamir-2-of-3.exp
expect ./tests/clone.exp
expect ./tests/convert-default-to-shamir-2-of-3.exp
expect ./tests/convert-shamir-2-of-3-to-default.exp
expect ./tests/duplicate.exp
expect ./tests/secure-erase.exp
fi