For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > November 2007 > Re: [PEAR-QA] Re: testing of PEAR 1.7.0 (release due on Dec. 1, 2007)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR-QA] Re: testing of PEAR 1.7.0 (release due on Dec. 1, 2007)
Chuck Burgess

2007-11-28, 10:02 pm

Forgot to add the details of these three failures... given my own (lack of)
knowledgeable of the PEAR code, the only observation I can make is that it
looks like all three failures could be due to a list of packages being in an
unexpected order.
CRB
(/me hopes this isn't too much for one email)

On Nov 27, 2007 8:41 PM, Chuck Burgess <demon.gene@gmail.com> wrote:

> TOTAL TIME: 02:42
> 671 PASSED TESTS
> 19 SKIPPED TESTS
> 3 FAILED TESTS:
> /home/ashnazg/MyDev/workspace/pear-core/tests/PEAR_Registry/api1_0/test_listPackages.phpt
>



001- tests done
001+ Test Failure: "list packages after adding 2 and 3"
002+ in
/home/ashnazg/MyDev/workspace/pear-core/tests/PEAR_Registry/api1_0/test_listPackages.php
line 29
003+ Expecting: array ( 0 => 'pkg1', 1 => 'pkg2', 2 => 'pkg3', )
009+ Received: array ( 0 => 'pkg1', 1 => 'pkg3', 2 => 'pkg2', )

015+ Test Failure: "list packages after adding 2 and 3, new object"
016+ in
/home/ashnazg/MyDev/workspace/pear-core/tests/PEAR_Registry/api1_0/test_listPackages.php
line 35
017+ Expecting: array ( 0 => 'pkg1', 1 => 'pkg2', 2 => 'pkg3', )
023+ Received: array ( 0 => 'pkg1', 1 => 'pkg3', 2 => 'pkg2', )

029+ Test Failure: "list packages after deleting 1"
030+ in
/home/ashnazg/MyDev/workspace/pear-core/tests/PEAR_Registry/api1_0/test_listPackages.php
line 41
031+ Expecting: array ( 0 => 'pkg2', 1 => 'pkg3', )
036+ Received: array ( 0 => 'pkg3', 1 => 'pkg2', )

041+ Test Failure: "list packages after deleting 1, new object"
042+ in
/home/ashnazg/MyDev/workspace/pear-core/tests/PEAR_Registry/api1_0/test_listPackages.php
line 46
043+ Expecting: array ( 0 => 'pkg2', 1 => 'pkg3', )
048+ Received: array ( 0 => 'pkg3', 1 => 'pkg2', )

053+ tests done

This simply looks like the ordering of the packages is bad... or perhaps
random and this time they happen to not match the expected order.


>
> /home/ashnazg/MyDev/workspace/pear-core/tests/PEAR_Registry/api1_0/test_packageInfo.phpt



001- tests done
001+ Test Failure: "packageinfo pkg1+2+3 generic1"
002+ in /home/ashnazg/MyDev/workspace/pear-core/tests/phpt_test.php.inc
line 332
003+ Expecting: array ( 'name' => 'pkg2', 'version' => '2.0',
007+ 'filelist' => array ( 'pkg2-1.php' => array ( 'role' => 'php', ), '
pkg2-2.php' => array ( 'role' => 'php', 'baseinstalldir' => 'pkg2', ), ),
019+ 'maintainers' => array ( ), '_lastmodified' => 1097586528, )
024+ Received: array ( 'name' => 'pkg3', 'version' => '3.0',
028+ 'filelist' => array ( 'pkg3-1.php' => array ( 'role' => 'php', ), '
pkg3-2.php' => array ( 'role' => 'php', 'baseinstalldir' => 'pkg3', ), ),
040+ 'maintainers' => array ( ), '_lastmodified' => 1196217055,

044+ )Test Failure: "packageinfo pkg1+2+3 generic, another object1"
045+ in /home/ashnazg/MyDev/workspace/pear-core/tests/phpt_test.php.inc
line 332
046+ Expecting:
047+ array ( 'name' => 'pkg2', 'version' => '2.0', 'filelist' =>
051+ array ( 'pkg2-1.php' => array ( 'role' => 'php', ), 'pkg2-2.php' =>
array ( 'role' => 'php', 'baseinstalldir' => 'pkg2', ), ),
062+ 'maintainers' => array ( ), '_lastmodified' => 1097586528,
066+ )
067+ Received:
068+ array ( 'name' => 'pkg3', 'version' => '3.0', 'filelist' =>
072+ array ( 'pkg3-1.php' => array ( 'role' => 'php', ), 'pkg3-2.php' =>
array ( 'role' => 'php', 'baseinstalldir' => 'pkg3', ), ),
083+ 'maintainers' => array ( ), '_lastmodified' => 1196217055,
087+ )tests done

Again, this looks like package #2 and package #3 were just transposed in the
package ordering.


>
>
> /home/ashnazg/MyDev/workspace/pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt


001+ Test Failure: "upgrade-all log"
002+ in
/home/ashnazg/MyDev/workspace/pear-core/tests/PEAR_Command_Install/upgrade-all/test.php
line 3461
003+ Expecting:
004+ array (
005+ 0 => array ( 'info' => array ( 'data' => 'Will upgrade
channel://pear.php.net/text_wiki', ), 'cmd' => 'upgrade-all', ),
013+ 1 => array ( 'info' => array ( 'data' => 'Will upgrade
channel://pear.php.net/xml_rpc', ), 'cmd' => 'upgrade-all', ),
021+ 2 => array ( 'info' => array ( 'data' => 'Will upgrade
channel://pear.php.net/net_sieve', ), 'cmd' => 'upgrade-all', ),
029+ 3 => array ( 'info' => array ( 'data' => 'Will upgrade
channel://pear.php.net/file', ), 'cmd' => 'upgrade-all',
),
037+ 4 => array ( 'info' => array ( 'data' => 'Will upgrade
channel://pear.php.net/text_highlighter', ), 'cmd' => 'upgrade-all', ),
045+ 5 => array (
047+ 0 => 3,
048+ 1 => 'Notice: package "pear/Net_Sieve" required dependency
"pear/Net_Socket" will not be automatically downloaded',
049+ ),
050+ )
051+ Received:
052+ array (
053+ 0 => array ( 'info' => array ( 'data' => 'Will upgrade
channel://pear.php.net/text_highlighter', ), 'cmd' => 'upgrade-all', ),
061+ 1 => array ( 'info' => array ( 'data' => 'Will upgrade
channel://pear.php.net/text_wiki', ), 'cmd' => 'upgrade-all', ),
069+ 2 => array ( 'info' => array ( 'data' => 'Will upgrade
channel://pear.php.net/net_sieve', ), 'cmd' => 'upgrade-all', ),
077+ 3 => array ( 'info' => array ( 'data' => 'Will upgrade
channel://pear.php.net/xml_rpc', ), 'cmd' => 'upgrade-all', ),
085+ 4 => array ( 'info' => array ( 'data' => 'Will upgrade
channel://pear.php.net/file', ), 'cmd' => 'upgrade-all',
),
093+ 5 => array (
095+ 0 => 3,
096+ 1 => 'Notice: package "pear/Text_Highlighter" required dependency
"pear/PEAR" will not be automatically downloaded',
097+ ),
098+ )
099+ tests done

Looks like the only actual *data *difference here is the order in which the
packages are listed... though, the the dependency notices are different....


>
>
> Linux durbatuluk 2.6.22-14-generic #1 SMP Sun Oct 14 21:45:15 GMT 2007
> x86_64 GNU/Linux
> (Ubuntu Gutsy)
>
> PHP 5.2.4 (cli) (built: Sep 10 2007 21:12:55)
> Copyright (c) 1997-2007 The PHP Group
> Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
> (compiled PHP from source... was not a .deb installation)
>
> --
> CRB
>
> Let me introduce you to my very own DMCA-protected encryption key:
> BC 1B 64 4A 8D DE 49 E8 C3 7D CC EE 1A AD EE F5
> (compliments of Freedom-to-Tinker http://www.freedom-to-tinker.com/?p=1155)
>





--
CRB

Let me introduce you to my very own DMCA-protected encryption key:
BC 1B 64 4A 8D DE 49 E8 C3 7D CC EE 1A AD EE F5
(compliments of Freedom-to-Tinker http://www.freedom-to-tinker.com/?p=1155)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com