# # # add_dir "mtn_cvs/tests/push_simple" # # add_file "mtn_cvs/tests/push_simple/__driver__.lua" # content [f3c004fbb8f81c62e57a7225d9c2a5f09de32b05] # # patch "mtn_cvs/testsuite.lua" # from [80917cd0d1d6e2534627c8d07af74bde2d8eff69] # to [707c5c24250876f1d23d76f23d32a33cf740c1a8] # ============================================================ --- mtn_cvs/tests/push_simple/__driver__.lua f3c004fbb8f81c62e57a7225d9c2a5f09de32b05 +++ mtn_cvs/tests/push_simple/__driver__.lua f3c004fbb8f81c62e57a7225d9c2a5f09de32b05 @@ -0,0 +1,24 @@ +-- most simple CVS push + +include("/common/cvs.lua") +mtn_setup() +cvs_setup() + +-- create a test project + +mkdir("cvstemp") +writefile("cvstemp/A","A\n") +check(indir("cvstemp", cvs("import","-m","initial import", "test", "vendor_tag", "initial_import")), 0, false, false) + +-- change the repository in various ways +check(mtn_cvs("--branch=testbranch","pull",cvsroot,"test"),0, false,false) +check(mtn("co","--branch=testbranch","testbr"),0, false, false) + +writefile("testbr/A", "new A\n") +tsha1 = sha1("testbr/A") +check(indir("testbr", mtn("ci", "-m", "a changed")), 0, false, false) + +check(mtn_cvs("--branch=testbranch","push"),0, false,false) + +check(cvs("co", "test"), 0, false, false) +check(sha1("test/A") == tsha1) ============================================================ --- mtn_cvs/testsuite.lua 80917cd0d1d6e2534627c8d07af74bde2d8eff69 +++ mtn_cvs/testsuite.lua 707c5c24250876f1d23d76f23d32a33cf740c1a8 @@ -281,5 +281,6 @@ table.insert(tests, "pull_xmodule") table.insert(tests, "pull_rapid") table.insert(tests, "pull_samedirname") table.insert(tests, "pull_xmodule") +table.insert(tests, "push_simple") table.insert(tests, "push_loop") --table.insert(tests, "takeover_modified")