about summary refs log tree commit diff homepage
path: root/test/Concrete/ConcreteTest.py
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/Concrete/ConcreteTest.py
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/Concrete/ConcreteTest.py')
-rwxr-xr-xtest/Concrete/ConcreteTest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Concrete/ConcreteTest.py b/test/Concrete/ConcreteTest.py
index 290991b7..754c0fe6 100755
--- a/test/Concrete/ConcreteTest.py
+++ b/test/Concrete/ConcreteTest.py
@@ -30,7 +30,7 @@ def testFile(name, klee_path, lli_path):
     klee_out_path = "Output/%s.klee-out" % (baseName,)
     if os.path.exists(klee_out_path):
         shutil.rmtree(klee_out_path)
-    klee_cmd = [klee_path, '--output-dir=' + klee_out_path,  '--no-output', exeFile]
+    klee_cmd = klee_path.split() + ['--output-dir=' + klee_out_path,  '--no-output', exeFile]
     print("EXECUTING: %s" % (klee_cmd,))
     sys.stdout.flush()