cvs: pear-core /tests download_test_classes.php.inc phpt_test.php.inc /tests/PEAR_Installer setup.php.inc test_install_binary.phpt
/tests/PEAR_PackageFile/v2 setup.php.inc test_installBinary_linux.phpt test_installBinary_win.phpt /tests/PEAR_PackageFile/v2/test_installBinary
foo.dll foo_linux-1.1.0.tgz foo_linuxpackage.xml foo_win-1.1.0.tgz foo_winpackage.xml grobchannel.xml package.xml

From: Date: Mon, 15 Nov 2004 22:49:47 +0000
Subject: cvs: pear-core /tests download_test_classes.php.inc phpt_test.php.inc /tests/PEAR_Installer setup.php.inc test_install_binary.phpt
/tests/PEAR_PackageFile/v2 setup.php.inc test_installBinary_linux.phpt test_installBinary_win.phpt /tests/PEAR_PackageFile/v2/test_installBinary
foo.dll foo_linux-1.1.0.tgz foo_linuxpackage.xml foo_win-1.1.0.tgz foo_winpackage.xml grobchannel.xml package.xml
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-25995@lists.php.net to get a copy of this message
cellog Mon Nov 15 17:49:47 2004 EDT Added files: /pear-core/tests/PEAR_PackageFile/v2 test_installBinary_linux.phpt test_installBinary_win.phpt /pear-core/tests/PEAR_PackageFile/v2/test_installBinary foo.dll foo_linux-1.1.0.tgz foo_linuxpackage.xml foo_win-1.1.0.tgz foo_winpackage.xml grobchannel.xml package.xml Modified files: /pear-core/tests/PEAR_Installer setup.php.inc test_install_binary.phpt /pear-core/tests/PEAR_PackageFile/v2 setup.php.inc /pear-core/tests download_test_classes.php.inc phpt_test.php.inc Log: complete test for installation of binary package add assertFileExists() to unit-testing thingo fix getDependency2Object for test_PEAR_Downloader

http://cvs.php.net/diff.php/pear-core/tests/PEAR_Installer/setup.php.inc?r1=1.4&r2=1.5&ty=u Index: pear-core/tests/PEAR_Installer/setup.php.inc diff -u pear-core/tests/PEAR_Installer/setup.php.inc:1.4 pear-core/tests/PEAR_Installer/setup.php.inc:1.5 --- pear-core/tests/PEAR_Installer/setup.php.inc:1.4 Fri Nov 12 22:33:40 2004 +++ pear-core/tests/PEAR_Installer/setup.php.inc Mon Nov 15 17:49:44 2004 @@ -62,7 +62,7 @@ mkdir($temp_path . DIRECTORY_SEPARATOR . 'cache'); } // make the fake configuration - we'll use one of these and it should work -$config = serialize(array('master_server' => $server, +$config = serialize(array( 'preferred_state' => 'stable', 'cache_dir' => $temp_path . DIRECTORY_SEPARATOR . 'cache', 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', http://cvs.php.net/diff.php/pear-core/tests/PEAR_Installer/test_install_binary.phpt?r1=1.4&r2=1.5&ty=u Index: pear-core/tests/PEAR_Installer/test_install_binary.phpt diff -u pear-core/tests/PEAR_Installer/test_install_binary.phpt:1.4 pear-core/tests/PEAR_Installer/test_install_binary.phpt:1.5 --- pear-core/tests/PEAR_Installer/test_install_binary.phpt:1.4 Mon Nov 15 13:30:08 2004 +++ pear-core/tests/PEAR_Installer/test_install_binary.phpt Mon Nov 15 17:49:44 2004 @@ -164,8 +164,8 @@ 10 => array ( 0 => 3, - 1 => 'adding to transaction: installed_as foo.dll ' . $ext_dir . DIRECTORY_SEPARATOR . 'foo.dll ' - . $ext_dir . ' ' . DIRECTORY_SEPARATOR + 1 => 'adding to transaction: installed_as foo.dll ' . $ext_dir . DIRECTORY_SEPARATOR . + 'foo.dll ' . $ext_dir . ' ' . DIRECTORY_SEPARATOR ), 11 => array ( http://cvs.php.net/diff.php/pear-core/tests/PEAR_PackageFile/v2/setup.php.inc?r1=1.4&r2=1.5&ty=u Index: pear-core/tests/PEAR_PackageFile/v2/setup.php.inc diff -u pear-core/tests/PEAR_PackageFile/v2/setup.php.inc:1.4 pear-core/tests/PEAR_PackageFile/v2/setup.php.inc:1.5 --- pear-core/tests/PEAR_PackageFile/v2/setup.php.inc:1.4 Sun Nov 14 20:59:17 2004 +++ pear-core/tests/PEAR_PackageFile/v2/setup.php.inc Mon Nov 15 17:49:46 2004 @@ -30,12 +30,48 @@ register_shutdown_function('cleanall'); $statedir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'registry_tester'; cleanall($statedir); -mkdir($statedir); -$config = serialize( -array( - 'php_dir' => $statedir . DIRECTORY_SEPARATOR . 'php', -) -); +$temp_path = $statedir; +if (!is_dir($temp_path)) { + mkdir($temp_path); +} +if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'php')) { + mkdir($temp_path . DIRECTORY_SEPARATOR . 'php'); +} +if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'data')) { + mkdir($temp_path . DIRECTORY_SEPARATOR . 'data'); +} +if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'doc')) { + mkdir($temp_path . DIRECTORY_SEPARATOR . 'doc'); +} +if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'test')) { + mkdir($temp_path . DIRECTORY_SEPARATOR . 'test'); +} +if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'ext')) { + mkdir($temp_path . DIRECTORY_SEPARATOR . 'ext'); + $ext_dir = $temp_path . DIRECTORY_SEPARATOR . 'ext'; +} +if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'script')) { + mkdir($temp_path . DIRECTORY_SEPARATOR . 'script'); +} +if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'tmp')) { + mkdir($temp_path . DIRECTORY_SEPARATOR . 'tmp'); +} +if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'bin')) { + mkdir($temp_path . DIRECTORY_SEPARATOR . 'bin'); +} +if (!is_dir($temp_path . DIRECTORY_SEPARATOR . 'cache')) { + mkdir($temp_path . DIRECTORY_SEPARATOR . 'cache'); +} +// make the fake configuration - we'll use one of these and it should work +$config = serialize(array( + 'preferred_state' => 'stable', + 'cache_dir' => $temp_path . DIRECTORY_SEPARATOR . 'cache', + 'php_dir' => $temp_path . DIRECTORY_SEPARATOR . 'php', + 'ext_dir' => $temp_path . DIRECTORY_SEPARATOR . 'ext', + 'data_dir' => $temp_path . DIRECTORY_SEPARATOR . 'data', + 'doc_dir' => $temp_path . DIRECTORY_SEPARATOR . 'doc', + 'test_dir' => $temp_path . DIRECTORY_SEPARATOR . 'test', + 'bin_dir' => $temp_path . DIRECTORY_SEPARATOR . 'bin',)); $fp = fopen($statedir . DIRECTORY_SEPARATOR . 'pear.ini', 'wb'); fwrite($fp, $config, strlen($config)); fclose($fp); http://cvs.php.net/diff.php/pear-core/tests/download_test_classes.php.inc?r1=1.12&r2=1.13&ty=u Index: pear-core/tests/download_test_classes.php.inc diff -u pear-core/tests/download_test_classes.php.inc:1.12 pear-core/tests/download_test_classes.php.inc:1.13 --- pear-core/tests/download_test_classes.php.inc:1.12 Mon Nov 15 13:12:40 2004 +++ pear-core/tests/download_test_classes.php.inc Mon Nov 15 17:49:46 2004 @@ -448,7 +448,7 @@ */ function &getDependency2Object(&$c, $i, $p, $s) { - $z = &new PEAR_Dependency2($c, $i, $p, $s); + $z = &test_PEAR_Dependency2::singleton($c, $i, $p, $s); return $z; } http://cvs.php.net/diff.php/pear-core/tests/phpt_test.php.inc?r1=1.4&r2=1.5&ty=u Index: pear-core/tests/phpt_test.php.inc diff -u pear-core/tests/phpt_test.php.inc:1.4 pear-core/tests/phpt_test.php.inc:1.5 --- pear-core/tests/phpt_test.php.inc:1.4 Tue Oct 12 15:13:45 2004 +++ pear-core/tests/phpt_test.php.inc Mon Nov 15 17:49:46 2004 @@ -245,6 +245,16 @@ return true; } + function assertFileExists($fname, $message) + { + if (!@file_exists($fname)) { + $this->_failTest(debug_backtrace(), $message); + echo "File '$fname' does not exist, and should\n"; + return false; + } + return true; + } + function assertRegEquals($dump, &$reg, $message) { $actualdump = var_export(trim($this->dumpReg($reg)), true); http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile/v2/test_installBinary_linux.phpt?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile/v2/test_installBinary_linux.phpt +++ pear-core/tests/PEAR_PackageFile/v2/test_installBinary_linux.phpt --TEST-- PEAR_PackageFile_Parser_v2->installBinary() --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --FILE-- <?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc'; require_once 'PEAR/ChannelFile.php'; $pathtopackagexml = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test_installBinary'. DIRECTORY_SEPARATOR . 'foo_win-1.1.0.tgz'; $pathtopackagexml2 = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test_installBinary'. DIRECTORY_SEPARATOR . 'foo_linux-1.1.0.tgz'; $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/foo_win-1.1.0.tgz', $pathtopackagexml); $GLOBALS['pearweb']->addXmlrpcConfig('grob', 'package.getDownloadURL', array(array('channel' => 'grob', 'package' => 'foo_win', ), 'stable'), array('version' => '1.1.0', 'info' => array( 'channel' => 'grob', 'package' => 'foo_win', 'license' => 'PHP License', 'summary' => 'Test Package', 'description' => 'Test Package', 'releasedate' => '2003-12-06 00:26:42', 'state' => 'stable', 'apiversion' => '1.0', 'xsdversion' => '2.0', 'deps' => array( 'required' => array( 'php' => array( 'min' => '4.2', 'max' => '6.0.0', ), 'pearinstaller' => array( 'min' => '1.4.0dev13', ), 'os' => array( 'name' => 'windows' ), ), ), ), 'url' => 'http://www.example.com/foo_win-1.1.0')); $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/foo_linux-1.1.0.tgz', $pathtopackagexml2); $GLOBALS['pearweb']->addXmlrpcConfig('grob', 'package.getDownloadURL', array(array('channel' => 'grob', 'package' => 'foo_linux', ), 'stable'), array('version' => '1.1.0', 'info' => array( 'channel' => 'grob', 'package' => 'foo_linux', 'license' => 'PHP License', 'summary' => 'Test Package', 'description' => 'Test Package', 'releasedate' => '2003-12-06 00:26:42', 'state' => 'stable', 'apiversion' => '1.0', 'xsdversion' => '2.0', 'deps' => array( 'required' => array( 'php' => array( 'min' => '4.2', 'max' => '6.0.0', ), 'pearinstaller' => array( 'min' => '1.4.0dev13', ), 'os' => array( 'name' => 'linux' ), ), ), ), 'url' => 'http://www.example.com/foo_linux-1.1.0')); $_test_dep->setPHPVersion('4.3.9'); $_test_dep->setPEARVersion('1.4.0a1'); $cf = new PEAR_ChannelFile; $cf->setName('grob'); $cf->setServer('grob'); $cf->setSummary('grob'); $cf->setDefaultPEARProtocols(); $reg = &$config->getRegistry(); $reg->addChannel($cf); $phpunit->assertNoErrors('channel add'); $a = new test_PEAR_Installer($fakelog); $pf = new test_PEAR_PackageFile_v2; $pf->setConfig($config); $pf->setPackageType('extsrc'); $pf->addBinarypackage('foo_win'); $pf->setPackage('foo'); $pf->setChannel('grob'); $pf->setAPIStability('stable'); $pf->setReleaseStability('stable'); $pf->setAPIVersion('1.0.0'); $pf->setReleaseVersion('1.0.0'); $pf->setDate('2004-11-12'); $pf->setDescription('foo source'); $pf->setSummary('foo'); $pf->setLicense('PHP License'); $pf->setLogger($fakelog); $pf->clearContents(); $pf->addFile('', 'foo.grop', array('role' => 'src')); $pf->addBinarypackage('foo_linux'); $pf->addMaintainer('lead', 'cellog', 'Greg Beaver', 'cellog@php.net'); $pf->setNotes('blah'); $pf->setPearinstallerDep('1.4.0a1'); $pf->setPhpDep('4.2.0', '5.0.0'); $pf->setProvidesExtension('foo'); $phpunit->assertNotFalse($pf->validate(), 'first pf'); $dp = &newFakeDownloaderPackage(array()); $dp->setPackageFile($pf); $b = array(&$dp); $a->setDownloadedPackages($b); $_test_dep->setOs('linux'); $pf->installBinary($a); $phpunit->assertNoErrors('post-install'); $dld = $last_dl->getDownloadDir(); $cleandld = str_replace('\\\\', '\\', $last_dl->getDownloadDir()); $phpunit->assertEquals(array ( 0 => array ( 0 => 0, 1 => 'Attempting to download binary version of extension "foo"', ), 1 => array ( 0 => 0, 1 => 'Can only install channel://grob/foo_win-1.1.0 on Windows', ), 2 => array ( 0 => 3, 1 => '+ tmp dir created at ' . $dld, ), 3 => array ( 0 => 1, 1 => 'downloading foo_linux-1.1.0.tgz ...', ), 4 => array ( 0 => 1, 1 => 'Starting to download foo_linux-1.1.0.tgz (725 bytes)', ), 5 => array ( 0 => 1, 1 => '.', ), 6 => array ( 0 => 1, 1 => '...done: 725 bytes', ), 7 => array ( 0 => 3, 1 => '+ cp ' . $cleandld . DIRECTORY_SEPARATOR . 'foo_linux-1.1.0' . DIRECTORY_SEPARATOR . 'foo.so ' . $ext_dir . DIRECTORY_SEPARATOR . '.tmpfoo.so', ), 8 => array ( 0 => 2, 1 => 'md5sum ok: ' . $ext_dir . DIRECTORY_SEPARATOR . 'foo.so', ), 9 => array ( 0 => 3, 1 => 'adding to transaction: rename ' . $ext_dir . DIRECTORY_SEPARATOR . '.tmpfoo.so ' . $ext_dir . DIRECTORY_SEPARATOR . 'foo.so 1', ), 10 => array ( 0 => 3, 1 => 'adding to transaction: installed_as foo.so ' . $ext_dir . DIRECTORY_SEPARATOR . 'foo.so ' . $ext_dir . ' ' . DIRECTORY_SEPARATOR ), 11 => array ( 0 => 2, 1 => 'about to commit 2 file operations', ), 12 => array ( 0 => 3, 1 => '+ mv ' . $ext_dir . DIRECTORY_SEPARATOR . '.tmpfoo.so ' . $ext_dir . DIRECTORY_SEPARATOR . 'foo.so', ), 13 => array ( 0 => 2, 1 => 'successfully committed 2 file operations', ), 14 => array ( 0 => 0, 1 => 'Download and install of binary extension "channel://grob/foo_linux" successful', ), ), $fakelog->getLog(), 'log'); $phpunit->assertEquals(array ( 0 => array ( 0 => 'setup', 1 => 'self', ), 1 => array ( 0 => 'saveas', 1 => 'foo_linux-1.1.0.tgz', ), 2 => array ( 0 => 'start', 1 => array ( 0 => 'foo_linux-1.1.0.tgz', 1 => '725', ), ), 3 => array ( 0 => 'bytesread', 1 => 725, ), 4 => array ( 0 => 'done', 1 => 725, ), ), $fakelog->getDownload(), 'log'); $phpunit->assertFileExists($ext_dir . DIRECTORY_SEPARATOR . 'foo.so', 'not installed'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile/v2/test_installBinary_win.phpt?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile/v2/test_installBinary_win.phpt +++ pear-core/tests/PEAR_PackageFile/v2/test_installBinary_win.phpt --TEST-- PEAR_PackageFile_Parser_v2->installBinary() --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --FILE-- <?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc'; require_once 'PEAR/ChannelFile.php'; $pathtopackagexml = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test_installBinary'. DIRECTORY_SEPARATOR . 'foo_win-1.1.0.tgz'; $pathtopackagexml2 = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test_installBinary'. DIRECTORY_SEPARATOR . 'foo_linux-1.1.0.tgz'; $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/foo_win-1.1.0.tgz', $pathtopackagexml); $GLOBALS['pearweb']->addXmlrpcConfig('grob', 'package.getDownloadURL', array(array('channel' => 'grob', 'package' => 'foo_win', ), 'stable'), array('version' => '1.1.0', 'info' => array( 'channel' => 'grob', 'package' => 'foo_win', 'license' => 'PHP License', 'summary' => 'Test Package', 'description' => 'Test Package', 'releasedate' => '2003-12-06 00:26:42', 'state' => 'stable', 'apiversion' => '1.0', 'xsdversion' => '2.0', 'deps' => array( 'required' => array( 'php' => array( 'min' => '4.2', 'max' => '6.0.0', ), 'pearinstaller' => array( 'min' => '1.4.0dev13', ), 'os' => array( 'name' => 'windows' ), ), ), ), 'url' => 'http://www.example.com/foo_win-1.1.0')); $GLOBALS['pearweb']->addHtmlConfig('http://www.example.com/foo_linux-1.1.0.tgz', $pathtopackagexml); $GLOBALS['pearweb']->addXmlrpcConfig('grob', 'package.getDownloadURL', array(array('channel' => 'grob', 'package' => 'foo_linux', ), 'stable'), array('version' => '1.1.0', 'info' => array( 'channel' => 'pear.php.net', 'package' => 'foo_linux', 'license' => 'PHP License', 'summary' => 'Test Package', 'description' => 'Test Package', 'releasedate' => '2003-12-06 00:26:42', 'state' => 'stable', 'apiversion' => '1.0', 'xsdversion' => '2.0', 'deps' => array( 'required' => array( 'php' => array( 'min' => '4.2', 'max' => '6.0.0', ), 'pearinstaller' => array( 'min' => '1.4.0dev13', ), 'os' => array( 'name' => 'windows' ), ), ), ), 'url' => 'http://www.example.com/foo_linux-1.1.0')); $_test_dep->setPHPVersion('4.3.9'); $_test_dep->setPEARVersion('1.4.0a1'); $cf = new PEAR_ChannelFile; $cf->setName('grob'); $cf->setServer('grob'); $cf->setSummary('grob'); $cf->setDefaultPEARProtocols(); $reg = &$config->getRegistry(); $reg->addChannel($cf); $phpunit->assertNoErrors('channel add'); $a = new test_PEAR_Installer($fakelog); $pf = new test_PEAR_PackageFile_v2; $pf->setConfig($config); $pf->setPackageType('extsrc'); $pf->addBinarypackage('foo_win'); $pf->setPackage('foo'); $pf->setChannel('grob'); $pf->setAPIStability('stable'); $pf->setReleaseStability('stable'); $pf->setAPIVersion('1.0.0'); $pf->setReleaseVersion('1.0.0'); $pf->setDate('2004-11-12'); $pf->setDescription('foo source'); $pf->setSummary('foo'); $pf->setLicense('PHP License'); $pf->setLogger($fakelog); $pf->clearContents(); $pf->addFile('', 'foo.grop', array('role' => 'src')); $pf->addBinarypackage('foo_linux'); $pf->addMaintainer('lead', 'cellog', 'Greg Beaver', 'cellog@php.net'); $pf->setNotes('blah'); $pf->setPearinstallerDep('1.4.0a1'); $pf->setPhpDep('4.2.0', '5.0.0'); $pf->setProvidesExtension('foo'); $phpunit->assertNotFalse($pf->validate(), 'first pf'); $dp = &newFakeDownloaderPackage(array()); $dp->setPackageFile($pf); $b = array(&$dp); $a->setDownloadedPackages($b); $_test_dep->setOs('windows'); $pf->installBinary($a); $phpunit->assertNoErrors('post-install'); $dld = $last_dl->getDownloadDir(); $cleandld = str_replace('\\\\', '\\', $last_dl->getDownloadDir()); $phpunit->assertEquals(array ( 0 => array ( 0 => 0, 1 => 'Attempting to download binary version of extension "foo"', ), 1 => array ( 0 => 3, 1 => '+ tmp dir created at ' . $dld, ), 2 => array ( 0 => 1, 1 => 'downloading foo_win-1.1.0.tgz ...', ), 3 => array ( 0 => 1, 1 => 'Starting to download foo_win-1.1.0.tgz (731 bytes)', ), 4 => array ( 0 => 1, 1 => '.', ), 5 => array ( 0 => 1, 1 => '...done: 731 bytes', ), 6 => array ( 0 => 3, 1 => '+ cp ' . $cleandld . DIRECTORY_SEPARATOR . 'foo_win-1.1.0' . DIRECTORY_SEPARATOR . 'foo.dll ' . $ext_dir . DIRECTORY_SEPARATOR . '.tmpfoo.dll', ), 7 => array ( 0 => 2, 1 => 'md5sum ok: ' . $ext_dir . DIRECTORY_SEPARATOR . 'foo.dll', ), 8 => array ( 0 => 3, 1 => 'adding to transaction: rename ' . $ext_dir . DIRECTORY_SEPARATOR . '.tmpfoo.dll ' . $ext_dir . DIRECTORY_SEPARATOR . 'foo.dll 1', ), 9 => array ( 0 => 3, 1 => 'adding to transaction: installed_as foo.dll ' . $ext_dir . DIRECTORY_SEPARATOR . 'foo.dll ' . $ext_dir . ' ' . DIRECTORY_SEPARATOR ), 10 => array ( 0 => 2, 1 => 'about to commit 2 file operations', ), 11 => array ( 0 => 3, 1 => '+ mv ' . $ext_dir . DIRECTORY_SEPARATOR . '.tmpfoo.dll ' . $ext_dir . DIRECTORY_SEPARATOR . 'foo.dll', ), 12 => array ( 0 => 2, 1 => 'successfully committed 2 file operations', ), 13 => array ( 0 => 0, 1 => 'Download and install of binary extension "channel://grob/foo_win" successful', ), ), $fakelog->getLog(), 'log'); $phpunit->assertEquals(array ( 0 => array ( 0 => 'setup', 1 => 'self', ), 1 => array ( 0 => 'saveas', 1 => 'foo_win-1.1.0.tgz', ), 2 => array ( 0 => 'start', 1 => array ( 0 => 'foo_win-1.1.0.tgz', 1 => '731', ), ), 3 => array ( 0 => 'bytesread', 1 => 731, ), 4 => array ( 0 => 'done', 1 => 731, ), ), $fakelog->getDownload(), 'log'); $phpunit->assertFileExists($ext_dir . DIRECTORY_SEPARATOR . 'foo.dll', 'not installed'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile/v2/test_installBinary/foo.dll?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile/v2/test_installBinary/foo.dll +++ pear-core/tests/PEAR_PackageFile/v2/test_installBinary/foo.dll 2 http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile/v2/test_installBinary/foo_linuxpackage.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile/v2/test_installBinary/foo_linuxpackage.xml +++ pear-core/tests/PEAR_PackageFile/v2/test_installBinary/foo_linuxpackage.xml <?xml version="1.0"?> <package version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>foo_linux</name> <channel>grob</channel> <summary>foo binary</summary> <description>foo binary for windows</description> <lead> <name>Greg Beaver</name> <user>cellog</user> <email>cellog@php.net</email> <active>yes</active> </lead> <date>2004-10-01</date> <version> <release>1.1.0</release> <api>1.1.0</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <license>PHP License</license> <notes>foo_linux</notes> <contents> <dir name="/"> <file name="foo.so" role="ext" /> </dir> <!-- / --> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0dev13</min> </pearinstaller> <os> <name>linux</name> </os> </required> </dependencies> <providesextension>foo</providesextension> <srcpackage>foo</srcpackage> <extbinrelease> <installconditions/> <filelist/> </extbinrelease> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile/v2/test_installBinary/foo_winpackage.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile/v2/test_installBinary/foo_winpackage.xml +++ pear-core/tests/PEAR_PackageFile/v2/test_installBinary/foo_winpackage.xml <?xml version="1.0"?> <package version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>foo_win</name> <channel>grob</channel> <summary>foo binary</summary> <description>foo binary for windows</description> <lead> <name>Greg Beaver</name> <user>cellog</user> <email>cellog@php.net</email> <active>yes</active> </lead> <date>2004-10-01</date> <version> <release>1.1.0</release> <api>1.1.0</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <license>PHP License</license> <notes>foo_win</notes> <contents> <dir name="/"> <file name="foo.dll" role="ext" /> </dir> <!-- / --> </contents> <dependencies> <required> <php> <min>4.3.0</min> <max>6.0.0</max> </php> <pearinstaller> <min>1.4.0dev13</min> </pearinstaller> <os> <name>windows</name> </os> </required> </dependencies> <providesextension>foo</providesextension> <srcpackage>foo</srcpackage> <extbinrelease> <installconditions/> <filelist/> </extbinrelease> </package> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile/v2/test_installBinary/grobchannel.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile/v2/test_installBinary/grobchannel.xml +++ pear-core/tests/PEAR_PackageFile/v2/test_installBinary/grobchannel.xml <?xml version="1.0" encoding="ISO-8859-1"?> <channel version="1.0" xmlns="http://pear.php.net/channel-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/channel-1.0 http://pear.php.net/dtd/channel-1.0.xsd"> <name>grob</name> <summary>grob</summary> <servers> <primary host="grob"> <xmlrpc> <function version="1.0">logintest</function> <function version="1.0">package.listLatestReleases</function> <function version="1.0">package.listAll</function> <function version="1.0">package.info</function> <function version="1.0">package.getDownloadURL</function> <function version="1.0">channel.update</function> <function version="1.0">channel.listAll</function> </xmlrpc> </primary> </servers> </channel> http://cvs.php.net/co.php/pear-core/tests/PEAR_PackageFile/v2/test_installBinary/package.xml?r=1.1&p=1 Index: pear-core/tests/PEAR_PackageFile/v2/test_installBinary/package.xml +++ pear-core/tests/PEAR_PackageFile/v2/test_installBinary/package.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0"> <package version="1.0"> <name>Console_Getopt</name> <summary>Command-line option parser</summary> <description>This is a PHP implementation of &quot;getopt&quot; supporting both short and long options.</description> <maintainers> <maintainer> <user>andrei</user> <name>Andrei Zmievski</name> <email>andrei@php.net</email> <role>lead</role> </maintainer> <maintainer> <user>ssb</user> <name>Stig Bakken</name> <email>stig@php.net</email> <role>developer</role> </maintainer> </maintainers> <release> <version>1.2</version> <date>2003-12-11</date> <license>PHP License</license> <state>stable</state> <notes>Fix to preserve BC with 1.0 and allow correct behaviour for new users</notes> <provides type="class" name="Console_Getopt" /> <provides type="function" name="Console_Getopt::getopt2" /> <provides type="function" name="Console_Getopt::getopt" /> <provides type="function" name="Console_Getopt::doGetopt" /> <provides type="function" name="Console_Getopt::readPHPArgv" /> <filelist> <file role="php" md5sum="add0781a1cae0b3daf5e8521b8a954cc" name="Console/Getopt.php"/> </filelist> </release> <changelog> <release> <version>1.0</version> <date>2002-09-13</date> <state>stable</state> <notes>Stable release </notes> </release> <release> <version>0.11</version> <date>2002-05-26</date> <state>beta</state> <notes>POSIX getopt compatibility fix: treat first element of args array as command name </notes> </release> <release> <version>0.10</version> <date>2002-05-12</date> <state>beta</state> <notes>Packaging fix </notes> </release> <release> <version>0.9</version> <date>2002-05-12</date> <state>beta</state> <notes>Initial release </notes> </release> </changelog> </package>
« previous php.pear.cvs (#25995) next »