Running Silva unittests on Windows

Samuel Schluep <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Hi altogether

Does anybody know how to run the Silva unittests on Windows XP? Is this 
possible at all? I did the following so far:

1. There was no 'zopectl.bat' batch file in the {zope-instance}\bin 
directory. Therefore I created one:

@set PYTHON=C:\prog\Python23\python.exe
@set ZOPE_HOME=E:\prog\Zope-2.8.5-final
@set INSTANCE_HOME=E:\prog\dlcms1.6
@set SOFTWARE_HOME=E:\prog\Zope-2.8.5-final\lib\python
@set CONFIG_FILE=E:\prog\dlcms1.6\etc\zope.conf
@set PYTHONPATH=%SOFTWARE_HOME%
@set ZDCTL=%SOFTWARE_HOME%\Zope2\Startup\zopectl.py
"%PYTHON%" "%ZDCTL%" -C "%CONFIG_FILE%" %1 %2 %3 %4 %5 %6 %7
pause


2. Then I tried to run the test according to the README.txt in the Silva 
tests directory, returning an error:

E:\prog\dlcms1.6>bin\zopectl.bat test --dir Products/Silva

E:\prog\dlcms1.6>"C:\prog\Python23\python.exe" 
"E:\prog\Zope-2.8.5-final\lib\pyt
hon\Zope2\Startup\zopectl.py" -C "E:\prog\dlcms1.6\etc\zope.conf" test 
--dir Pro
ducts/Silva
Traceback (most recent call last):
  File "E:\prog\Zope-2.8.5-final\lib\python\Zope2\Startup\zopectl.py", 
line 313,
 in ?
    if os.uname()[0] != 'Darwin':
AttributeError: 'module' object has no attribute 'uname'


Best regards
Sam
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.