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:
go test ./...
test_sharness_short:
cd test/ && make
cd test/sharness/ && make
test_sharness_expensive:
cd test/ && TEST_EXPENSIVE=1 make
cd test/sharness/ && TEST_EXPENSIVE=1 make
test_all_commits:
@echo "testing all commits between origin/master..HEAD"
......
lib/sharness/
bin/ipfs
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))
SHARNESS = lib/sharness/sharness.sh
RANDOMSRC = Godeps/_workspace/src/github.com/jbenet/go-random/random
all: deps
all: clean deps $(T) aggregate
deps: bins
clean:
@echo "*** $@ ***"
-rm -rf test-results
rm $(BINS)
$(T):
@echo "*** $@ ***"
./$@
bins: $(BINS)
aggregate:
@echo "*** $@ ***"
lib/test-aggregate-results.sh
bin/random: $(RANDOM_SRC)/**/*.go
go build -o bin/random $(RANDOM_SRC)/random
deps: $(SHARNESS) ipfs random
bin/ipfs: $(IPFS_ROOT)/**/*.go
go build -o bin/ipfs $(IPFS_CMD)
$(SHARNESS):
@echo "*** installing $@ ***"
lib/install-sharness.sh
test_sharness:
cd sharness && make
# phony to ensure we re-build it every time we run tests
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
.PHONY: all clean
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
../bin
\ No newline at end of file
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