X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Frefile%2Ftest-refile;h=62f086df15a064dd4edbe5ab761a9213b9378e8d;hb=a4390a1c51b3a709d6aeefeba2fdd6fa8d525012;hp=9de20e251982418ef3536c5c4c787a1fba751fa8;hpb=8f75811e49388577186fc634e931edc1834b59c9;p=mmh diff --git a/test/refile/test-refile b/test/refile/test-refile index 9de20e2..62f086d 100755 --- a/test/refile/test-refile +++ b/test/refile/test-refile @@ -115,17 +115,25 @@ other+ has 1 message (1- 1). TOTAL = 11 messages in 2 folders.' -# check -link -run_test 'refile 7 -src +inbox +other -link' '' -run_test 'folders -noheader' \ -'inbox+ has 10 messages (1-10); cur=7. +check_for_hard_links +if [ $hard_links_supported -eq 1 ]; then + # check -link + run_test 'refile 7 -src +inbox +other -link' '' + run_test 'folders -noheader' \ + 'inbox+ has 10 messages (1-10); cur=7. other has 2 messages (1- 2). TOTAL = 12 messages in 2 folders.' -# inbox/7 and other/2 are linked. Modify one and verify -# that the other changes as well. -echo '' >>$MH_TEST_DIR/Mail/other/2 -run_test "cmp $MH_TEST_DIR/Mail/inbox/7 $MH_TEST_DIR/Mail/other/2" '' + # inbox/7 and other/2 are linked. Modify one and verify + # that the other changes as well. + echo '' >>$MH_TEST_DIR/Mail/other/2 + run_test "cmp $MH_TEST_DIR/Mail/inbox/7 $MH_TEST_DIR/Mail/other/2" '' +else + # Hard links are not supported. Skip the -link test but emulate + # what it would have done using a copy instead of a link. + cp -p Mail/inbox/7 Mail/other/2 + folder -f +inbox 7 >/dev/null +fi # check -nolink run_test 'refile 7 +other -link -nolink' ''