@cryptotaxi247 / kubo / commits / 3edd3227f

test: add test_race target to Makefile

This builds go binaries using the -race flag and then runs all the tests. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Apr 4, 2015 at 12:45 UTC 3edd3227fe476d94516be1394598362f5c298dfb
1 file changed +5
test/Makefile
+5
@@ -45,6 +45,11 @@ test_cheap:
45 cd sharness && make
46 cd 3nodetest && make
47
48 +test_race:
49 + cd sharness && make GOFLAGS=-race TEST_EXPENSIVE=1
50 + cd 3nodetest && make GOFLAGS=-race
51 + cd dependencies && make GOFLAGS=-race
52 +
53 IPFS-BUILD-OPTIONS: FORCE
54 @bin/checkflags '$@' '$(GOFLAGS)' '*** new Go flags ***'
55