aboutsummaryrefslogtreecommitdiffstats
path: root/torturetest.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-27 18:49:51 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-27 18:49:51 +0000
commit5b70a5b9311f81ba65c3d308ddf6283ef72c44b1 (patch)
treef452c228d67570bf047d1a192c2378255b3f60d9 /torturetest.py
parent385f0cb4d24c9df904a88e23b904eb8507c639f1 (diff)
downloadfetchmail-5b70a5b9311f81ba65c3d308ddf6283ef72c44b1.tar.gz
fetchmail-5b70a5b9311f81ba65c3d308ddf6283ef72c44b1.tar.bz2
fetchmail-5b70a5b9311f81ba65c3d308ddf6283ef72c44b1.zip
Added -s option.
svn path=/trunk/; revision=3162
Diffstat (limited to 'torturetest.py')
-rwxr-xr-xtorturetest.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/torturetest.py b/torturetest.py
index 8f13cbc0..0831f634 100755
--- a/torturetest.py
+++ b/torturetest.py
@@ -109,7 +109,7 @@ if __name__ == "__main__":
print "Error on line %d" % linect
sys.exit(0)
- (options, arguments) = getopt.getopt(sys.argv[1:], "dfp:tigv")
+ (options, arguments) = getopt.getopt(sys.argv[1:], "dfp:tigvs")
verbose = 0
for (switch, value) in options:
if switch == "-d":
@@ -148,6 +148,10 @@ if __name__ == "__main__":
elif switch == "-v":
# Display the test output
verbose = 1
+ elif switch == "-s":
+ # Dump version strings of all tested servers as a Python tuple
+ print "(" + ",\n".join(map(lambda x: repr(x.version), filter(lambda x: x.version, sitelist))) + ")"
+ sys.exit(0)
# If no options, run the torture test
try: