Skip to content

Commit

Permalink
Merge pull request #2756 from ipfs/feature/HiddenFilesTests
Browse files Browse the repository at this point in the history
Add test for directly adding hidden file
  • Loading branch information
whyrusleeping committed May 31, 2016
2 parents a372612 + d527e58 commit dcf7503
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 dcf7503

Please sign in to comment.