Add test for directly adding hidden file
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>
Jakub Sztandera committed
May 24, 2016 at 16:08 UTC
d527e581e26a3722e2c973cff1335b6317672e07
1 file changed
+11
test/sharness/t0040-add-and-cat.sh
+11
@@ -77,6 +77,17 @@ test_add_cat_file() {
77
echo "added $HASH hello.txt" >expected &&
78
test_cmp expected actual
79
'
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
+ '
91
}
92
93
test_add_cat_5MB() {