From f6def11eb3f5c6388fe5a030645f0c64d20dffb2 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Sun, 4 Jan 2015 13:24:14 -0800 Subject: [PATCH] `make test` now runs expensive tests. We use make test as the measure of correctness. This laxity has let bugs creep into several systems. This commit changes our target to always run expensive tests, unless one specifically runs `make test_short` (we would do well to remove most if not all timing-- that's usually what makes tests take a long time.) --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a51da1a15..1376710df 100644 --- a/Makefile +++ b/Makefile @@ -13,20 +13,25 @@ vendor: godep install: cd cmd/ipfs && go install -test: test_go test_sharness +############################################################## +# tests targets + +test: test_expensive + +test_short: test_go_short test_sharness_short test_expensive: test_go_expensive test_sharness_expensive test_docker: cd dockertest/ && make -test_go: +test_go_short: go test -test.short ./... test_go_expensive: go test ./... -test_sharness: +test_sharness_short: cd test/ && make test_sharness_expensive: