# # add_file "tests/t_options.at" # # patch "ChangeLog" # from [7437457f4e66b0a1321526138eba6d6d1d4e46d3] # to [c16aaaefadd9737df6f245cb521a3abb0f995a7e] # # patch "tests/t_options.at" # from [] # to [44bc7db4f21ffbb28051d8a3aa7352be6d4108c1] # # patch "testsuite.at" # from [c8bcc8c5115697c942bb35925bb958aa1978efec] # to [73a4e7c1227aafec4b18808f86c08a663827a354] # --- ChangeLog +++ ChangeLog @@ -1,3 +1,9 @@ +2005-04-30 Richard Levitte + + * tests/t_options.at: New test to check that some options really + are command-specific. + * testsuite.at: Use it. + 2005-04-30 Nathaniel Smith * monotone.texi (Database): Minor correction. --- tests/t_options.at +++ tests/t_options.at @@ -0,0 +1,17 @@ +# -*- Autoconf -*- + +AT_SETUP([checking a few command specific options]) + +MONOTONE_SETUP + +AT_DATA(testfile, [This is complete junk +]) +AT_CHECK(MONOTONE --branch=testbranch add testfile, [1], [ignore], [ignore]) +AT_CHECK(MONOTONE add testfile, [], [ignore], [ignore]) +AT_CHECK(MONOTONE --branch=testbranch commit --message=blah-blah, [], [ignore], [ignore]) +ROOT_R_SHA=`BASE_REVISION` + +AT_CHECK(MONOTONE --branch=testbranch --depth=1 log, [1], [ignore], [ignore]) +AT_CHECK(MONOTONE --depth=1 log, [], [ignore], [ignore]) + +AT_CLEANUP --- testsuite.at +++ testsuite.at @@ -594,3 +594,4 @@ m4_include(tests/t_annotate_add_collision.at) m4_include(tests/t_annotate_branch_collision.at) m4_include(tests/t_netsync_error.at) +m4_include(tests/t_options.at)