@cryptotaxi247 / kubo / commits / 0af19abe6

Verify creation of file created by cp -p

Jesse Bouwman committed Aug 14, 2021 at 09:38 UTC 0af19abe6b6e767c2966bfb8a38095eff48448d2
1 file changed +6
test/sharness/t0250-files-api.sh
+6
@@ -300,6 +300,12 @@ test_files_api() {
300 ipfs files cp -p /ipfs/$FILE3 /cats/some/other/dir/file3
301 '
302
303 + test_expect_success "file copied into deep dir exists $EXTRA" '
304 + ipfs files read /cats/some/other/dir/file3 > file_out &&
305 + echo "baz" > file_exp &&
306 + test_cmp file_out file_exp
307 + '
308 +
309 test_expect_success "cleanup deep cp -p test $EXTRA" '
310 ipfs files rm -r /cats/some
311 '