Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

test: sharness - add t0040-add-and-cat.sh failing tests #522

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion test/sharness/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ aggregate: clean-test-results $(T)
@echo "*** $@ ***"
ls test-results/t*-*.sh.*.counts | $(AGGREGATE)

deps: sharness $(BINS) curl
deps: sharness $(BINS) curl go-poll-endpoint

sharness:
@echo "*** checking $@ ***"
Expand All @@ -49,5 +49,11 @@ sharness:
curl:
@which curl >/dev/null || (echo "Please install curl!" && false)

go-poll-endpoint:
@which go-poll-endpoint >/dev/null || \
(echo "Please install go-poll-endpoint!" && \
echo "See: https://github.com/ipfs/go-poll-endpoint" && \
false)

.PHONY: all help clean clean-test-results $(T) aggregate deps sharness

5 changes: 4 additions & 1 deletion test/sharness/lib/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,13 @@ test_launch_ipfs_daemon() {

test_set_address_vars actual_daemon

echo "IPFS_PATH: '$IPFS_PATH'"
echo "API_MADDR: '$API_MADDR'"

# we say the daemon is ready when the API server is ready.
test_expect_success "'ipfs daemon' is ready" '
IPFS_PID=$! &&
pollEndpoint -ep=/version -host=$API_MADDR -v -tout=1s -tries=60 2>poll_apierr > poll_apiout ||
go-poll-endpoint -ep=/version -host=$API_MADDR -v -tout=1s -tries=60 2>poll_apierr > poll_apiout ||
test_fsh cat actual_daemon || test_fsh cat daemon_err || test_fsh cat poll_apierr || test_fsh cat poll_apiout
'
}
Expand Down
Loading