add: test adding multiple files
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
Łukasz Magiera committed
Apr 25, 2019 at 15:49 UTC
ac51d2999eed5894a8c7dcf0d1621c0421cfb578
1 file changed
+10
test/sharness/t0040-add-and-cat.sh
+10
@@ -325,6 +325,16 @@ test_add_cat_file() {
325
test_cmp expected actual
326
'
327
328
+ test_expect_success "ipfs add with multiple files succeeds" '
329
+ echo "Helloo Worlds!" >mountdir/hello2.txt &&
330
+ ipfs add mountdir/hello.txt mountdir/hello2.txt >actual
331
+ '
332
+
333
+ test_expect_success "ipfs add with multiple files output looks good" '
334
+ echo "added QmVr26fY1tKyspEJBniVhqxQeEjhF78XerGiqWAwraVLQH hello.txt" >expected &&
335
+ echo "added Qmf35k66MZNW2GijohUmXQEWKZU4cCGTCwK6idfnt152wJ hello2.txt" >> expected &&
336
+ test_cmp expected actual
337
+ '
338
}
339
340
test_add_cat_5MB() {