git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Simon.Cathebras" <Simon.Cathebras@ensimag.imag.fr>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Matthieu.Moy@imag.fr,
	charles.roussel@ensimag.imag.fr, Guillaume.Sasdy@ensimag.imag.fr,
	Julien.Khayat@ensimag.imag.fr, Simon.Perrat@ensimag.imag.fr,
	peff@peff.net
Subject: Re: [PATCH 1/3] Script to install, delete and clear a MediaWiki
Date: Wed, 06 Jun 2012 15:49:20 +0200	[thread overview]
Message-ID: <4FCF5FE0.4030608@ensimag.imag.fr> (raw)
In-Reply-To: <7vhauppuwu.fsf@alter.siamese.dyndns.org>



On 05/06/2012 18:48, Junio C Hamano wrote:
> Simon Cathebras<simon.cathebras@ensimag.imag.fr>  writes:
>
>> From: Guillaume Sasdy<guillaume.sasdy@ensimag.imag.fr>
>>
>> install_wiki.sh expects the first argument to be 'install' or 'delete'
>> 'install' installs a MediaWiki on the web's server with SQLite3
>> 'delete' deletes the previously created wiki.
>> Note those functionnalities are made to be used from the user command line in
>> the directory t/
>>
>> install_wiki also defines a function wiki_reset which clear all content
>> of the previously created wiki. Note this functionnality is made to be
>> used only by our test function in a subdirectory of t/
>>
>> Signed-off-by: Simon Cathebras<simon.cathebras@ensimag.imag.fr>
>> Signed-off-by: Guillaume Sasdy<guillaume.sasdy@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: Matthieu Moy<matthieu.moy@imag.fr>
>> ---
>>   t/install-wiki.sh                |  38 ++++++++++
>>   t/install-wiki/LocalSettings.php | 129 ++++++++++++++++++++++++++++++++
>>   t/install-wiki/db_install.php    | 110 ++++++++++++++++++++++++++++
>>   t/test-gitmw-lib.sh              | 154 +++++++++++++++++++++++++++++++++++++++
> Hrm, I see my name on the Cc: list, but is this meant to go into my tree?

Yes, but we would like to apologize for the poor choice of word. It would
be more correct to say that we are proposing to you an improvement for
git-remote-mediawiki, currently in git/contrib/mw-to-git/t.
This improvement is actually a test environment for git-remote-mediawiki.



> The t/ directory is a very strange place to put an installation
> procedure for anything.

Sorry again, we intended to move our test environment from t/ to *PATH*.
Unfortunately, we made a wrong manipulation and we couldn't solve this
issue. But it will be fixed in the next patch.



>    Is this because later test scripts that
> test mw-to-git gateway need to have a mediawiki instance that runs
> locally?

Exactly.


>
> I am wondering why it is not sufficient to structure the MediaWiki
> related tests more like existing tests that require a running HTTP
> server, namely, t/lib-httpd.sh that allows such tests to proceed
> only if a suitable server is available, but we do not ship a script
> to install Apache for that.

Actually, we are providing an install script for a MediaWiki, because we
need some specific configurations on it to run all the tests correctly. Without forget to mention that our test are creating several page on the wiki used for the tests, and reset it several times... It wouldn't be realy smart to use a real and realy used wiki to test git-mw. As a
matter of fact, it is easier to create a script than providing a complex
documentation on "how to install our specific mediawiki" for the user.
In addition, we are providing function of reset and deletion on the
mediawiki, for purpose of tests. And it is impossible to do if we do not
install it ourselves.
Anyway, it is possible to skip those tests if a wiki is not intalled.
For all those reason, we believe that we must keep this script to install a wiki in our code.



>>   mode change 100644 =>  100755 t/test-lib-functions.sh
>>   mode change 100644 =>  100755 t/test-lib.sh
> Why?


A wrong manipulation during the development: chmod +x on those file... We
have forgotten to correct it. Correction in the next patch.

-- 
CATHEBRAS Simon

2A-ENSIMAG

Filière Ingéniérie des Systèmes d'Information
Membre Bug-Buster

  reply	other threads:[~2012-06-06 13:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-05 13:20 [Git-MediaWiki] Test environment for Git-MediaWiki Simon.Cathebras
2012-06-05 13:25 ` [PATCH 1/3] Script to install, delete and clear a MediaWiki Simon Cathebras
2012-06-05 13:25   ` [PATCH 2/3] Test environment of git-remote-mw Simon Cathebras
2012-06-05 13:25   ` [PATCH 3/3] Tests file for git-remote-mediawiki Simon Cathebras
2012-06-06 20:18     ` Matthieu Moy
2012-06-08  8:04       ` Simon.Cathebras
2012-06-08  8:57         ` Matthieu Moy
2012-06-08  9:04           ` Simon Perrat
2012-06-08  9:08             ` Matthieu Moy
2012-06-05 16:48   ` [PATCH 1/3] Script to install, delete and clear a MediaWiki Junio C Hamano
2012-06-06 13:49     ` Simon.Cathebras [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-05-30 16:30 [PATCH/RFC]Test environment for Git-MediaWiki Simon.Cathebras
2012-05-30 17:04 ` [PATCH 1/3] Script to install, delete and clear a MediaWiki Simon Cathebras
2012-05-31  7:19   ` Matthieu Moy
2012-06-01 10:41 ` Guillaume Sasdy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FCF5FE0.4030608@ensimag.imag.fr \
    --to=simon.cathebras@ensimag.imag.fr \
    --cc=Guillaume.Sasdy@ensimag.imag.fr \
    --cc=Julien.Khayat@ensimag.imag.fr \
    --cc=Matthieu.Moy@imag.fr \
    --cc=Simon.Perrat@ensimag.imag.fr \
    --cc=charles.roussel@ensimag.imag.fr \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=peff@peff.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).