mirror of
https://github.com/dnote/dnote
synced 2026-03-15 15:05:51 +01:00
19 lines
374 B
Bash
Executable file
19 lines
374 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/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
|