aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-01-11 22:51:01 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-01-11 22:51:01 -0700
commitee24437bfcb34dbf2549ecd26adc972c1eb7dc16 (patch)
tree5fe178109b3ece4a4d66fdc40cfbd70e52f48850 /Makefile
parentDB.Open(), pages, and meta. (diff)
downloaddedo-ee24437bfcb34dbf2549ecd26adc972c1eb7dc16.tar.gz
dedo-ee24437bfcb34dbf2549ecd26adc972c1eb7dc16.tar.xz
Initial db.open.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..decd960
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+PKG=./...
+TEST=.
+BENCH=.
+COVERPROFILE=/tmp/c.out
+
+bench: benchpreq
+ go test -v -test.bench=$(BENCH) ./.bench
+
+cover: fmt
+ go test -coverprofile=$(COVERPROFILE) .
+ go tool cover -html=$(COVERPROFILE)
+ rm $(COVERPROFILE)
+
+fmt:
+ @go fmt ./...
+
+test: fmt
+ @go test -v -cover -test.run=$(TEST) $(PKG)
+
+.PHONY: bench cover fmt test