# # # add_dir "tests/policy-tags" # # add_file "tests/policy-tags/__driver__.lua" # content [f64b59028a1de943976716c479cf5d92f04020dd] # ============================================================ --- tests/policy-tags/__driver__.lua f64b59028a1de943976716c479cf5d92f04020dd +++ tests/policy-tags/__driver__.lua f64b59028a1de943976716c479cf5d92f04020dd @@ -0,0 +1,24 @@ +mtn_setup() + +check(mtn("create_project", "test_project"), 0, false, false) + +addfile("foo", "bar") + +check(mtn("create_branch", "test_project.testbranch"), 0, false, false) + +commit("test_project.testbranch", "foobar") + +revid = base_revision() + +check(mtn("tag", revid, "test_project.mytag"), 0, false, false) + +check(mtn("ls", "tags"), 0, true) +check(qgrep("test_project.mytag", "stdout")) +check(qgrep(revid, "stdout")) + + +rename("projects/test_project", "projects/testproj") + +check(mtn("ls", "tags"), 0, true) +check(qgrep("testproj.mytag", "stdout")) +check(qgrep(revid, "stdout")) \ No newline at end of file