We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 518f7e0 commit 2793ae4Copy full SHA for 2793ae4
test/sharness/t0040-add-and-cat.sh
@@ -30,6 +30,16 @@ test_add_cat_file() {
30
echo "added $HASH hello.txt" >expected &&
31
test_cmp expected actual
32
'
33
+ test_expect_success "ipfs add on hidden file succeeds" '
34
+ echo "Hello Worlds!" >mountdir/.hello.txt &&
35
+ ipfs add mountdir/.hello.txt >actual
36
+ '
37
+
38
+ test_expect_success "ipfs add on hidden file output looks good" '
39
+ HASH="QmVr26fY1tKyspEJBniVhqxQeEjhF78XerGiqWAwraVLQH" &&
40
+ echo "added $HASH .hello.txt" >expected &&
41
+ test_cmp expected actual
42
43
44
test_expect_success "ipfs add --only-hash succeeds" '
45
ipfs add --only-hash mountdir/hello.txt > oh_actual
0 commit comments