summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--Makefile4
2 files changed, 7 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 0026861..cdd84aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,9 @@
*.a
*.so
+#test files
+profile.cov
+
# Folders
_obj
_test
diff --git a/Makefile b/Makefile
index e20adb9..52033ae 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,10 @@ all:
@echo go-spew is a great tool. thanks dave!
@echo
+test:
+ go test -v -race -tags safe ./
+ go test -v -race -tags testcgo ./ -covermode=atomic -coverprofile=profile.cov
+
redomod:
rm -f go.*
GO111MODULE= go mod init