[ctypes-commit] ctypes test-cf.py,NONE,1.1.2.1
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2006-02-07 20:23:17
|
Update of /cvsroot/ctypes/ctypes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24234 Added Files: Tag: branch_1_0 test-cf.py Log Message: A script to test ctypes on te various SF compilefarm servers - when they are working and reachable ;-) --- NEW FILE: test-cf.py --- # Script to build and test ctypes on the compile-farm servers. # Accepts the same arguments as setup.py hostinfo = [ # Not python 2.3 or newer: ## ("x86-openbsd1", "/usr/local/bin/python"), ("x86-solaris1", "env PATH=/opt/SUNWspro/bin:/usr/local/bin:/usr/local/sbin:$PATH python"), ("x86-linux1", "/usr/bin/python"), # Permission denied ("x86-linux2", "/usr/bin/python"), # Host key verification failed ("x86-freebsd1", "/usr/local/bin/python"), # ImportError: _ctypes.so: Undefined PLT symbol "PyGILState_Ensure" # Python without threading module??? ("x86-netbsd1", "/usr/pkg/bin/python2.3"), ("amd64-linux1", "/usr/bin/python"), # Same platform as the previous one: ## ("amd64-linux2", "/usr/bin/python"), # Host key verification failed ("alpha-linux1", "/usr/bin/python"), # No route to host: ("ppc-osx1", "/sw/bin/python"), # No route to host: ("ppc-osx2", "/usr/bin/python"), # Not python 2.3 or newer: ## ("sparc-solaris1", "/usr/local/bin/python"), ## ("sparc-solaris2", "/usr/local/bin/python"), ("openpower-linux1", "python")] import sys, os for hostname, python in hostinfo: print "*" * 20, hostname, "*" * 20 if len(sys.argv) > 1: cmd = "cd ~/ctypes; %s setup.py %s" % (python, " ".join(sys.argv[1:])) else: cmd = "cd ~/ctypes; %s setup.py -q build_ext -f test -v " % python print cmd ret = os.system('ssh -l theller cf-shell.sf.net "ssh %s \'%s\'"' % (hostname, cmd)) if ret: print "(RETCODE %s)" % ret print "-" * 50 print |