Skip to content

Commit

Permalink
Run from local checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
infokiller committed Dec 27, 2020
1 parent ad47f9f commit c6b3780
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ MNEMONICS_2OF3=(
'shadow pistol academic always adequate wildlife fancy gross oasis cylinder mustang wrist rescue view short owner flip making coding armed'
'shadow pistol academic acid actress prayer class unknown daughter sweater depict flip twice unkind craft early superior advocate guest smoking'
)
SCRIPT_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"

echo_bold() {
local bold normal
Expand All @@ -24,11 +25,12 @@ echo_error() {
echo >&2 "${error}${*}${normal}"
}

shamir() {
python3 -m shamir_mnemonic.cli "$@"
}

run_tests() {
if ! command -v shamir > /dev/null; then
echo 'shamir executable not found'
exit 1
fi
cd -- "${SCRIPT_DIR}"
echo_bold 'Starting CLI tests for runtime errors (NOT testing correctness)'
local status=0
echo_bold 'Testing create 2of3...'
Expand Down

0 comments on commit c6b3780

Please sign in to comment.