From 5f503e6baa3c06ae06ef471d38813e9e491f04bf Mon Sep 17 00:00:00 2001 From: Kevin Atkinson Date: Mon, 29 Aug 2016 15:57:05 -0400 Subject: [PATCH] Add back still useful test from fe7b01f1 (Resolve symlink if ...) Add back still useful test from reverted commit: fe7b01f14e2b8db6e856b567dbd7db4d00f6e366 Resolve symlink if it is directly referenced in cli (#2897) License: MIT Signed-off-by: Kevin Atkinson --- test/sharness/t0044-add-symlink.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/sharness/t0044-add-symlink.sh b/test/sharness/t0044-add-symlink.sh index 13247b945f16..2ccb60759929 100755 --- a/test/sharness/t0044-add-symlink.sh +++ b/test/sharness/t0044-add-symlink.sh @@ -44,6 +44,13 @@ test_add_symlinks() { echo "QmWYN8SEXCgNT2PSjB6BnxAx6NJQtazWoBkTRH9GRfPFFQ" > badlink_exp && test_cmp badlink_exp badlink_out ' + + test_expect_success "adding with symlink in middle of path is same as\ +adding with no symlink" ' + ipfs add -rq files2/a/b/c > no_sym && + ipfs add -rq files2/a/d/c > sym && + test_cmp no_sym sym + ' } test_init_ipfs