Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.0

Bug #14978 Test cases vs test data paths
Submitted: 2008-11-09 11:09 UTC
From: doconnor Assigned: doconnor
Status: Closed Package: PEAR_Command_Packaging (version CVS)
PHP Version: 5.2.6 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2008-11-09 11:09 UTC] doconnor (Daniel O'Connor)
Description: ------------ If you aren't in the same directory as the tests you run, PHP can't find the test data to load. Warning: file_get_contents(packagefiles/test1.spec): failed to open stream: No such file or directory in /home/clockwerx/pear/PEAR_Command_Packaging/tests/make-rpm-spec/test1.php on line 21 This should be dirname(__FILE__) . 'packagefiles/test1.spec' so it doesn't matter where you run the tests from. Test script: --------------- clockwerx@clockwerx-desktop:~/pear/PEAR_Command_Packaging$ pear run-tests tests/make-rpm-spec/ Expected result: ---------------- Tests run successfully Actual result: -------------- clockwerx@clockwerx-desktop:~/pear/PEAR_Command_Packaging$ pear run-tests tests/make-rpm-spec/ Running 9 tests FAIL make-rpm-spec command, pear package[tests/make-rpm-spec/test1.phpt] FAIL make-rpm-spec command - make a specfile for a channel[tests/make-rpm-spec/test_channel.phpt] FAIL make-rpm-spec command, pear package[tests/make-rpm-spec/test_extdep.phpt] FAIL make-rpm-spec command, pear package[tests/make-rpm-spec/test_nodocs_dupdeps.phpt] FAIL make-rpm-spec command, pear package[tests/make-rpm-spec/test_option_rpm-depname.phpt] FAIL make-rpm-spec command, pear package[tests/make-rpm-spec/test_option_rpm-pkgname.phpt] FAIL make-rpm-spec command, pear package[tests/make-rpm-spec/test_option_rpm-release.phpt] FAIL make-rpm-spec command - make a specfile for a package from a non-default channel[tests/make-rpm-spec/test_remotechannel.phpt] FAIL make-rpm-spec command - make a specfile for a package from a non-default channel[tests/make-rpm-spec/test_statement_macros.phpt] wrote log to "/home/clockwerx/pear/PEAR_Command_Packaging/run-tests.log" TOTAL TIME: 30:11 0 PASSED TESTS 0 SKIPPED TESTS 9 FAILED TESTS: /home/clockwerx/pear/PEAR_Command_Packaging/tests/make-rpm-spec/test1.phpt /home/clockwerx/pear/PEAR_Command_Packaging/tests/make-rpm-spec/test_channel.phpt /home/clockwerx/pear/PEAR_Command_Packaging/tests/make-rpm-spec/test_extdep.phpt /home/clockwerx/pear/PEAR_Command_Packaging/tests/make-rpm-spec/test_nodocs_dupdeps.phpt /home/clockwerx/pear/PEAR_Command_Packaging/tests/make-rpm-spec/test_option_rpm-depname.phpt /home/clockwerx/pear/PEAR_Command_Packaging/tests/make-rpm-spec/test_option_rpm-pkgname.phpt /home/clockwerx/pear/PEAR_Command_Packaging/tests/make-rpm-spec/test_option_rpm-release.phpt /home/clockwerx/pear/PEAR_Command_Packaging/tests/make-rpm-spec/test_remotechannel.phpt /home/clockwerx/pear/PEAR_Command_Packaging/tests/make-rpm-spec/test_statement_macros.phpt

Comments

 [2008-11-17 13:00 UTC] doconnor (Daniel O'Connor)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.