usr/share/gforge/plugins/scmgit/cgi-bin
usr/share/gforge/plugins/scmgit/common
usr/share/gforge/plugins/scmgit/www
- usr/share/gforge/www/plugins/scmgit
-usr/share/gforge/www/plugins
var/lib/gforge/chroot/scmrepos/git
-/usr/lib/cgi-bin/gitweb.cgi /usr/share/@OLDPACKAGE@/plugins/scmgit/cgi-bin/gitweb.cgi
+ /usr/share/@OLDPACKAGE@/plugins/scmgit/www /usr/share/@OLDPACKAGE@/www/plugins/scmgit
+/usr/lib/cgi-bin/gitweb.cgi /usr/share/@OLDPACKAGE@/plugins/scmgit/cgi-bin/gitweb.cgi
- /usr/share/gitweb/gitweb.cgi /usr/share/@OLDPACKAGE@/www/plugins/scmgit/gitweb.cgi
- /usr/share/gitweb/index.cgi /usr/share/@OLDPACKAGE@/www/plugins/scmgit/index.cgi
- /usr/share/gitweb/static/git-favicon.png /usr/share/@OLDPACKAGE@/www/plugins/scmgit/git-favicon.png
- /usr/share/gitweb/static/git-logo.png /usr/share/@OLDPACKAGE@/www/plugins/scmgit/git-logo.png
- /usr/share/gitweb/static/gitweb.css /usr/share/@OLDPACKAGE@/www/plugins/scmgit/gitweb.css
- /usr/share/gitweb/static/gitweb.js /usr/share/@OLDPACKAGE@/www/plugins/scmgit/gitweb.js
++/usr/share/gitweb/gitweb.cgi /usr/share/@OLDPACKAGE@/plugins/scmgit/www/gitweb.cgi
++/usr/share/gitweb/index.cgi /usr/share/@OLDPACKAGE@/plugins/scmgit/www/index.cgi
++/usr/share/gitweb/static/git-favicon.png /usr/share/@OLDPACKAGE@/plugins/scmgit/www/git-favicon.png
++/usr/share/gitweb/static/git-logo.png /usr/share/@OLDPACKAGE@/plugins/scmgit/www/git-logo.png
++/usr/share/gitweb/static/gitweb.css /usr/share/@OLDPACKAGE@/plugins/scmgit/www/gitweb.css
++/usr/share/gitweb/static/gitweb.js /usr/share/@OLDPACKAGE@/plugins/scmgit/www/gitweb.js
--- /dev/null
+<?php
+if (!defined('PHPUnit_MAIN_METHOD')) {
+ define('PHPUnit_MAIN_METHOD', 'AllTests::main');
+}
+
+if (!@include_once 'PHPUnit/Autoload.php') {
+ include_once 'PHPUnit/Framework.php';
+ require_once 'PHPUnit/TextUI/TestRunner.php';
+}
+
+require_once 'func/Testing/DEBSeleniumRemoteSuite.php';
+
+class DEBDebian60Tests
+{
+ public static function main()
+ {
+ PHPUnit_TextUI_TestRunner::run(self::suite());
+ }
+
+ public static function suite()
+ {
+ $suite = new DEBSeleniumRemoteSuite('PHPUnit');
+
+ // Selenium tests
+ if (!defined('DB_INIT_CMD')) { define('PROJECTA','true'); }
+ $suite->addTestFiles(glob("func/Site/*Test.php"));
+ $suite->addTestFiles(glob("func/Trackers/*Test.php"));
+ $suite->addTestFiles(glob("func/Tasks/*Test.php"));
+ $suite->addTestFiles(glob("func/Docs/*Test.php"));
+ $suite->addTestFiles(glob("func/Forums/*Test.php"));
+ $suite->addTestFiles(glob("func/News/*Test.php"));
+ $suite->addTestFiles(glob("func/PluginsBlocks/*Test.php"));
+ $suite->addTestFiles(glob("func/PluginsMediawiki/*Test.php"));
+ $suite->addTestFiles(glob("func/PluginsMoinMoin/*Test.php"));
+ $suite->addTestFiles(glob("func/PluginsOnlineHelp/*Test.php"));
++ $suite->addTestFiles(glob("func/PluginsScmGit/*Test.php"));
+// $suite->addTestFiles(glob("func/PluginsSvnTracker/*Test.php"));
+ $suite->addTestFiles(glob("func/RBAC/*Test.php"));
+ $suite->addTestFiles(glob("func/Surveys/*Test.php"));
+ $suite->addTestFiles(glob("func/Search/*Test.php"));
+
+ return $suite;
+ }
+}
+
+if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
+ AllTests::main();
+}
+?>
--- /dev/null
+<?php
+if (!defined('PHPUnit_MAIN_METHOD')) {
+ define('PHPUnit_MAIN_METHOD', 'AllTests::main');
+}
+
+require_once 'PHPUnit/Framework.php';
+require_once 'PHPUnit/TextUI/TestRunner.php';
+require_once 'func/Testing/RPMSeleniumRemoteSuite.php';
+
+class RPMCentosTests
+{
+ public static function main()
+ {
+ PHPUnit_TextUI_TestRunner::run(self::suite());
+ }
+
+ public static function suite()
+ {
+ $suite = new RPMSeleniumRemoteSuite('PHPUnit');
+
+ // Selenium tests
+ $suite->addTestFiles(glob("func/Site/*Test.php"));
+ $suite->addTestFiles(glob("func/Trackers/*Test.php"));
+ $suite->addTestFiles(glob("func/Tasks/*Test.php"));
+ $suite->addTestFiles(glob("func/Docs/*Test.php"));
+ $suite->addTestFiles(glob("func/Forums/*Test.php"));
+ $suite->addTestFiles(glob("func/News/*Test.php"));
+ $suite->addTestFiles(glob("func/PluginsBlocks/*Test.php"));
+// $suite->addTestFiles(glob("func/PluginsMediawiki/*Test.php"));
+// $suite->addTestFiles(glob("func/PluginsMoinMoin/*Test.php"));
+ $suite->addTestFiles(glob("func/PluginsOnlineHelp/*Test.php"));
++// $suite->addTestFiles(glob("func/PluginsScmGit/*Test.php"));
+// $suite->addTestFiles(glob("func/PluginsSvnTracker/*Test.php"));
+ $suite->addTestFiles(glob("func/RBAC/*Test.php"));
+ $suite->addTestFiles(glob("func/Surveys/*Test.php"));
+ $suite->addTestFiles(glob("func/Search/*Test.php"));
+
+ return $suite;
+ }
+}
+
+if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
+ AllTests::main();
+}
+?>
--- /dev/null
+<?php
+if (!defined('PHPUnit_MAIN_METHOD')) {
+ define('PHPUnit_MAIN_METHOD', 'AllTests::main');
+}
+
+require_once 'PHPUnit/Framework.php';
+require_once 'PHPUnit/TextUI/TestRunner.php';
+require_once 'func/Testing/TarSeleniumRemoteSuite.php';
+
+class TarCentosTests
+{
+ public static function main()
+ {
+ PHPUnit_TextUI_TestRunner::run(self::suite());
+ }
+
+ public static function suite()
+ {
+ $suite = new TarSeleniumRemoteSuite('PHPUnit');
+
+ // Selenium tests
+ $suite->addTestFiles(glob("func/Site/*Test.php"));
+ $suite->addTestFiles(glob("func/Trackers/*Test.php"));
+ $suite->addTestFiles(glob("func/Tasks/*Test.php"));
+ $suite->addTestFiles(glob("func/Docs/*Test.php"));
+ $suite->addTestFiles(glob("func/Forums/*Test.php"));
+ $suite->addTestFiles(glob("func/News/*Test.php"));
+ $suite->addTestFiles(glob("func/PluginsBlocks/*Test.php"));
+// $suite->addTestFiles(glob("func/PluginsMediawiki/*Test.php"));
+// $suite->addTestFiles(glob("func/PluginsMoinMoin/*Test.php"));
+ $suite->addTestFiles(glob("func/PluginsOnlineHelp/*Test.php"));
++// $suite->addTestFiles(glob("func/PluginsScmGit/*Test.php"));
+// $suite->addTestFiles(glob("func/PluginsSvnTracker/*Test.php"));
+ $suite->addTestFiles(glob("func/RBAC/*Test.php"));
+ $suite->addTestFiles(glob("func/Surveys/*Test.php"));
+ $suite->addTestFiles(glob("func/Search/*Test.php"));
+
+ return $suite;
+ }
+}
+
+if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
+ AllTests::main();
+}
+?>
--- /dev/null
- $this->cron("cronjobs/create_scm_repos.php");
+ <?php
+ /*
+ * Copyright (C) 2012 Roland Mas
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+ require_once dirname(dirname(__FILE__)).'/Testing/SeleniumGforge.php';
+
+ class ScmGitTest extends FForge_SeleniumTestCase
+ {
+ function testScmGit()
+ {
+ $this->activatePlugin('scmgit');
+ $this->populateStandardTemplate('empty');
+ $this->init();
+
+ $this->open(ROOT);
+ $this->clickAndWait("link=ProjectA");
+ $this->clickAndWait("link=Admin");
+ $this->clickAndWait("link=Tools");
+ $this->clickAndWait("link=Source Code Admin");
+ $this->click("//input[@name='scmradio' and @value='scmgit']");
+ $this->clickAndWait("submit");
+
+ // Run the cronjob to create repositories
- $this->cron("cronjobs/create_scm_repos.php");
++ $this->cron("create_scm_repos.php");
+
+ $this->open(ROOT);
+ $this->clickAndWait("link=ProjectA");
+ $this->clickAndWait("link=SCM");
+
+ $this->assertTextPresent("Anonymous Git Access");
+ $this->clickAndWait("link=Request a personal repository");
+ $this->assertTextPresent("You have now requested a personal Git repository");
+
+ // Run the cronjob to create repositories
++ $this->cron("create_scm_repos.php");
+
+ $this->clickAndWait("link=SCM");
+ $this->assertTextPresent("Access to your personal repository");
+ }
+ }
+ ?>