mirror of
https://github.com/git/git.git
synced 2024-11-16 22:14:53 +01:00
8435b28989
In order to test git-remote-mediawiki, a set of functions is needed to manage a MediaWiki: edit a page, remove a page, fetch a page, fetch all pages on a given wiki. A few helper function are also provided to check the content of directories. In addition, this patch provides Makefiles to execute tests. See the README file for more details. 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>
31 lines
698 B
Makefile
31 lines
698 B
Makefile
#
|
|
# Copyright (C) 2012
|
|
# Charles Roussel <charles.roussel@ensimag.imag.fr>
|
|
# Simon Cathebras <simon.cathebras@ensimag.imag.fr>
|
|
# Julien Khayat <julien.khayat@ensimag.imag.fr>
|
|
# Guillaume Sasdy <guillaume.sasdy@ensimag.imag.fr>
|
|
# Simon Perrat <simon.perrat@ensimag.imag.fr>
|
|
#
|
|
## Test git-remote-mediawiki
|
|
|
|
all: test
|
|
|
|
-include ../../../config.mak.autogen
|
|
-include ../../../config.mak
|
|
|
|
T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
|
|
|
|
.PHONY: help test clean all
|
|
|
|
help:
|
|
@echo 'Run "$(MAKE) test" to launch test scripts'
|
|
@echo 'Run "$(MAKE) clean" to remove trash folders'
|
|
|
|
test:
|
|
@for t in $(T); do \
|
|
echo "$$t"; \
|
|
"./$$t" || exit 1; \
|
|
done
|
|
|
|
clean:
|
|
$(RM) -r 'trash directory'.*
|