git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/3] Script to install, delete and clear a MediaWiki

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 5, 2012, 16:48 UTC
Message-ID
<7vhauppuwu.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1338902756-4162-1-git-send-email-simon.cathebras@ensimag.imag.fr>
Simon Cathebras <simon.cathebras@ensimag.imag.fr> writes:
Show 23 quoted lines
> 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?

The t/ directory is a very strange place to put an installation procedure for anything. Is this because later test scripts that test mw-to-git gateway need to have a mediawiki instance that runs locally?

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.

>  mode change 100644 => 100755 t/test-lib-functions.sh
>  mode change 100644 => 100755 t/test-lib.sh
Why?
Previous: Matthieu MoyNext: Simon.Cathebras
Message 10 of 11 in “[Git-MediaWiki] Test environment for Git-MediaWiki”
  1. Simon.CathebrasJun 5, 2012
  2. 1/3 Script to install, delete and clear a MediaWikiSimon Cathebras, Jun 5, 2012
  3. 2/3 Test environment of git-remote-mwSimon Cathebras, Jun 5, 2012
  4. 3/3 Tests file for git-remote-mediawikiSimon Cathebras, Jun 5, 2012
  5. Matthieu MoyJun 6, 2012
  6. Simon.CathebrasJun 8, 2012
  7. Matthieu MoyJun 8, 2012
  8. Simon PerratJun 8, 2012
  9. Matthieu MoyJun 8, 2012
  10. Junio C HamanoJun 5, 2012
  11. Simon.CathebrasJun 6, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.