Add sharness test for ipfs add --quiet
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Nov 30, 2014 at 13:29 UTC
aca62a420a8d4d38399896bce0ec1457afeec2be
1 file changed
+11
test/t0040-add-and-cat.sh
+11
@@ -54,6 +54,17 @@ test_expect_success FUSE "cat ipfs/stuff looks good" '
54
test_cmp expected actual
55
'
56
57
+test_expect_success "'ipfs add -q' succeeds" '
58
+ echo "Hello Venus!" >mountdir/venus.txt &&
59
+ ipfs add -q mountdir/venus.txt >actual
60
+'
61
+
62
+test_expect_success "'ipfs add -q' output looks good" '
63
+ HASH="QmU5kp3BH3B8tnWUU2Pikdb2maksBNkb92FHRr56hyghh4" &&
64
+ echo "$HASH" >expected &&
65
+ test_cmp expected actual
66
+'
67
+
68
test_expect_success "go-random is installed" '
69
type random
70
'