summaryrefslogtreecommitdiff
path: root/Test/lit.site.cfg
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-07-31 15:11:03 -0700
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-07-31 15:11:03 -0700
commit65334f8f33c92a1e37376d6484d60ee45b55ca1d (patch)
tree65f482cd715fb565f0a7ff0cb8b3376d593fd2de /Test/lit.site.cfg
parent594809c6668c26c3b838153ba4a4222ebef3312d (diff)
Add tests for the server
Diffstat (limited to 'Test/lit.site.cfg')
-rw-r--r--Test/lit.site.cfg8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/lit.site.cfg b/Test/lit.site.cfg
index a960bdbc..c5718f86 100644
--- a/Test/lit.site.cfg
+++ b/Test/lit.site.cfg
@@ -79,14 +79,21 @@ lit_config.note('Repository root is {}'.format(repositoryRoot))
binaryDir = os.path.join( repositoryRoot, 'Binaries')
dafnyExecutable = os.path.join( binaryDir, 'Dafny.exe')
+serverExecutable = os.path.join( binaryDir, 'DafnyServer.exe')
if not os.path.exists(dafnyExecutable):
lit_config.fatal('Could not find Dafny.exe at {}'.format(dafnyExecutable))
+if not os.path.exists(serverExecutable):
+ lit_config.warning('Could not find DafnyServer.exe at {}'.format(serverExecutable))
+else:
+ config.suffixes.append('.transcript')
+
dafnyExecutable = quotePath(dafnyExecutable)
if os.name == 'posix':
dafnyExecutable = 'mono ' + dafnyExecutable
+ serverExecutable = 'mono ' + serverExecutable
if lit.util.which('mono') == None:
lit_config.fatal('Cannot find mono. Make sure it is your PATH')
@@ -105,6 +112,7 @@ if len(dafnyParams) > 0:
lit_config.note('Using Dafny: {}\n'.format(dafnyExecutable))
config.substitutions.append( ('%dafny', dafnyExecutable) )
+config.substitutions.append( ('%server', serverExecutable) )
# Sanity check: Check solver executable is available
# FIXME: Should this check be removed entirely?