@cryptotaxi247 / kubo / commits / 40cc4dc02

test: add test for ipfs add --quieter

License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

Jakub Sztandera committed Mar 9, 2017 at 16:06 UTC 40cc4dc024e1d847861a745bcafd3a0917dfd301
1 file changed +9
test/sharness/t0040-add-and-cat.sh
+9
@@ -367,6 +367,15 @@ add_directory() {
367 test_cmp expected actual
368 '
369
370 + test_expect_success "ipfs add --quieter succeeds" '
371 + ipfs add -r -Q $EXTRA_ARGS mountdir/planets >actual
372 + '
373 +
374 + test_expect_success "ipfs add --quieter returns only one correct hash" '
375 + echo "$PLANETS" > expected &&
376 + test_cmp expected actual
377 + '
378 +
379 test_expect_success "cleanup" '
380 rm -r mountdir/planets
381 '