mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 10:57:42 +08:00
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.)
45 lines
932 B
Makefile
45 lines
932 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
|
|
|
|
##############################################################
|
|
# 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_short:
|
|
go test -test.short ./...
|
|
|
|
test_go_expensive:
|
|
go test ./...
|
|
|
|
test_sharness_short:
|
|
cd test/ && make
|
|
|
|
test_sharness_expensive:
|
|
cd test/ && TEST_EXPENSIVE=1 make
|
|
|
|
test_all_commits:
|
|
@echo "testing all commits between origin/master..HEAD"
|
|
@echo "WARNING: this will 'git rebase --exec'."
|
|
@test/bin/continueyn
|
|
GIT_EDITOR=true git rebase -i --exec "make test" origin/master
|