t0010: add tests for 'ipfs commands --flags'

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder 2015-10-19 15:34:08 +02:00
parent 289e74ce95
commit 8a3bf95365

View File

@ -49,4 +49,14 @@ test_expect_success "All commands accept --help" '
done <commands.txt
'
test_expect_success "'ipfs commands --flags' succeeds" '
ipfs commands --flags >commands.txt
'
test_expect_success "'ipfs commands --flags' output looks good" '
grep "ipfs pin add --recursive / ipfs pin add -r" commands.txt &&
grep "ipfs id --format / ipfs id -f" commands.txt &&
grep "ipfs repo gc --quiet / ipfs repo gc -q" commands.txt
'
test_done