Build fully automated, including aggregation
This commit is contained in:
parent
434dd3fd3c
commit
14a047c2f3
1
Makefile
1
Makefile
|
@ -59,6 +59,7 @@ test: deps
|
|||
go test -tags silent -v ./...
|
||||
test_sharness: sharness_deps
|
||||
@sh test/sharness/run-sharness-tests.sh
|
||||
@rm -rf test/sharness/trash\ directory*
|
||||
|
||||
sharness_deps: deps
|
||||
@./test/sharness/lib/install-sharness.sh
|
||||
|
|
0
test/sharness/aggregate-results.sh
Normal file → Executable file
0
test/sharness/aggregate-results.sh
Normal file → Executable file
|
@ -1,9 +1,17 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# MIT License
|
||||
|
||||
# Run tests
|
||||
cd "$(dirname "$0")"
|
||||
for i in `ls t*.sh | sort`;
|
||||
do
|
||||
echo "*** $i ***"
|
||||
./$i
|
||||
done
|
||||
|
||||
# Aggregate Results
|
||||
echo "We are aggregating"
|
||||
for f in test-results/*.counts; do
|
||||
echo "$f";
|
||||
done | bash aggregate-results.sh
|
||||
|
|
|
@ -15,7 +15,7 @@ test_expect_success "launch ipfs daemon" '
|
|||
mkdir -p ../.test_ipfs &&
|
||||
IPFS_PATH="../.test_ipfs" eval '"'"'ipfs init'"'"' &&
|
||||
IPFS_PATH="../.test_ipfs" eval '"'"'ipfs daemon & echo $! >../dPID.txt'"'"' &&
|
||||
sleep 3
|
||||
sleep 2
|
||||
'
|
||||
|
||||
test_expect_success "test config folder exists" '
|
||||
|
@ -31,7 +31,7 @@ test_expect_success "init cluster-service" '
|
|||
test_expect_success "run cluster-service" '
|
||||
ipfs-cluster-service --config ../.test_config 2>service_start.txt &
|
||||
echo $!>../sPID.txt &&
|
||||
sleep 3 &&
|
||||
sleep 2 &&
|
||||
egrep -i "ready" service_start.txt >/dev/null &&
|
||||
rm service_start.txt
|
||||
'
|
||||
|
|
Loading…
Reference in New Issue
Block a user