summaryrefslogtreecommitdiff
path: root/Test/lit.site.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'Test/lit.site.cfg')
-rw-r--r--Test/lit.site.cfg12
1 files changed, 10 insertions, 2 deletions
diff --git a/Test/lit.site.cfg b/Test/lit.site.cfg
index d0b3a85b..2d57d389 100644
--- a/Test/lit.site.cfg
+++ b/Test/lit.site.cfg
@@ -22,7 +22,7 @@ config.suffixes = ['.dfy']
# excludes: A list of directories to exclude from the testsuite. The 'Inputs'
# subdirectories contain auxiliary inputs for various tests in their parent
# directories.
-config.excludes = []
+config.excludes = ['Inputs', 'sandbox']
# test_source_root: The root path where tests are located.
config.test_source_root = os.path.dirname(os.path.abspath(__file__))
@@ -79,19 +79,26 @@ 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')
# Expected output does not contain logo
-dafnyExecutable += ' -nologo'
+dafnyExecutable += ' -nologo -countVerificationErrors:0'
# We do not want absolute or relative paths in error messages, just the basename of the file
dafnyExecutable += ' -useBaseNameForFileName'
@@ -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?