From: Junio C Hamano Date: Thu, 05 Jul 2012 23:14:09 GMT Subject: Re: [PATCH 04/12] git-remote-mediawiki (t9361): test git-remote-mediawiki pull and push Message-ID: <7vipe1pzr2.fsf@alter.siamese.dyndns.org> In-Reply-To: <1341473772-28023-5-git-send-email-Matthieu.Moy@imag.fr> Matthieu Moy writes: > From: Guillaume Sasdy > > This patch provides a set of tests for the pull and push fonctionnality > of git-remote-mediawiki. The actual tests are kept in a separate function > to allow further tests to re-run the same set of commands with different > push and pull strategies. > > Signed-off-by: Simon CATHEBRAS > Signed-off-by: Julien KHAYAT > Signed-off-by: Simon Perrat > Signed-off-by: Charles ROUSSEL > Signed-off-by: Guillaume SASDY > Signed-off-by: Matthieu Moy > --- > contrib/mw-to-git/t/push-pull-tests.sh | 144 +++++++++++++++++++++++ > contrib/mw-to-git/t/t9361-mw-to-git-push-pull.sh | 24 ++++ > 2 files changed, 168 insertions(+) > create mode 100644 contrib/mw-to-git/t/push-pull-tests.sh > create mode 100755 contrib/mw-to-git/t/t9361-mw-to-git-push-pull.sh > > diff --git a/contrib/mw-to-git/t/push-pull-tests.sh b/contrib/mw-to-git/t/push-pull-tests.sh > new file mode 100644 > index 0000000..b9e38dc > --- /dev/null > +++ b/contrib/mw-to-git/t/push-pull-tests.sh > @@ -0,0 +1,144 @@ > +test_push_pull () { > + > + test_expect_success 'Git pull works after adding a new wiki page' ' > + wiki_reset && > + Trailing whitespace > + git clone mediawiki::'"$WIKI_URL"' mw_dir_1 && > + wiki_editpage Foo "page created after the git clone" false && > + Trailing whitespace There are many others, 16 in total, I think.