Add first test
This commit is contained in:
parent
90f436fb23
commit
f7102e1fc4
|
@ -0,0 +1,20 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -ueo pipefail
|
||||||
|
|
||||||
|
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
||||||
|
DB_FILE="${SCRIPT_DIR}/test.db"
|
||||||
|
|
||||||
|
setUp() {
|
||||||
|
tag init "$DB_FILE"
|
||||||
|
}
|
||||||
|
|
||||||
|
tearDown() {
|
||||||
|
[ -f "$DB_FILE" ] && rm "$DB_FILE"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
testDbCreated() {
|
||||||
|
assertTrue "[[ -f \"$DB_FILE\" ]]"
|
||||||
|
}
|
||||||
|
|
||||||
|
. ../../shunit2/shunit2
|
Loading…
Reference in New Issue