# # # add_dir "tests/automate_get_extended_manifest_of" # # add_file "tests/automate_get_extended_manifest_of/__driver__.lua" # content [670dc0873dc48e73cff27472c0895c665ec20f64] # # add_file "tests/automate_get_extended_manifest_of/expected1" # content [da280bca5a7db860371e2800cb6065bb2f619943] # # add_file "tests/automate_get_extended_manifest_of/expected2" # content [dc9496d2cac7f17f746881a9e66173d177ff07a6] # # add_file "tests/automate_get_extended_manifest_of/expected3" # content [7b731c2eb61487e5076a57e2fbd300205b46e75a] # ============================================================ --- /dev/null +++ tests/automate_get_extended_manifest_of/__driver__.lua 670dc0873dc48e73cff27472c0895c665ec20f64 @@ -0,0 +1,34 @@ + +mtn_setup() + +-- need a valid revision id +check(mtn("au", "get_extended_manifest_of", string.rep("0123", 10)), 1, false, true) +check(qgrep("no revision " .. string.rep("0123", 10) .. " found in database", "stderr")) + +addfile("foofile", "blah") +adddir("bardir") +check(mtn("attr", "set", "bardir", "barprop", "barpropval"), 0, false, false) +commit() +R1=base_revision() + +writefile("foofile", "blahblah") +check(mtn("attr", "drop", "bardir", "barprop"), 0, false, false) +commit() +R2=base_revision() + +check(mtn("mv", "foofile", "foo-file"), 0, false, false) +check(mtn("drop", "bardir"), 0, false, false) +commit() +R3=base_revision() + +get("expected1") +check(mtn("au", "get_extended_manifest_of", R1), 0, true, false) +check(samefile("stdout", "expected1")) + +get("expected2") +check(mtn("au", "get_extended_manifest_of", R2), 0, true, false) +check(samefile("stdout", "expected2")) + +get("expected3") +check(mtn("au", "get_extended_manifest_of", R3), 0, true, false) +check(samefile("stdout", "expected3")) ============================================================ --- /dev/null +++ tests/automate_get_extended_manifest_of/expected1 da280bca5a7db860371e2800cb6065bb2f619943 @@ -0,0 +1,16 @@ + dir "" + birth [0cd607d6dda3a2df18f777112947f3c70811581e] +path_mark [0cd607d6dda3a2df18f777112947f3c70811581e] + + dir "bardir" + attr "barprop" "barpropval" + birth [0cd607d6dda3a2df18f777112947f3c70811581e] +path_mark [0cd607d6dda3a2df18f777112947f3c70811581e] +attr_mark "barprop" [0cd607d6dda3a2df18f777112947f3c70811581e] + + file "foofile" + content [5bf1fd927dfb8679496a2e6cf00cbe50c1c87145] + size "4" + birth [0cd607d6dda3a2df18f777112947f3c70811581e] + path_mark [0cd607d6dda3a2df18f777112947f3c70811581e] +content_mark [0cd607d6dda3a2df18f777112947f3c70811581e] ============================================================ --- /dev/null +++ tests/automate_get_extended_manifest_of/expected2 dc9496d2cac7f17f746881a9e66173d177ff07a6 @@ -0,0 +1,16 @@ + dir "" + birth [0cd607d6dda3a2df18f777112947f3c70811581e] +path_mark [0cd607d6dda3a2df18f777112947f3c70811581e] + + dir "bardir" +dormant_attr "barprop" + birth [0cd607d6dda3a2df18f777112947f3c70811581e] + path_mark [0cd607d6dda3a2df18f777112947f3c70811581e] + attr_mark "barprop" [a7a71d7cc0d526165e7362b8a87393d8609f40c2] + + file "foofile" + content [d3395867d05cc4c27f013d6e6f48d644e96d8241] + size "8" + birth [0cd607d6dda3a2df18f777112947f3c70811581e] + path_mark [0cd607d6dda3a2df18f777112947f3c70811581e] +content_mark [a7a71d7cc0d526165e7362b8a87393d8609f40c2] ============================================================ --- /dev/null +++ tests/automate_get_extended_manifest_of/expected3 7b731c2eb61487e5076a57e2fbd300205b46e75a @@ -0,0 +1,10 @@ + dir "" + birth [0cd607d6dda3a2df18f777112947f3c70811581e] +path_mark [0cd607d6dda3a2df18f777112947f3c70811581e] + + file "foo-file" + content [d3395867d05cc4c27f013d6e6f48d644e96d8241] + size "8" + birth [0cd607d6dda3a2df18f777112947f3c70811581e] + path_mark [f165a0aff46523739c0f6a18416d6302a7eec5ec] +content_mark [a7a71d7cc0d526165e7362b8a87393d8609f40c2]