diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2012-07-06 12:03:09 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-06 12:20:46 -0700 |
commit | eb63bfaadf8d4f43c19c0384c45a9718acd85e66 (patch) | |
tree | aeac779bc13f89f220285a0fb48efea58410d0eb /contrib/mw-to-git/t/test-gitmw-lib.sh | |
parent | a3a96a1308a1a11736dd65300295f17cddda4c03 (diff) | |
download | git-eb63bfaadf8d4f43c19c0384c45a9718acd85e66.tar.gz |
git-remote-mediawiki: support for uploading file in test environment
This will be used for testing git-remote-mediawiki's import feature on a
wiki containing media files.
Signed-off-by: Simon CATHEBRAS <Simon.Cathebras@ensimag.imag.fr>
Signed-off-by: Julien KHAYAT <Julien.Khayat@ensimag.imag.fr>
Signed-off-by: Simon Perrat <simon.perrat@ensimag.imag.fr>
Signed-off-by: Charles ROUSSEL <Charles.Roussel@ensimag.imag.fr>
Signed-off-by: Guillaume SASDY <Guillaume.Sasdy@ensimag.imag.fr>
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/mw-to-git/t/test-gitmw-lib.sh')
-rwxr-xr-x | contrib/mw-to-git/t/test-gitmw-lib.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/mw-to-git/t/test-gitmw-lib.sh b/contrib/mw-to-git/t/test-gitmw-lib.sh index 14f65771d6..3b2cfacf51 100755 --- a/contrib/mw-to-git/t/test-gitmw-lib.sh +++ b/contrib/mw-to-git/t/test-gitmw-lib.sh @@ -26,6 +26,9 @@ else WIKI_DIR_INST="$CURR_DIR/$WEB_WWW" fi +wiki_upload_file () { + "$CURR_DIR"/test-gitmw.pl upload_file "$@" +} wiki_getpage () { "$CURR_DIR"/test-gitmw.pl get_page "$@" |