summaryrefslogtreecommitdiff
path: root/app/Makefile
diff options
context:
space:
mode:
authorHorus32015-02-21 18:37:28 +0100
committerHorus32015-02-21 18:37:28 +0100
commitbdb2d33a30765a25be3dd8c82b92517efa00dda8 (patch)
tree7332415c103980a6d4e87ca6b8f563a9f6a87496 /app/Makefile
parentb58e21a525e7e4aeda3ec51bfcb07390af8be465 (diff)
downloadstatuspage-bdb2d33a30765a25be3dd8c82b92517efa00dda8.tar.gz
Add basic unit tests.
Diffstat (limited to 'app/Makefile')
-rw-r--r--app/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/Makefile b/app/Makefile
index 15da585..e10dbc4 100644
--- a/app/Makefile
+++ b/app/Makefile
@@ -33,7 +33,7 @@ clean: kill
@echo "Removing sqlite3 database..."
@rm $(STATUS_DB_CREDENTIALS) || true
@echo "Removing tar archiv..."
- @rm ../$(APP).tar.gz || true
+ @rm ../$(APP).tar.gz 1>&2 2>/dev/null || true
@echo "Removing binary..."
@rm $(APP)
@echo "Done."
@@ -78,3 +78,12 @@ pack:
tar czf $(APP).tar.gz app/$(APP) app/env.sh app/Makefile views static db 2>/dev/null && \
echo "../$(APP).tar.gz is ready." || \
(echo "Run \"make build\" first." && exit 1)
+
+test:
+ go test -race -run '^(Database|Redis)'
+
+test_all:
+ go test -race
+
+test_dependencies:
+ go test -race -run '(Database|Redis)'