mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 10:49:24 +08:00
Merge pull request #2756 from ipfs/feature/HiddenFilesTests
Add test for directly adding hidden file
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user