[Fusionforge-commits] FusionForge branch GUM updated. 22ac87a3ecaa4c5502dccfd78aba97d00beaca97

Sylvain Beucler beuc-inria at fusionforge.org
Wed Aug 27 12:01:39 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, GUM has been updated
       via  22ac87a3ecaa4c5502dccfd78aba97d00beaca97 (commit)
      from  ba8cf0fc49beff7f3d301c77a77e87d94bbc4826 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 22ac87a3ecaa4c5502dccfd78aba97d00beaca97
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Wed Aug 27 12:00:26 2014 +0200

    testsuite: new TESTGLOB environment variable to select the tests

diff --git a/tests/Testsuite.php b/tests/Testsuite.php
index 8241e16..b8bf8b7 100644
--- a/tests/Testsuite.php
+++ b/tests/Testsuite.php
@@ -23,7 +23,10 @@ class Testsuite
 
 		// Selenium tests
 		if (!defined('DB_INIT_CMD')) { define('PROJECTA','true'); }
-		$files = glob("func/*/*Test.php");
+		if (getenv('TESTGLOB') != FALSE)
+		  $files = glob(getenv('TESTGLOB'));
+		else
+		  $files = glob('func/*/*Test.php');
 		natsort($files);
 		$suite->addTestFiles($files);
 
diff --git a/tests/scripts/fusionforge-build-and-test-deb.sh b/tests/scripts/fusionforge-build-and-test-deb.sh
index 368ac201..99e9e25 100755
--- a/tests/scripts/fusionforge-build-and-test-deb.sh
+++ b/tests/scripts/fusionforge-build-and-test-deb.sh
@@ -49,6 +49,7 @@ ssh root@$HOST "/usr/src/fusionforge/tests/scripts/deb/install.sh"
 # Run tests
 retcode=0
 echo "Run phpunit test on $HOST"
+# TESTGLOB=func/50_PluginsScmGit/gitSSHTest.php
 ssh root@$HOST "/usr/src/fusionforge/tests/func/vncxstartsuite.sh /usr/src/fusionforge/tests/scripts/deb/run-testsuite.sh" || retcode=$?
 
 rsync -av root@$HOST:/var/log/ ~/reports/
diff --git a/tests/scripts/phpunit.sh b/tests/scripts/phpunit.sh
index 5c6f652..1404836 100755
--- a/tests/scripts/phpunit.sh
+++ b/tests/scripts/phpunit.sh
@@ -100,7 +100,6 @@ define ('URL', 'http://'.HOST.'/');
 
 // WSDL of the forges SOAP API
 define ('WSDL_URL', URL.'soap/index.php?wsdl');
-?>
 EOF
 
 echo "Starting Selenium"

-----------------------------------------------------------------------

Summary of changes:
 tests/Testsuite.php                             |    5 ++++-
 tests/scripts/fusionforge-build-and-test-deb.sh |    1 +
 tests/scripts/phpunit.sh                        |    1 -
 3 files changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list