Store shunit2 in the repo, no dangerous wget each test

This commit is contained in:
Ethan Frey 2017-08-30 20:33:47 +02:00
parent ce46642aa0
commit d22c08b12a
4 changed files with 2137 additions and 11 deletions

1
.gitignore vendored
View File

@ -3,6 +3,5 @@ vendor
.vagrant
merkleeyes.db
build
shunit2
docs/guide/*.sh
keys/

View File

@ -33,8 +33,9 @@ test_unit:
@go test `glide novendor`
#go run tests/tendermint/*.go
test_cli: tests/cli/shunit2
test_cli:
# sudo apt-get install jq
# wget "https://raw.githubusercontent.com/kward/shunit2/master/source/2.1/src/shunit2"
./tests/cli/keys.sh
./tests/cli/rpc.sh
./tests/cli/init.sh
@ -48,20 +49,12 @@ test_cli: tests/cli/shunit2
cd $$EX && make test_cli; \
done
test_tutorial: docs/guide/shunit2
test_tutorial:
@shelldown ${TUTORIALS}
@for script in docs/guide/*.sh ; do \
bash $$script ; \
done
tests/cli/shunit2:
@wget "https://raw.githubusercontent.com/kward/shunit2/master/source/2.1/src/shunit2" \
-q -O tests/cli/shunit2
docs/guide/shunit2:
@wget "https://raw.githubusercontent.com/kward/shunit2/master/source/2.1/src/shunit2" \
-q -O docs/guide/shunit2
get_vendor_deps: tools
@glide install

1067
docs/guide/shunit2 Normal file

File diff suppressed because it is too large Load Diff

1067
tests/cli/shunit2 Normal file

File diff suppressed because it is too large Load Diff