monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] net.venge.monotone.list_workspaces: b5eabe26d8


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone.list_workspaces: b5eabe26d8db8d24a28251912e7a6e38a01a1f64
Date: Tue, 11 Jan 2011 22:57:37 GMT

revision:            b5eabe26d8db8d24a28251912e7a6e38a01a1f64
date:                2011-01-11T22:57:10
author:              address@hidden
branch:              net.venge.monotone.list_workspaces
changelog:
* tests/list_workspaces/*: test for ls workspaces

manifest:
format_version "1"

new_manifest [8bf43016784d8726af7cc10c78429ebe404bb008]

old_revision [2ad8b7026a8315451c967718cee7b76edbfca510]

add_dir "tests/list_workspaces"

add_file "tests/list_workspaces/__driver__.lua"
 content [d7cc622b5a893fd344653512a434440082dbc247]
============================================================
--- /dev/null	
+++ tests/list_workspaces/__driver__.lua	d7cc622b5a893fd344653512a434440082dbc247
@@ -0,0 +1,26 @@
+
+check(raw_mtn("ls", "workspaces"), 1, false, true)
+check(qgrep("no database specified", "stderr"))
+
+check(raw_mtn("db", "init", "-d", "test.mtn"), 0, false, false)
+
+check(raw_mtn("ls", "workspaces", "-d", "test.mtn"), 0, true, false)
+check(samelines("stdout", {"no known valid workspaces"}))
+
+check(raw_mtn("setup", "-d", "test.mtn", "-b", "test.branch1", "work1"), 0, false, false)
+
+check(raw_mtn("ls", "workspaces", "-d", "test.mtn"), 0, true, false)
+check(qgrep("test.branch1.+in.+list_workspaces\/work1", "stdout"))
+
+check(raw_mtn("setup", "-d", "test.mtn", "-b", "test.branch2", "work2"), 0, false, false)
+check(rename("work1", "work3"))
+
+check(raw_mtn("ls", "workspaces", "-d", "test.mtn"), 0, true, false)
+check(qgrep("test.branch2.+in.+list_workspaces\/work2", "stdout"))
+check(not qgrep("test.branch1.+in.+list_workspaces\/work1", "stdout"))
+
+check(indir("work3", raw_mtn("register_workspace", "-d", "../test.mtn")), 0, false, false)
+
+check(raw_mtn("ls", "workspaces", "-d", "test.mtn"), 0, true, false)
+check(qgrep("test.branch1.+in.+list_workspaces\/work3", "stdout"))
+

reply via email to

[Prev in Thread] Current Thread [Next in Thread]