Skip to content

Commit

Permalink
Store shunit2 in the repo, no dangerous wget each test
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Sep 4, 2017
1 parent ce46642 commit d22c08b
Show file tree
Hide file tree
Showing 4 changed files with 2,137 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ vendor
.vagrant
merkleeyes.db
build
shunit2
docs/guide/*.sh
keys/
13 changes: 3 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
Loading

0 comments on commit d22c08b

Please sign in to comment.