@cryptotaxi247 / kubo / commits / 8a3bf9536

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

License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Oct 19, 2015 at 15:34 UTC 8a3bf95365a6b60a0515d7ecb6aeb43f4ad25973
1 file changed +10
test/sharness/t0010-basic-commands.sh
+10
@@ -49,4 +49,14 @@ test_expect_success "All commands accept --help" '
49 done <commands.txt
50 '
51
52 +test_expect_success "'ipfs commands --flags' succeeds" '
53 + ipfs commands --flags >commands.txt
54 +'
55 +
56 +test_expect_success "'ipfs commands --flags' output looks good" '
57 + grep "ipfs pin add --recursive / ipfs pin add -r" commands.txt &&
58 + grep "ipfs id --format / ipfs id -f" commands.txt &&
59 + grep "ipfs repo gc --quiet / ipfs repo gc -q" commands.txt
60 +'
61 +
62 test_done