monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] Re: [PATCH] monotone ls authors


From: Bruce Stephens
Subject: [Monotone-devel] Re: [PATCH] monotone ls authors
Date: Wed, 14 Dec 2005 17:27:15 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Bruce Stephens <address@hidden> writes:

[...]

> @@ -754,3 +754,4 @@
>  m4_include(tests/t_update_switch_branch.at)
>  m4_include(tests/t_mixed_case_pwd.at)
>  m4_include(tests/t_read_privkey.at)
> +m4_include(tests/t_ls_authors.at)

Oops, the test's missing

#  -*- Autoconf -*-

AT_SETUP([list authors])

# Setup the environment
MONOTONE_SETUP

# ls authors on empty db should return successful and empty
AT_CHECK(MONOTONE ls authors,[0],[stdout],[stderr])
AT_CHECK(cmp /dev/null stdout,[],[ignore])
AT_CHECK(cmp /dev/null stderr,[],[ignore])

# Let's create a branch, so we have stuff to list
AT_DATA(foo.testbranch, [this is the testbranch version
])

AT_CHECK(cp foo.testbranch foo)
AT_CHECK(MONOTONE add foo, [], [ignore], [ignore])
AT_CHECK(MONOTONE commit --branch=testbranch --author author1 --message 
blah-blah,
                   [], [ignore], [ignore])

AT_CHECK(MONOTONE ls authors,[0],[stdout],[stderr])
AT_CHECK(CANONICALISE(stdout))
AT_DATA(authors,[author1
])
AT_CHECK(cmp authors stdout,[],[ignore])

AT_DATA(foo.mod1, [make a modification
])
AT_CHECK(cp foo.mod1 foo)
AT_CHECK(MONOTONE commit --branch=testbranch --author author1 --message 
blah-blah,
                   [], [ignore], [ignore])

AT_CHECK(MONOTONE ls authors,[0],[stdout],[stderr])
AT_CHECK(CANONICALISE(stdout))
AT_DATA(authors,[author1
])
AT_CHECK(cmp authors stdout,[],[ignore])

AT_DATA(foo.mod2, [make another modification
])
AT_CHECK(cp foo.mod2 foo)
AT_CHECK(MONOTONE commit --branch=testbranch --author author2 --message 
blah-blah,
                   [], [ignore], [ignore])

AT_CHECK(MONOTONE ls authors,[0],[stdout],[stderr])
AT_CHECK(CANONICALISE(stdout))
AT_DATA(authors,[author1
author2
])
AT_CHECK(cmp authors stdout,[],[ignore])

AT_CLEANUP

reply via email to

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