mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 03:17:43 +08:00
Now 'make test' will run the go tests with option -test.short and the sharness tests without any option. And 'make test_expensive' will run the go tests without any option and the sharness tests with option TEST_EXPENSIVE=1. This should help fix the first part of issue #283. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
31 lines
551 B
Makefile
31 lines
551 B
Makefile
all:
|
|
# no-op
|
|
|
|
godep:
|
|
go get github.com/tools/godep
|
|
|
|
# saves/vendors third-party dependencies to Godeps/_workspace
|
|
# -r flag rewrites import paths to use the vendored path
|
|
# ./... performs operation on all packages in tree
|
|
vendor: godep
|
|
godep save -r ./...
|
|
|
|
install:
|
|
cd cmd/ipfs && go install
|
|
|
|
test: test_go test_sharness
|
|
|
|
test_expensive: test_go_expensive test_sharness_expensive
|
|
|
|
test_go:
|
|
go test -test.short ./...
|
|
|
|
test_go_expensive:
|
|
go test ./...
|
|
|
|
test_sharness:
|
|
cd test/ && make
|
|
|
|
test_sharness_expensive:
|
|
cd test/ && make TEST_EXPENSIVE=1
|