mirror of
https://github.com/dnote/dnote
synced 2026-03-14 14:35:50 +01:00
* Remove public from CLI * Write migration and test * Use in-memory db for a test server * Simplify CLI test db teardown * Restructure packages to reduce duplication
11 lines
226 B
Bash
Executable file
11 lines
226 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# test.sh runs tests for CLI 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 ./... --tags "fts5"
|
|
popd
|