[Zope-CMF] Re: running the CMF unit tests

yuppie y.2004_ at wcm-solutions.de
Wed Aug 4 03:25:39 EDT 2004


Hi!


Gregoire Weber wrote:
> At 14:08 03.08.2004 +0200, yuppie wrote:
>>Other ways to run tests:
>>
>>$ bin/zopectl run Products/all_cmf_tests.py
>>Doesn't work because CMFUid has no test_all.py. OK without CMFUid.

Works now. All tests pass on linux.

>>$ bin/zopectl run bin/test.py --libdir Products -v
>>Doesn't work with CMFUid. Some CMFSetup tests fail.

After checking in a small fix for __init__.py this also works. There are 
still 10 CMFSetup tests failing.

> Sorry for the inconvenience! Really!

No problem.

> I wasn't able to test the test_all.py in CMFUid under Win2k :-(.
> (I made a zopectl.bat which is a modified copy of runzope.bat)
> 
> E:\user\greg\data\Zope\inst\cmf_dev>"D:\Program Files\zope\zope27\bin\python.exe" "D:\Program Files\zope\zope2
> 7\lib\python\Zope\Startup\zopectl.py" -C "E:\user\greg\data\Zope\inst\cmf_dev\etc\zope.conf" run Products/all_
> cmf_tests.py
> Traceback (most recent call last):
>   File "D:\Program Files\zope\zope27\lib\python\Zope\Startup\zopectl.py", line 240, in ?
>     signal.signal(signal.SIGCHLD, signal.SIG_IGN)
> AttributeError: 'module' object has no attribute 'SIGCHLD'
> 
> Does somebody know what's happening?

Never tried to run zopectl on Windows. There might be better ways to run 
unittests on Windows, but this script works for me:

<batch_script>
@Set ZOPE_HOME=C:\Programme\Zope272
@Set PYTHON=%ZOPE_HOME%\bin\python.exe
@Set PYTHONPATH=%ZOPE_HOME%\lib\python

"%PYTHON%" "all_cmf_tests.py"
Pause
</batch_script>

Note that I test with INSTANCE_HOME and ZOPE_HOME in the same place!


Cheers,
	Yuppie



More information about the Zope-CMF mailing list