mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-26 12:57:44 +08:00
t0010: add tests for 'ipfs commands --flags'
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
parent
289e74ce95
commit
8a3bf95365
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user