The unified diff between revisions [869f0c37..] and [e24ccc23..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'tests/t_cat_file_by_name.at'
# # # patch "tests/t_cat_file_by_name.at" # from [009033538c4424ad6994c33eef9dab24bef15980] # to [45f9704b56b2b74f16c5579539bc1c6f777b1e56] # ============================================================ --- tests/t_cat_file_by_name.at 009033538c4424ad6994c33eef9dab24bef15980 +++ tests/t_cat_file_by_name.at 45f9704b56b2b74f16c5579539bc1c6f777b1e56 @@ -7,10 +7,14 @@ AT_DATA(r1testfile, [r1 test file ]) AT_DATA(r1testfile, [r1 test file ]) +AT_DATA(subfile, [data in subfile +]) AT_CHECK(cp r0testfile testfile) AT_CHECK(cp r0otherfile otherfile) -AT_CHECK(MONOTONE add testfile otherfile, [], [ignore], [ignore]) +AT_CHECK(mkdir subdir) +AT_CHECK(cp subfile subdir/testfile) +AT_CHECK(MONOTONE add testfile otherfile subdir/testfile, [], [ignore], [ignore]) COMMIT(testbranch) R0=`BASE_REVISION` @@ -30,6 +34,12 @@ AT_CHECK(cmp stdout r1testfile, [], [ign AT_CHECK(CANONICALISE(stdout)) AT_CHECK(cmp stdout r1testfile, [], [ignore]) +CHECK_SAME_CANONICALISED_STDOUT(cd subdir && MONOTONE cat file $R0 testfile, cat subfile) + +AT_CHECK(rm -rf MT) + +CHECK_SAME_CANONICALISED_STDOUT(MONOTONE cat file $R0 testfile, cat r0testfile) + AT_CHECK(MONOTONE cat file $R0 no_such_file, [1], [ignore], [ignore]) AT_CHECK(MONOTONE cat file $R0 "", [1], [ignore], [ignore])