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, 6.0 has been updated
via 39df32ed9022a5f6d5ee7df841e738c83cca4f8b (commit)
from a4a98ca99e7a5464be347d447fdde97c69fcf260 (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=39df32ed9022a5f6d5ee7df841e738c83cca4f8b
commit 39df32ed9022a5f6d5ee7df841e738c83cca4f8b
Author: Sylvain Beucler <[email protected]>
Date: Tue Jul 7 17:22:48 2015 +0200
testsuite: remove incomplete db_reload.php
diff --git a/tests/func/db_reload.php b/tests/func/db_reload.php
deleted file mode 100755
index 4a86c17..0000000
--- a/tests/func/db_reload.php
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-/*
- * Alternative to db_reload.sh with ProjectA caching
- *
- * Copyright (C) 2008 Alain Peyrat <[email protected]>
- * Copyright (C) 2009 Alain Peyrat, Alcatel-Lucent
- *
- * 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.
- */
-
-/*
- * Standard Alcatel-Lucent disclaimer for contributing to open source
- *
- * "The test suite ("Contribution") has not been tested and/or
- * validated for release as or in products, combinations with products or
- * other commercial use. Any use of the Contribution is entirely made at
- * the user's own responsibility and the user can not rely on any features,
- * functionalities or performances Alcatel-Lucent has attributed to the
- * Contribution.
- *
- * THE CONTRIBUTION BY ALCATEL-LUCENT IS PROVIDED AS IS, WITHOUT WARRANTY
- * OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPLIANCE,
- * NON-INTERFERENCE AND/OR INTERWORKING WITH THE SOFTWARE TO WHICH THE
- * CONTRIBUTION HAS BEEN MADE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
- * ALCATEL-LUCENT BE LIABLE FOR ANY DAMAGES OR OTHER LIABLITY, WHETHER IN
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- * CONTRIBUTION OR THE USE OR OTHER DEALINGS IN THE CONTRIBUTION, WHETHER
- * TOGETHER WITH THE SOFTWARE TO WHICH THE CONTRIBUTION RELATES OR ON A STAND
- * ALONE BASIS."
- */
-
-/*
- * Create a initial database suitable for running the tests.
- * The initial database is made of:
- * The initial database given by the package.
- * + An admin account (login: admin, password: myadmin)
- * + A simple project (projectA)
- */
-
-ini_set('memory_limit', '16M');
-
-$config = getenv('CONFIG_PHP') ? getenv('CONFIG_PHP'):
dirname(__FILE__).'/config.php';
-require_once $config;
-
-if ( !CONFIGURED ) {
- print "ERROR: File 'config.php' is not correctly configured,
aborting.\n";
- exit(1);
-}
-
-// Search location of fusionforge main directory (gforge).
-$forge_root = dirname(dirname(dirname(__FILE__))).'/src';
-if (!file_exists($forge_root)) {
- $forge_root = dirname(dirname(dirname(__FILE__))).'/gforge';
- if (!file_exists($forge_root)) {
- $forge_root = '/usr/share/gforge';
- if (!file_exists($forge_root)) {
- $forge_root = '/opt/gforge';
- if (!file_exists($forge_root)) {
- print "ERROR: Unable to guess location of
fusionforge main directory (gforge), aborting.\n";
- exit(1);
- }
- }
- }
-}
-
-if (!function_exists('pg_connect')) {
- print "ERROR: Missing pgsql on PHP to run tests on PostgreSQL,
aborting.\n";
- exit;
-}
-
-system("echo \"DROP SCHEMA public CASCADE;CREATE SCHEMA public;\" | psql -q
-Upostgres ".DB_NAME." > /var/log/fusionforge-init.log 2>&1");
-system("echo \"GRANT ALL ON SCHEMA public TO ".DB_USER.";\" | psql -q
-Upostgres ".DB_NAME." >> /var/log/fusionforge-init.log 2>&1");
-
-system("psql -q -U".DB_USER." ".DB_NAME." -f $forge_root/db/gforge.sql >>
/var/log/fusionforge-init.log 2>&1");
-system("php $forge_root/db/upgrade-db.php >> /var/log/gforge-upgrade-db.log
2>&1");
-
-$session_hash = '000TESTSUITE000';
-
-require_once $forge_root.'/www/env.inc.php';
-require_once $gfcommon.'include/pre.php';
-
-$files = glob(dirname(__FILE__)."/sql/*.sql");
-foreach ($files as $filename) {
- system("psql -q -U".DB_USER." ".DB_NAME." -f $filename 2>&1 | grep -v
': NOTICE: ' | egrep -v '^(NOTICE|DETAIL:)' | egrep -v
'^(Creating|Applying|Initializing) '");
-}
-
-system("echo \"VACUUM FULL ANALYZE;\" | psql -q -Upostgres ".DB_NAME);
-
-//
-// Create the initial admin account and activate it directly.
-//
-$user = new GFUser();
-
-$user_id = $user->create(FORGE_ADMIN_USERNAME, 'Forge', 'Admin',
FORGE_ADMIN_PASSWORD, FORGE_ADMIN_PASSWORD,
- '[email protected]', 1, 1, 1,'GMT','',0,1,'',
'','','','','','US',false);
-
-if (!$user_id) {
- print "ERROR: Creating user:
".$user->getErrorMessage().':'.db_error()."\n";
- exit(1);
-}
-
-$user->setStatus('A');
-
-if (!$user_id) {
- print "ERROR: Error creating admin account, no id returned,
aborting.\n";
-} else {
- // Register the user in master group to get full admin rights.
- $res = db_query_params ('INSERT INTO user_group
(user_id,group_id,admin_flags, role_id) VALUES ($1,1,$2,17)',
- array ($user_id,
- 'A'));
-
- $res = db_query_params ('INSERT INTO pfo_user_role VALUES ($1, 3)',
- array ($user_id)) ;
-}
-----------------------------------------------------------------------
Summary of changes:
tests/func/db_reload.php | 129 -----------------------------------------------
1 file changed, 129 deletions(-)
delete mode 100755 tests/func/db_reload.php
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits