aboutsummaryrefslogtreecommitdiff
path: root/nexgb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/Makefile')
-rw-r--r--nexgb/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/nexgb/Makefile b/nexgb/Makefile
index b1ef0ca..c70b01c 100644
--- a/nexgb/Makefile
+++ b/nexgb/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
+