dnote/pkg/cli/scripts/test.sh
2019-08-13 12:54:06 +10:00

19 lines
382 B
Bash
Executable file

#!/usr/bin/env bash
# run_server_test.sh runs server test files sequentially
# https://stackoverflow.com/questions/23715302/go-how-to-run-tests-for-multiple-packages
set -eux
basePath="$GOPATH/src/github.com/dnote/dnote/pkg/cli"
# clear tmp dir in case not properly torn down
rm -rf "$basePath/tmp"
# run test
pushd "$basePath"
go test -a ./... \
-p 1\
--tags "fts5"
popd