dnote/scripts/cli/test.sh
Sung Won Cho 2124e28a9f
Use go module (#303)
* Migrate to gomodule

* Fix install

* Update makefile
2019-11-11 15:28:47 +08:00

14 lines
331 B
Bash
Executable file

#!/usr/bin/env bash
# test.sh runs test files sequentially
# https://stackoverflow.com/questions/23715302/go-how-to-run-tests-for-multiple-packages
set -eux
dir=$(dirname "${BASH_SOURCE[0]}")
pushd "$dir/../../pkg/cli"
# clear tmp dir in case not properly torn down
rm -rf "./tmp"
go test -a ./... \
-p 1\
--tags "fts5"
popd