dnote/cli/scripts/test.sh
2019-05-10 09:31:31 +10:00

19 lines
370 B
Bash
Executable file

#!/bin/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/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