From d527e581e26a3722e2c973cff1335b6317672e07 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 24 May 2016 16:08:01 +0200 Subject: [PATCH] Add test for directly adding hidden file It got broken no so long ago so this is the regression test for that. License: MIT Signed-off-by: Jakub Sztandera --- test/sharness/t0040-add-and-cat.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/sharness/t0040-add-and-cat.sh b/test/sharness/t0040-add-and-cat.sh index f9e1de2a1fe..2e869683e0d 100755 --- a/test/sharness/t0040-add-and-cat.sh +++ b/test/sharness/t0040-add-and-cat.sh @@ -77,6 +77,17 @@ test_add_cat_file() { echo "added $HASH hello.txt" >expected && test_cmp expected actual ' + + test_expect_success "ipfs add on hidden file succeeds" ' + echo "Hello Worlds!" >mountdir/.hello.txt && + ipfs add mountdir/.hello.txt >actual + ' + + test_expect_success "ipfs add on hidden file output looks good" ' + HASH="QmVr26fY1tKyspEJBniVhqxQeEjhF78XerGiqWAwraVLQH" && + echo "added $HASH .hello.txt" >expected && + test_cmp expected actual + ' } test_add_cat_5MB() {