Merge pull request #596 from chriscool/add_dependencies_test

Add "test/dependencies" dir and "godep restore" test
This commit is contained in:
Juan Batiz-Benet 2015-01-24 09:42:39 -08:00
commit aac98914a5
2 changed files with 17 additions and 0 deletions

View File

@ -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

View 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