# # add_file "tests/t_mt_ignore.at" # # patch "ChangeLog" # from [97884ba0f55ca2b747a1559bcd664c00f5bc2dac] # to [be429de2dd6c1f86b821c69cca1f0e77ab51bfd9] # # patch "tests/t_mt_ignore.at" # from [] # to [c2de21ee55150088d8767e659abfd41055bcb6f9] # ======================================================================== --- ChangeLog 97884ba0f55ca2b747a1559bcd664c00f5bc2dac +++ ChangeLog be429de2dd6c1f86b821c69cca1f0e77ab51bfd9 @@ -1,5 +1,10 @@ 2005-09-01 Timothy Brownawell + * tests/t_mt_ignore.at: use RAW_MONOTONE instead of ugly --rcfile + Also actually do "mtn add" this time. + +2005-09-01 Timothy Brownawell + * tests/t_mt_ignore.at: new test, checks that .mt-ignore works * testsuite.at: add it ======================================================================== --- tests/t_mt_ignore.at +++ tests/t_mt_ignore.at c2de21ee55150088d8767e659abfd41055bcb6f9 @@ -0,0 +1,29 @@ +AT_SETUP([things in .mt-ignore get ignored]) + +MONOTONE_SETUP + +AT_CHECK(touch foo) +AT_CHECK(touch bar) +AT_CHECK(mkdir baz) +AT_CHECK(touch baz/xyzzy) + +AT_DATA(.mt-ignore, [bar +baz +]) + +AT_CHECK(RAW_MONOTONE ls unknown, [], [stdout], []) +AT_CHECK(cp stdout unknown) + +AT_CHECK(grep foo unknown, [], [ignore]) +AT_CHECK(grep bar unknown, [1], [ignore]) +AT_CHECK(grep baz unknown, [1], [ignore]) + + +AT_CHECK(RAW_MONOTONE ls ignored, [], [stdout], []) +AT_CHECK(cp stdout ignored) + +AT_CHECK(grep foo ignored, [1], [ignore]) +AT_CHECK(grep bar ignored, [], [ignore]) +AT_CHECK(grep xyzzy ignored, [], [ignore]) + +AT_CLEANUP