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
|
|
|
|
|
|
|
|
printf "%s\n" "Running unit tests…"
|
|
|
|
|
|
|
|
expect ./tests/bip39.exp
|
|
|
|
expect ./tests/electrum.exp
|
|
|
|
expect ./tests/default.exp
|
|
|
|
expect ./tests/shamir.exp
|
2021-04-18 10:06:04 -04:00
|
|
|
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
|
2021-04-19 13:43:55 -04:00
|
|
|
expect ./tests/secure-erase.exp
|