Skip to content
moy edited this page Jun 26, 2012 · 26 revisions

Welcome to the Git-MediaWiki’s test environment!

Install Git-MediaWiki

First, you need to have the packages libmediawiki-api-perl and libdatetime- format-iso8601-perl to run our version of Git compiled with Git-MediaWiki. Clone our git repository (git@github.com:Fafinou/git.git) to get this version.
Now you might want to do some tests :)

To use the testsuite in good conditions, you need to have the packages:

  • lighttpd
  • sqlite
  • php5-cgi
  • php5-cli
  • php5-curl
  • php5-sqlite

Install the test environment

In order to make your life easier, our test environment will automatically download and install a wiki on your computer. We only need you to install first a web server (lighttpd is the simplest option since the install script does everything for you and does not need root priviledge, but the environment also supports the Apache server which can be found in the package apache2).

Apache configuration

NB: php.ini can be found at /etc/php5/apache2/php.ini

Add or uncomment the the two lines below in your file php.ini :

  • extension=php_pdo_sqlite.so
  • extension=php_pdo.so
  • extension=curl.so (not mandatory)

You must also check the file t/test-gitmw-lib.sh because you might want to change the configuration variables (4 variables: path to the web server, wiki’s name of the folder, temporary directory to download files, server address) ; especially the directory of your web server.

Execute the tests

Now you can install and delete a wiki very easily in your web server with the script t/install_wiki.sh. Warning: you must be in the directory t/ to run the script. Be sure you run the command with the needed privileges to for install and delete files in your web server’s directory.

  • Copy the git/contrib/mw-to-git/git-remote-mediawiki into git/
  • Run ./install-wiki.sh install inside the t/ directory
  • Simply run the test t9360-git-mediawiki.sh (test cases for git clone)
  • Run the test t9361-git-mediawiki.sh (test cases for git push and git pull)
  • Run ./install-wiki.sh delete inside the t/ directory
Clone this wiki locally