about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2014-09-12 17:10:35 -0700
committerDaniel Dunbar <daniel@zuster.org>2014-09-12 17:39:18 -0700
commit9a3cf72b8979213bcc6d235856bb0ddba4ee37c8 (patch)
tree1252e620f137e01d90f7260fdca042b13ab683d1
parentecb0ab1407f23e6d2403a8603613fdbf4101e519 (diff)
downloadklee-9a3cf72b8979213bcc6d235856bb0ddba4ee37c8.tar.gz
[tests] Update ConcreteTest to use --output-dir.
-rwxr-xr-xtest/Concrete/ConcreteTest.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Concrete/ConcreteTest.py b/test/Concrete/ConcreteTest.py
index 8b2e4cc3..02eaf4d9 100755
--- a/test/Concrete/ConcreteTest.py
+++ b/test/Concrete/ConcreteTest.py
@@ -4,6 +4,7 @@ import argparse
 import os
 import popen2
 import sys
+import shutil
 
 def readFile(f):
     s = ""
@@ -36,7 +37,11 @@ def testFile(name, klee_path, lli_path):
     print '-- lli output --\n%s--\n' % (lliOut,)
 
     print '-- running klee --'
-    klee_cmd = '%s --no-output %s' % (klee_path, exeFile)
+    klee_out_path = "Output/%s.klee-out" % (baseName,)
+    if os.path.exists(klee_out_path):
+        shutil.rmtree(klee_out_path)
+    klee_cmd = '%s --output-dir=%s --no-output %s' % (
+        klee_path, klee_out_path, exeFile)
     print "EXECUTING: %s" % (klee_cmd,)
     sys.stdout.flush()
     klee = popen2.Popen3(klee_cmd)