mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-02 23:08:07 +08:00
Merge pull request #596 from chriscool/add_dependencies_test
Add "test/dependencies" dir and "godep restore" test
This commit is contained in:
commit
aac98914a5
@ -24,6 +24,7 @@ test: test_expensive
|
||||
test_expensive:
|
||||
cd sharness && make TEST_EXPENSIVE=1
|
||||
cd 3nodetest && make
|
||||
cd dependencies && make
|
||||
|
||||
test_cheap:
|
||||
cd sharness && make
|
||||
|
||||
16
test/dependencies/Makefile
Normal file
16
test/dependencies/Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
all: restore
|
||||
|
||||
restore:
|
||||
@echo "*** $@ ***"
|
||||
which godep
|
||||
mkdir -p tmp_gopath
|
||||
OLD_GOPATH="$$GOPATH"
|
||||
export GOPATH=$$(pwd)/tmp_gopath
|
||||
cd ../..
|
||||
godep restore
|
||||
cd -
|
||||
rm -rf tmp_gopath
|
||||
export GOPATH="$$OLD_GOPATH"
|
||||
|
||||
.PHONY: all restore
|
||||
Loading…
Reference in New Issue
Block a user