Hi Stefan,
Tests work for me when doing... oxPATH='/var/www/eshop/' php -d 'memory_limit='2048M' /usr/bin/phpunit --verbose --bootstrap bootstrap.php AllTestsUnit.php (no "oxAdmin_passwd", and no -d parameter) My machine is a Ubuntu 12.04/Apache2/PHP5.3. It also works with a lower memory limit (e.g. 1024M) -- no "Out of memory" messages here. Regards, Johannes -----Ursprüngliche Nachricht----- Von: dev-general-boun...@lists.oxidforge.org [mailto:dev-general-boun...@lists.oxidforge.org] Im Auftrag von Stefan Moises Gesendet: Dienstag, 12. Februar 2013 09:00 An: dev-general@lists.oxidforge.org Betreff: Re: [oxid-dev-general] OXID Unit-Tests - memory usage? Hi, is nobody using the Unit tests? Are they working for anybody at the moment? Thanks, Stefan Am 08.02.2013 16:25, schrieb Stefan Moises: > Hi list, > > I am trying to run all the OXID unit tests for the current CE version > using OXVM... although I have raised the used memory from 1024M to > 2768M, I still get an out of memory error.. any ideas why? Has anybody > successfully tried to run the current test suite? > > Here is the command I am using... my VM has currently 3328MB assigned. > > oxPATH=/path/to/oxid/eshop/ oxADMIN_PASSWD='password' phpunit –d > 'memory_limit=2768M' --verbose -–bootstrap bootstrap.php > AllTestsUnit.php > > Call stack is: > ... > Unit_Core_oxemailAzureTplTest > ...PHP Fatal error: Out of memory (allocated -1998061568) (tried to > allocate 2013009921 bytes) in /usr/share/php/PHPUnit/Util/Type.php on > line 163 PHP Stack trace: > PHP 1. {main}() /usr/bin/phpunit:0 > PHP 2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:52 PHP 3. > PHPUnit_TextUI_Command->run() > /usr/share/php/PHPUnit/TextUI/Command.php:147 > PHP 4. PHPUnit_TextUI_TestRunner->doRun() > /usr/share/php/PHPUnit/TextUI/Command.php:214 > PHP 5. PHPUnit_Framework_TestSuite->run() > /usr/share/php/PHPUnit/TextUI/TestRunner.php:350 > PHP 6. PHPUnit_Framework_TestSuite->run() > /usr/share/php/PHPUnit/Framework/TestSuite.php:675 > PHP 7. PHPUnit_Framework_TestSuite->runTest() > /usr/share/php/PHPUnit/Framework/TestSuite.php:732 > PHP 8. OxidTestCase->run() > /usr/share/php/PHPUnit/Framework/TestSuite.php:757 > PHP 9. PHPUnit_Framework_TestCase->run() > /var/www/eshops/ce473/unittests/unit/OxidTestCase.php:225 > PHP 10. PHPUnit_Framework_TestResult->run() > /usr/share/php/PHPUnit/Framework/TestCase.php:653 > PHP 11. PHPUnit_Framework_TestCase->runBare() > /usr/share/php/PHPUnit/Framework/TestResult.php:687 > PHP 12. PHPUnit_Framework_TestCase->runTest() > /usr/share/php/PHPUnit/Framework/TestCase.php:706 > PHP 13. ReflectionMethod->invokeArgs() > /usr/share/php/PHPUnit/Framework/TestCase.php:822 > PHP 14. > Unit_Core_oxInputValidatorTest->testCheckCountriesGoodCountries() > /usr/share/php/PHPUnit/Framework/TestCase.php:822 > PHP 15. PHPUnit_Framework_Assert::assertNull() > /var/www/eshops/ce473/unittests/unit/core/oxinputvalidatorTest.php:465 > PHP 16. PHPUnit_Framework_Assert::assertThat() > /usr/share/php/PHPUnit/Framework/Assert.php:742 > PHP 17. PHPUnit_Framework_Constraint->fail() > /usr/share/php/PHPUnit/Framework/Assert.php:1734 > PHP 18. PHPUnit_Framework_Constraint->failureDescription() > /usr/share/php/PHPUnit/Framework/Constraint.php:91 > PHP 19. PHPUnit_Util_Type::toString() > /usr/share/php/PHPUnit/Framework/Constraint.php:111 > PHP 20. print_r() /usr/share/php/PHPUnit/Util/Type.php:163 > > No idea why it is "only" using 2 GB here though.... > > Maybe it's an error trying to send mails which leads to this exception > ... because I had to install sendmail since > Unit_Core_oxemailAzureTplTest threw an error in the tests before that > it couldn't find sendmail before the out of memory error occured... > now that error is gone, but out of memory still comes up :( > > Thanks, > Stefan > -- Mit den besten Grüßen aus Nürnberg, Stefan Moises ******************************************* Stefan Moises Senior Softwareentwickler Leiter Modulentwicklung shoptimax GmbH Guntherstraße 45 a 90461 Nürnberg Amtsgericht Nürnberg HRB 21703 GF Friedrich Schreieck Fax: 0911/25566-29 moi...@shoptimax.de http://www.shoptimax.de ******************************************* _______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general _______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general