Skip to content

Commit cb29148

Browse files
committed
Added sharness tests of cli tool
Pulling from the multihash sharness repository to run tests of the cli tool.
1 parent 54d61d0 commit cb29148

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ before_install:
1414
script:
1515
- go vet
1616
- go test -race -coverprofile=coverage.txt -covermode=atomic
17+
- make sharness
1718

1819
after_success:
1920
- bash <(curl -s https://codecov.io/bash)
2021

2122
cache:
2223
directories:
2324
- $GOPATH/src/gx
24-
- $GOPATH/pkg
2525

2626
notifications:
2727
email: false

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ deps: gx
66
gx --verbose install --global
77
gx-go rewrite
88

9+
sharness: deps
10+
git clone https://github.com/multiformats/multihash.git $(PWD)/sharness
11+
cd $(PWD)/multihash && go build -v . && ls && chmod +x ./multihash
12+
export MULTIHASH_BIN="$(PWD)/multihash/multihash" && export TEST_EXPENSE=1 && make -j1 -C $(PWD)/sharness/tests/sharness
13+
914
publish:
1015
gx-go rewrite --undo
1116

0 commit comments

Comments
 (0)