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

Re: [PATCH 2/3] Test environment of git-remote-mw

From
Simon.Cathebras <simon.cathebras@ensimag.imag.fr>
Date
Jun 1, 2012, 08:53 UTC
Message-ID
<4FC88310.2020103@ensimag.imag.fr>
In-Reply-To
<vpqzk8oq0oe.fsf@bauges.imag.fr>
On 31/05/2012 09:17, Matthieu Moy wrote:
Show 8 quoted lines
>
>> +	result=$(diff -r -B -w --exclude=".git" "$1" "$2")
> Doesn't seem to be in POSIX:
>
> http://pubs.opengroup.org/onlinepubs/009695399/utilities/diff.html
>
> Will this run on all platforms?
>
Indeed. According to the POSIX manual, the option -B and -w are merged 
in the single option -b.
In addition, -r option still exists (to compare recursively two 
directories).
The previous instruction will be write as follow :
     diff -r -b "$first_folder" "$second_folder"
With this fix, it will works on all platforms. ;)
Show 6 quoted lines
>> +my $wiki_url="http://localhost/wiki/api.php";
>> +my $wiki_admin='WikiAdmin';
>> +my $wiki_admin_pass='AdminPass';
> It would be nice to allow overriding these from the command-line. But as
> you are now writting tests, you may as well apply the YAGNI
> principle ;-).

Does it seems important for you to overriding these from CL ? By default, those settings work fine. You have to edit this only if you need a special configuration. But it is purely optionnal.

   Included in v2 patches:
     * Fixing errors pointed above.
     * Sqlite file excluded from the patches. Mainly with reviewing the 
wiki_install script.

On the other hand, considering the git-mediawiki is curently on contrib branch, shall we move our test environement from git/t to git/contrib/t ?

SimonC
-- 
CATHEBRAS Simon

2A-ENSIMAG

Filière Ingéniérie des Systèmes d'Information
Membre Bug-Buster
Previous: Matthieu MoyNext: Matthieu Moy
Message 5 of 21 in “Test environment for Git-MediaWiki”
  1. Test environment for Git-MediaWikiSimon.Cathebras, May 30, 2012
  2. 1/3 Script to install, delete and clear a MediaWikiSimon Cathebras, May 30, 2012
  3. 2/3 Test environment of git-remote-mwSimon Cathebras, May 30, 2012
  4. Matthieu MoyMay 31, 2012
  5. Simon.CathebrasJun 1, 2012
  6. Matthieu MoyJun 1, 2012
  7. Matthieu MoyJun 1, 2012
  8. 3/3 Tests file for git-remote-mediawikiSimon Cathebras, May 30, 2012
  9. Matthieu MoyMay 31, 2012
  10. 1/2 FIX: t9360. NEW test t9361 for git pull and git pushGuillaume Sasdy, May 31, 2012
  11. 2/2 FIX: Syntax of shell and perl scripts and posix compliantGuillaume Sasdy, May 31, 2012
  12. FIX: Syntax of shell and perl scripts and posix compliantGuillaume Sasdy, May 31, 2012
  13. FIX: Syntax of shell and perl scripts and posix compliantGuillaume Sasdy, May 31, 2012
  14. 1/3 FIX: cmd_* moved to wiki_* in test-gitmw-lib.sh and other filesGuillaume Sasdy, May 31, 2012
  15. 1/3 Script to install, delete and clear a MediaWikiGuillaume Sasdy, Jun 1, 2012
  16. 2/3 Test environment of git-remote-mwGuillaume Sasdy, Jun 1, 2012
  17. Matthieu MoyJun 1, 2012
  18. Simon.CathebrasJun 1, 2012
  19. Matthieu MoyJun 2, 2012
  20. Simon.CathebrasJun 4, 2012
  21. 3/3 Tests file for git-remote-mediawikiGuillaume Sasdy, Jun 1, 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.