test/sharness: Added tests for 'ipfs add -w'
Matt Bell committed
Jan 31, 2015 at 19:29 UTC
54fef5ea96bf513c6a4e85d9f13b3184205f0bef
1 file changed
+10
test/sharness/t0040-add-and-cat.sh
+10
@@ -165,6 +165,16 @@ test_expect_success FUSE,EXPENSIVE "cat ipfs/bigfile looks good" '
165
test_cmp sha1_expected sha1_actual
166
'
167
168
+test_expect_success "ipfs add -w succeeds" '
169
+ ipfs add -w mountdir/hello.txt >actual
170
+'
171
+
172
+test_expect_success "ipfs add -w output looks good" '
173
+ HASH="QmVJfrqd4ogGZME6LWkkikAGddYgh9dBs2U14DHZZUBk7W" &&
174
+ echo "added "$HASH/hello.txt" mountdir/hello.txt" >expected &&
175
+ test_cmp expected actual
176
+'
177
+
178
test_kill_ipfs_daemon
179
180
test_done