Commit 49758056 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

Merge pull request #978 from ipfs/t0060_add_tests_for_version

t0060: add tests for version and help commands
parents 0ba4a6ff 72b20017
......@@ -61,6 +61,29 @@ test_expect_success ".go-ipfs/ has been created" '
test_fsh ls .go-ipfs
'
# begin same as in t0010
test_expect_success "ipfs version succeeds" '
ipfs version >version.txt
'
test_expect_success "ipfs version output looks good" '
cat version.txt | egrep "^ipfs version [0-9]+\.[0-9]+\.[0-9]" >/dev/null ||
test_fsh cat version.txt
'
test_expect_success "ipfs help succeeds" '
ipfs help >help.txt
'
test_expect_success "ipfs help output looks good" '
cat help.txt | egrep -i "^Usage:" >/dev/null &&
cat help.txt | egrep "ipfs .* <command>" >/dev/null ||
test_fsh cat help.txt
'
# end same as in t0010
test_expect_success "daemon is still running" '
kill -0 $IPFS_PID
'
......
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