summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-05-07 01:00:45 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-05-07 01:00:45 -0400
commit902f3ad5b8e759879141c3b77a44e3bfdaa298bb (patch)
treee7197eac09d56059cad0e9e2dbfb9379a62907eb /Makefile
parent26191c0f45bd6a112085c44c271a135d65c80f18 (diff)
added tests
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b1ef0ca..c70b01c 100644
--- a/Makefile
+++ b/Makefile
@@ -14,3 +14,9 @@ all: bigreq.xml composite.xml damage.xml dpms.xml dri2.xml \
%.xml:
xgbgen/xgbgen --proto-path $(XPROTO) $(XPROTO)/$*.xml > auto_$*.go
+test:
+ go test
+
+bench:
+ go test -run 'nomatch' -bench '.*' -cpu 1,2,6
+