You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.1 KiB

  1. .PHONEY: all test install get_vendor_deps ensure_tools codegen wordlist
  2. GOTOOLS = \
  3. github.com/Masterminds/glide \
  4. github.com/jteeuwen/go-bindata/go-bindata
  5. REPO:=github.com/tendermint/go-crypto
  6. all: get_vendor_deps install test
  7. install:
  8. go install ./cmd/keys
  9. test: test_unit test_cli
  10. test_unit:
  11. go test `glide novendor`
  12. #go run tests/tendermint/*.go
  13. test_cli: tests/shunit2
  14. # sudo apt-get install jq
  15. @./tests/keys.sh
  16. tests/shunit2:
  17. wget "https://raw.githubusercontent.com/kward/shunit2/master/source/2.1/src/shunit2" \
  18. -q -O tests/shunit2
  19. get_vendor_deps: ensure_tools
  20. @rm -rf vendor/
  21. @echo "--> Running glide install"
  22. @glide install
  23. ensure_tools:
  24. go get $(GOTOOLS)
  25. wordlist:
  26. go-bindata -ignore ".*\.go" -o keys/wordlist/wordlist.go -pkg "wordlist" keys/wordlist/...
  27. prepgen: install
  28. go install ./vendor/github.com/btcsuite/btcutil/base58
  29. go install ./vendor/github.com/stretchr/testify/assert
  30. go install ./vendor/github.com/stretchr/testify/require
  31. go install ./vendor/golang.org/x/crypto/bcrypt
  32. codegen:
  33. @echo "--> regenerating all interface wrappers"
  34. @gen
  35. @echo "Done!"