From 12b5d96ddb729de8a757d8981fa1c6c1dedd4bd6 Mon Sep 17 00:00:00 2001 From: ccremers Date: Mon, 4 Jul 2005 11:52:36 +0000 Subject: [PATCH] - Added script to test all variants of something. --- spdl/multiparty/test-variants.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 spdl/multiparty/test-variants.py diff --git a/spdl/multiparty/test-variants.py b/spdl/multiparty/test-variants.py new file mode 100755 index 0000000..a5cadb7 --- /dev/null +++ b/spdl/multiparty/test-variants.py @@ -0,0 +1,31 @@ +#!/usr/bin/python +# +# +import commands + +def testvariant(variant): + s = "./multinsl-generator.py" + s += " 4 %s" % (variant) + s += " | scyther -a -r5 -m2 --summary" + print s + s += " | grep \"failed:\"" + out = commands.getoutput(s) + if out == "": + print "Okay" + return True + else: + print out + return False + +def main(): + good = [] + for i in range (0,32): + print i + if testvariant (i): + good.append(i) + print + print "Good variants:" + print good + + +main()