From 86f5f5edbdd24b793e1f9eff4b338d867f6dc97f Mon Sep 17 00:00:00 2001 From: Willem Date: Wed, 8 Oct 2014 21:06:14 -0700 Subject: 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. --- test/Concrete/ConcreteTest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/Concrete/ConcreteTest.py') 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() -- cgit 1.4.1