@cryptotaxi247 / kubo / commits / 51d05fb8d

t0010: test 'ipfs commands' and 'ipfs * --help'

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

Christian Couder committed Oct 15, 2015 at 20:43 UTC 51d05fb8dce45dbd3b7b9cf16ee3840661b793f0
1 file changed +18
test/sharness/t0010-basic-commands.sh
+18
@@ -31,4 +31,22 @@ test_expect_success "ipfs help output looks good" '
31 test_fsh cat help.txt
32 '
33
34 +test_expect_success "'ipfs commands' succeeds" '
35 + ipfs commands >commands.txt
36 +'
37 +
38 +test_expect_success "'ipfs commands' output looks good" '
39 + grep "ipfs add" commands.txt &&
40 + grep "ipfs daemon" commands.txt &&
41 + grep "ipfs update" commands.txt
42 +'
43 +
44 +test_expect_success "All commands accept --help" '
45 + while read -r cmd
46 + do
47 + echo "running: $cmd --help"
48 + $cmd --help </dev/null >/dev/null || return
49 + done <commands.txt
50 +'
51 +
52 test_done