summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2014-06-01 18:06:20 -0700
committerThomas Kluyver <takowl@gmail.com>2014-06-01 20:40:26 -0700
commitd222acaef554665ffcaa598a61172c527e79291b (patch)
tree87f24fbb05388f21b131a3193bc6631a7b63de21 /tools
parentfe03da490391fc5b71d77f5663b35197acaef859 (diff)
downloadpexpect-d222acaef554665ffcaa598a61172c527e79291b.tar.gz
Remove ancient script for testing on Sourceforge compile farm (long since gone)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testsweep.py71
1 files changed, 0 insertions, 71 deletions
diff --git a/tools/testsweep.py b/tools/testsweep.py
deleted file mode 100755
index 8100d99..0000000
--- a/tools/testsweep.py
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env python
-"""This runs testall.py on many different platforms running on the Compile Farm (cf.sourceforge.net).
-
-PEXPECT LICENSE
-
- This license is approved by the OSI and FSF as GPL-compatible.
- http://opensource.org/licenses/isc-license.txt
-
- Copyright (c) 2012, Noah Spurrier <noah@noah.org>
- PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY
- PURPOSE WITH OR WITHOUT FEE IS HEREBY GRANTED, PROVIDED THAT THE ABOVE
- COPYRIGHT NOTICE AND THIS PERMISSION NOTICE APPEAR IN ALL COPIES.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-"""
-import pexpect
-import getpass
-
-def test_platform (platform_menu, platform_python_path):
- try:
- s = pexpect.spawn ('ssh noah@cf.sourceforge.net')
- #s.setlog (sys.stdout)
- i = s.expect (['password:', 'yes/no'])
- if i == 1:
- s.sendline ('yes')
- s.expect ('password')
- s.sendline (PASSWORD)
- s.expect ('Choose compile farm server')
- s.sendline (platform_menu)
- s.expect_exact ('$')
- s.sendline ('cd pexpect')
- s.expect_exact ('$')
- s.sendline ('. ./cvs.conf')
- s.expect_exact ('$')
- s.sendline ('cvs up -d')
- s.expect ('password:')
- s.sendline (PASSWORD)
- s.expect_exact ('$')
- s.sendline (platform_python_path)
- i = s.expect_exact (['OK','$'], timeout=900) # Tests should not run more than 15 minutes.
- if i != 0:
- RESULT = s.before
- else:
- RESULT = 'OK!'
- s.sendline ('exit')
- s.sendline ('x')
- s.close()
- except Exception, e:
- return 'Exception in platform test: ' + str(e)
- return RESULT
-
-PASSWORD = getpass.getpass('password: ')
-results = []
-result = test_platform ('I', 'python tools/testall.py')
-results.append (('I', '[PPC - G4] MacOS X 10.1 SERVER Edition', result))
-result = test_platform ('L', 'python tools/testall.py')
-results.append (('L', '[Sparc - Ultra60] Linux 2.4 (Debian 3.0)', result))
-result = test_platform ('B', 'python2 tools/testall.py')
-results.append (('B', '[x86] Linux 2.4 (Redhat 7.3)', result))
-result = test_platform ('M', '../Python-2.3b1/python tools/testall.py')
-results.append (('M', '[Sparc - R220] Sun Solaris (8) #1', result))
-result = test_platform ('G', 'python tools/testall.py')
-results.append (('G', '[Alpha] Linux 2.2 (Debian 3.0)', result))
-print results
-