From 0af19abe6b6e767c2966bfb8a38095eff48448d2 Mon Sep 17 00:00:00 2001 From: Jesse Bouwman Date: Sat, 14 Aug 2021 09:38:33 -0700 Subject: [PATCH] Verify creation of file created by cp -p --- test/sharness/t0250-files-api.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/sharness/t0250-files-api.sh b/test/sharness/t0250-files-api.sh index 75f049464..e2162cdf7 100755 --- a/test/sharness/t0250-files-api.sh +++ b/test/sharness/t0250-files-api.sh @@ -300,6 +300,12 @@ test_files_api() { ipfs files cp -p /ipfs/$FILE3 /cats/some/other/dir/file3 ' + test_expect_success "file copied into deep dir exists $EXTRA" ' + ipfs files read /cats/some/other/dir/file3 > file_out && + echo "baz" > file_exp && + test_cmp file_out file_exp + ' + test_expect_success "cleanup deep cp -p test $EXTRA" ' ipfs files rm -r /cats/some '