about summary refs log tree commit diff homepage
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorWillem <willem@lekkertech.net>2014-10-08 21:06:14 -0700
committerWillem <willem@lekkertech.net>2014-10-08 21:50:46 -0700
commit86f5f5edbdd24b793e1f9eff4b338d867f6dc97f (patch)
tree7aa85a5e444ddfe0ec1c251a6ab0b61517972e34 /test/lit.cfg
parent0c8c812db1d331f1e49e27ccd35f1288e58d97e6 (diff)
downloadklee-86f5f5edbdd24b793e1f9eff4b338d867f6dc97f.tar.gz
Fixes support for passing arguments to klee in the ConcreteTests.
This is for use with llvm-lit --param=klee_opts=...

Fixes lit.cfg to not have an extranous space behind the klee command.
Augments ConcreteTest to accept and pass arguments to klee.
Augments all the ConcreteTest cases to wrap %klee in quotes.

Without wrapping %klee the extra arguments will be seens as arguments
to ConcreteTest.py resulting in an unknown argument error.
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 25b48334..0be49bd8 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -98,7 +98,7 @@ if len(kleaver_extra_params) != 0:
 subs = [ ('%kleaver', 'kleaver', kleaver_extra_params), ('%klee','klee', klee_extra_params) ]
 for s,basename,extra_args in subs:
     config.substitutions.append( ( s,
-                                   "{0} {1}".format( os.path.join(klee_tools_dir, basename), extra_args )
+                                   "{0} {1}".format( os.path.join(klee_tools_dir, basename), extra_args ).strip()
                                  )
                                )