From 384fb1095ca089b5fb229cdc087cfb4b47d6cfea Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Mon, 29 Aug 2016 22:09:46 +0200 Subject: [PATCH] test: revert few stdin tests that were removed License: MIT Signed-off-by: Jakub Sztandera --- test/sharness/t0040-add-and-cat.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/sharness/t0040-add-and-cat.sh b/test/sharness/t0040-add-and-cat.sh index 92f001762eb..038a53ca138 100755 --- a/test/sharness/t0040-add-and-cat.sh +++ b/test/sharness/t0040-add-and-cat.sh @@ -344,6 +344,25 @@ test_expect_success "ipfs cat output looks good" ' test_cmp expected actual ' +test_expect_success "ipfs cat with both arg and stdin" ' + echo "$MARS" | ipfs cat "$VENUS" >actual +' + +test_expect_success "ipfs cat output looks good" ' + cat mountdir/planets/venus.txt >expected && + test_cmp expected actual +' + +test_expect_success "ipfs cat with two args and stdin" ' + echo "$MARS" | ipfs cat "$VENUS" "$VENUS" >actual +' + +test_expect_success "ipfs cat output looks good" ' + cat mountdir/planets/venus.txt mountdir/planets/venus.txt >expected && + test_cmp expected actual +' + + test_expect_success "go-random is installed" ' type random '