- A large number of fixes and additions to the test programs.

* More default options (e.g. --program)
  * Results testing
- Added a heuristics comparison test.
This commit is contained in:
ccremers
2005-03-11 13:44:16 +00:00
parent 391033ec3e
commit ee0e401190
4 changed files with 158 additions and 2 deletions

View File

@@ -21,6 +21,19 @@ from tempfile import NamedTemporaryFile, gettempdir
# Minimum duration for a test to get into the cache (in seconds)
CacheTimer = 0.1
ScytherProgram = "scyther"
#----------------------------------------------------------------------------
# How to override Scyther program setting
#----------------------------------------------------------------------------
def scytheroverride (newprg):
global ScytherProgram
ScytherProgram = newprg
if not os.path.exists(ScytherProgram):
print "Cannot find any file at", ScytherProgram, " and it cannot be used as a Scyther executable."
sys.exit()
#----------------------------------------------------------------------------
# How to call Scyther
@@ -28,7 +41,9 @@ CacheTimer = 0.1
# scyther should reside in $PATH
def scythercall (argumentstring, inputfile):
clstring = "scyther " + argumentstring + " " + inputfile
global ScytherProgram
clstring = ScytherProgram + " " + argumentstring + " " + inputfile
(status,scout) = commands.getstatusoutput(clstring)
return (status,scout)