# # # add_file "tests/t_selectors_b_h.at" # content [f9d2243fcc6c3f4d63b6c5e14e8b3ac76896ca86] # # patch "ChangeLog" # from [951d5f13768cfdf2db237ff7473118a1902a2749] # to [d95ea855cd5ded50f9f4d62bd4781ae67dd1b4e4] # # patch "testsuite.at" # from [1b4b00ec9e91b1d4911abc09da60c4ac8a926aa2] # to [6919d01d23f6132ac2491b1ad823ec39dddd5c14] # ============================================================ --- tests/t_selectors_b_h.at f9d2243fcc6c3f4d63b6c5e14e8b3ac76896ca86 +++ tests/t_selectors_b_h.at f9d2243fcc6c3f4d63b6c5e14e8b3ac76896ca86 @@ -0,0 +1,26 @@ +AT_SETUP([b: and h: selectors]) +MONOTONE_SETUP + +ADD_FILE(testfile, [blah blah +]) +COMMIT(testbranch) +REV1=`BASE_REVISION` + +SET_FILE(testfile, [stuff stuff +]) +COMMIT(testbranch) +REV2=`BASE_REVISION` + +SET_FILE(testfile, [chew chew +]) +COMMIT(otherbranch) +REV3=`BASE_REVISION` + +CHECK_SAME_CANONICALISED_STDOUT((echo $REV1 && echo $REV2) | sort, MONOTONE automate select b:testbranch) +CHECK_SAME_CANONICALISED_STDOUT(echo $REV3, MONOTONE automate select b:otherbranch) +CHECK_SAME_CANONICALISED_STDOUT(echo $REV3, MONOTONE automate select b:) +CHECK_SAME_CANONICALISED_STDOUT(echo $REV2, MONOTONE automate select h:testbranch) +CHECK_SAME_CANONICALISED_STDOUT(echo $REV3, MONOTONE automate select h:otherbranch) +CHECK_SAME_CANONICALISED_STDOUT(echo $REV3, MONOTONE automate select h:) + +AT_CLEANUP ============================================================ --- ChangeLog 951d5f13768cfdf2db237ff7473118a1902a2749 +++ ChangeLog d95ea855cd5ded50f9f4d62bd4781ae67dd1b4e4 @@ -1,5 +1,9 @@ 2006-01-10 Nathaniel Smith + * tests/t_selectors_b_h.at, testsuite.at: New test. + +2006-01-10 Nathaniel Smith + * database.cc (manifest_cert_exists, put_manifest_cert): (get_manifest_cert, get_manifest_certs): Remove unused methods. ============================================================ --- testsuite.at 1b4b00ec9e91b1d4911abc09da60c4ac8a926aa2 +++ testsuite.at 6919d01d23f6132ac2491b1ad823ec39dddd5c14 @@ -754,3 +754,4 @@ m4_include(tests/t_restricted_commands_consistent.at) m4_include(tests/t_rosterify_drop_attrs.at) m4_include(tests/t_rosterify_one_rev.at) +m4_include(tests/t_selectors_b_h.at)