Added test_sharness target and fixed small error. Also added gitignore

This commit is contained in:
Wyatt 2017-04-18 15:24:23 -07:00 committed by Wyatt
parent 856548483e
commit e9aef89be1
2 changed files with 15 additions and 2 deletions

5
.gitignore vendored
View File

@ -13,6 +13,11 @@ raftFolderFromTest*
# Folders
_obj
_test
test/sharness/test-results
test/sharness/trash*
test/sharness/lib/sharness
test/sharness/.test_config
test/sharness/.test_ipfs
# Architecture specific extensions/prefixes
*.[568vq]

View File

@ -42,7 +42,7 @@ $(gx_bin):
$(gx-go_bin):
@echo "Downloading gx-go"
@mkdir -p ./$(deptools)
@rm -f $(deptools)gx-go
@rm -f $(deptools)/gx-go
@wget -nc -q -O $(gx-go_bin).tgz https://dist.ipfs.io/gx-go/$(gx-go_version)/$(gx-go)_$(bin_env).tar.gz
@tar -zxf $(gx-go_bin).tgz -C $(deptools) --strip-components=1 gx-go/gx-go
@mv $(deptools)/gx-go $(gx-go_bin)
@ -54,12 +54,20 @@ gx: $(gx_bin) $(gx-go_bin)
deps: gx
$(gx_bin) install --global
$(gx-go_bin) rewrite
test: deps
go test -tags silent -v ./...
test_sharness: sharness_deps
@sh test/sharness/run-sharness-tests.sh
sharness_deps: deps
@./test/sharness/lib/install-sharness.sh
@rm -rf test/sharness/test-results
rw: gx
$(gx-go_bin) rewrite
rwundo: gx
$(gx-go_bin) rewrite --undo
publish: rwundo
$(gx_bin) publish
.PHONY: all gx deps test rw rwundo publish service ctl install clean
.PHONY: all gx deps test test_sharness sharness_deps rw rwundo publish service ctl install clean