Skip to content

Commit

Permalink
Add test for directly adding hidden file
Browse files Browse the repository at this point in the history
It got broken no so long ago so this is the regression
test for that.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
  • Loading branch information
Kubuxu committed May 31, 2016
1 parent 6c33503 commit d527e58
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/sharness/t0040-add-and-cat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d527e58

Please sign in to comment.