cvs: pear-core /tests generatetestPackage.xml.php.inc

From: Date: Tue, 22 Feb 2005 22:28:07 +0000
Subject: cvs: pear-core /tests generatetestPackage.xml.php.inc
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-29685@lists.php.net to get a copy of this message
cellog Tue Feb 22 17:28:07 2005 EDT Added files: /pear-core/tests generatetestPackage.xml.php.inc Log: PEAR_PackageFileManager script to generate package.xml for PEAR tests http://cvs.php.net/co.php/pear-core/tests/generatetestPackage.xml.php.inc?r=1.1&p=1 Index: pear-core/tests/generatetestPackage.xml.php.inc +++ pear-core/tests/generatetestPackage.xml.php.inc <?php /** * Generate the test package.xml for PEAR's tests * @package PEAR_PackageFileManager */ /** * Include the package file manager */ require_once('PEAR/PackageFileManager.php'); PEAR::setErrorHandling(PEAR_ERROR_DIE); $test = new PEAR_PackageFileManager; if (PEAR::isError($test)) { echo $test->getMessage(); exit; } $test->setOptions( array('baseinstalldir' => 'PEAR', 'version' => '1.4.0a1', 'packagedirectory' => dirname(__FILE__), 'state' => 'alpha', 'filelistgenerator' => 'cvs', 'roles' => array('*' => 'test'), 'notes' => 'Tests for PEAR 1.4.0a1', 'simpleoutput' => true, 'packagefile' => 'package-PEARtests.xml', 'cleardependencies' => true, 'maintainers' => array(), 'ignore' => array('generatetestPackage.xml.php.inc'))); $test->addMaintainer('cellog', 'lead', 'Greg Beaver', 'cellog@php.net'); $test->addDependency('PEAR', '1.4.0a1'); $test->addDependency('Text_Diff', false, 'has', 'pkg', true); if (isset($_GET['make'])) { $e = $test->writePackageFile(); } else { $e = $test->debugPackageFile(); } if (PEAR::isError($e)) { echo $e->getMessage(); } if (!isset($_GET['make'])) { echo '<a href="' . $_SERVER['PHP_SELF'] . '?make=1">Make this file</a>'; } ?>

« previous php.pear.cvs (#29685) next »