From f4b199839864a64e2da155d726a3555e40533b15 Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Mon, 1 Aug 2022 10:02:52 +0200 Subject: [PATCH] make: don't run tests on benchmark (#527) --- Makefile | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 12894781a..028594ee9 100644 --- a/Makefile +++ b/Makefile @@ -46,21 +46,20 @@ lint: # bench is the basic tests that shouldn't crash an aws instance bench: cd benchmarks && \ - go test $(LDFLAGS) -bench=RandomBytes . && \ - go test $(LDFLAGS) -tags cleveldb,rocksdb,boltdb,badgerdb -bench=Small . && \ - go test $(LDFLAGS) -tags cleveldb,rocksdb,boltdb,badgerdb -bench=Medium . && \ - go test $(LDFLAGS) -bench=BenchmarkMemKeySizes . + go test $(LDFLAGS) -tags cleveldb,rocksdb,boltdb,badgerdb -run=NOTEST -bench=Small . && \ + go test $(LDFLAGS) -tags cleveldb,rocksdb,boltdb,badgerdb -run=NOTEST -bench=Medium . && \ + go test $(LDFLAGS) -run=NOTEST -bench=RandomBytes . .PHONY: bench # fullbench is extra tests needing lots of memory and to run locally fullbench: cd benchmarks && \ - go test $(LDFLAGS) -bench=RandomBytes . && \ - go test $(LDFLAGS) -tags cleveldb,rocksdb,boltdb,badgerdb -bench=Small . && \ - go test $(LDFLAGS) -tags cleveldb,rocksdb,boltdb,badgerdb -bench=Medium . && \ - go test $(LDFLAGS) -tags cleveldb,rocksdb,boltdb,badgerdb -timeout=30m -bench=Large . && \ - go test $(LDFLAGS) -bench=Mem . && \ - go test $(LDFLAGS) -timeout=60m -bench=LevelDB . + go test $(LDFLAGS) -run=NOTEST -bench=RandomBytes . && \ + go test $(LDFLAGS) -tags cleveldb,rocksdb,boltdb,badgerdb -run=NOTEST -bench=Small . && \ + go test $(LDFLAGS) -tags cleveldb,rocksdb,boltdb,badgerdb -run=NOTEST -bench=Medium . && \ + go test $(LDFLAGS) -tags cleveldb,rocksdb,boltdb,badgerdb -run=NOTEST -timeout=30m -bench=Large . && \ + go test $(LDFLAGS) -run=NOTEST -bench=Mem . && \ + go test $(LDFLAGS) -run=NOTEST -timeout=60m -bench=LevelDB . .PHONY: fullbench # note that this just profiles the in-memory version, not persistence