"README.md" did not exist on "b87157487dc18fc97a538261e3f7a6d0ed9daf59"
Commit cecfa457 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

moved sharness tests to a subdir.

kept bin in place
parent 83075727
...@@ -35,10 +35,10 @@ test_go_expensive: ...@@ -35,10 +35,10 @@ test_go_expensive:
go test ./... go test ./...
test_sharness_short: test_sharness_short:
cd test/ && make cd test/sharness/ && make
test_sharness_expensive: test_sharness_expensive:
cd test/ && TEST_EXPENSIVE=1 make cd test/sharness/ && TEST_EXPENSIVE=1 make
test_all_commits: test_all_commits:
@echo "testing all commits between origin/master..HEAD" @echo "testing all commits between origin/master..HEAD"
......
lib/sharness/
bin/ipfs bin/ipfs
bin/random bin/random
test-results/
trash directory.*.sh/
# Run tests
#
# Copyright (c) 2014 Christian Couder
# MIT Licensed; see the LICENSE file in this repository.
#
# NOTE: run with TEST_VERBOSE=1 for verbose sharness tests. BINS = bin/random bin/ipfs
IPFS_ROOT = ../
IPFS_CMD = ../cmd/ipfs
RANDOM_SRC = ../Godeps/_workspace/src/github.com/jbenet/go-random
T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)) all: deps
SHARNESS = lib/sharness/sharness.sh
RANDOMSRC = Godeps/_workspace/src/github.com/jbenet/go-random/random
all: clean deps $(T) aggregate deps: bins
clean: clean:
@echo "*** $@ ***" rm $(BINS)
-rm -rf test-results
$(T): bins: $(BINS)
@echo "*** $@ ***"
./$@
aggregate: bin/random: $(RANDOM_SRC)/**/*.go
@echo "*** $@ ***" go build -o bin/random $(RANDOM_SRC)/random
lib/test-aggregate-results.sh
deps: $(SHARNESS) ipfs random bin/ipfs: $(IPFS_ROOT)/**/*.go
go build -o bin/ipfs $(IPFS_CMD)
$(SHARNESS): test_sharness:
@echo "*** installing $@ ***" cd sharness && make
lib/install-sharness.sh
# phony to ensure we re-build it every time we run tests .PHONY: all clean
ipfs:
@echo "*** installing $@ ***"
mkdir -p bin
cd ../cmd/ipfs && go build
cp ../cmd/ipfs/ipfs bin/ipfs
random:
@echo "*** installing $@ ***"
mkdir -p bin
go build -o bin/random ../$(RANDOMSRC)
.PHONY: all clean $(T) aggregate ipfs random
lib/sharness/
test-results/
trash directory.*.sh/
# Run tests
#
# Copyright (c) 2014 Christian Couder
# MIT Licensed; see the LICENSE file in this repository.
#
# NOTE: run with TEST_VERBOSE=1 for verbose sharness tests.
T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
BINS = bin/random bin/ipfs
SHARNESS = lib/sharness/sharness.sh
all: clean deps $(T) aggregate
clean:
@echo "*** $@ ***"
-rm -rf test-results
$(T):
@echo "*** $@ ***"
./$@
aggregate:
@echo "*** $@ ***"
lib/test-aggregate-results.sh
deps: $(SHARNESS) $(BINS)
$(SHARNESS):
@echo "*** installing $@ ***"
lib/install-sharness.sh
bin/%:
@echo "*** installing $@ ***"
cd .. && make $@
.PHONY: all clean $(T) aggregate
File moved
../bin
\ No newline at end of file
File moved
File moved
File moved
File moved
File moved
File moved
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment