# # # add_dir "tests/status_with_attrs" # # add_file "tests/status_with_attrs/__driver__.lua" # content [b4ad87daff5024935fa276410f249038a1dcb641] # ============================================================ --- tests/status_with_attrs/__driver__.lua b4ad87daff5024935fa276410f249038a1dcb641 +++ tests/status_with_attrs/__driver__.lua b4ad87daff5024935fa276410f249038a1dcb641 @@ -0,0 +1,19 @@ + +mtn_setup() + +addfile("testfile1", "foo") +addfile("testfile2", "bar") +check(mtn("attr", "set", "testfile1", "foo1", "bar"), 0, false, false) +check(mtn("attr", "set", "testfile2", "foo2", "bar"), 0, false, false) +commit() + +check(mtn("attr", "set", "testfile1", "foo1", "modified"), 0, false, false) +check(mtn("attr", "set", "testfile1", "bar1", "new-value"), 0, false, false) +check(mtn("attr", "drop", "testfile2", "foo2"), 0, false, false) + +check(mtn("status"), 0, true, false) +xfail_if(not qgrep("testfile1", "stdout")) +check(qgrep("foo1", "stdout")) +check(qgrep("bar1", "stdout")) +check(qgrep("testfile2", "stdout")) +check(qgrep("foo2", "stdout"))