@cryptotaxi247 / kubo / commits / 384fb1095

test: revert few stdin tests that were removed

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

Jakub Sztandera committed Aug 29, 2016 at 22:09 UTC 384fb1095ca089b5fb229cdc087cfb4b47d6cfea
1 file changed +19
test/sharness/t0040-add-and-cat.sh
+19
@@ -344,6 +344,25 @@ test_expect_success "ipfs cat output looks good" '
344 test_cmp expected actual
345 '
346
347 +test_expect_success "ipfs cat with both arg and stdin" '
348 + echo "$MARS" | ipfs cat "$VENUS" >actual
349 +'
350 +
351 +test_expect_success "ipfs cat output looks good" '
352 + cat mountdir/planets/venus.txt >expected &&
353 + test_cmp expected actual
354 +'
355 +
356 +test_expect_success "ipfs cat with two args and stdin" '
357 + echo "$MARS" | ipfs cat "$VENUS" "$VENUS" >actual
358 +'
359 +
360 +test_expect_success "ipfs cat output looks good" '
361 + cat mountdir/planets/venus.txt mountdir/planets/venus.txt >expected &&
362 + test_cmp expected actual
363 +'
364 +
365 +
366 test_expect_success "go-random is installed" '
367 type random
368 '