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