Skip to content

Commit a403fd8

Browse files
committed
Add test for directly adding hidden file
License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
1 parent 6c33503 commit a403fd8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/sharness/t0040-add-and-cat.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,17 @@ test_add_cat_file() {
7777
echo "added $HASH hello.txt" >expected &&
7878
test_cmp expected actual
7979
'
80+
81+
test_expect_success "ipfs add on hidden file succeeds" '
82+
echo "Hello Worlds!" >mountdir/.hello.txt &&
83+
ipfs add mountdir/.hello.txt >actual
84+
'
85+
86+
test_expect_success "ipfs add on hidden file output looks good" '
87+
HASH="QmVr26fY1tKyspEJBniVhqxQeEjhF78XerGiqWAwraVLQH" &&
88+
echo "added $HASH .hello.txt" >expected &&
89+
test_cmp expected actual
90+
'
8091
}
8192

8293
test_add_cat_5MB() {

0 commit comments

Comments
 (0)