diff options
author | Gleb Popov <6yearold@gmail.com> | 2019-03-31 13:19:20 +0400 |
---|---|---|
committer | MartinNowack <martin.nowack@gmail.com> | 2019-04-02 13:06:52 +0100 |
commit | dc9a1cc700e00e56aee30ac433db4f2ed8519d43 (patch) | |
tree | d2046e0ae26dbe2d2228086434fb033270cc1418 | |
parent | 58ce9056c80cd2253df988eefcd7764e1056579b (diff) | |
download | klee-dc9a1cc700e00e56aee30ac433db4f2ed8519d43.tar.gz |
Teach ConcreteTest.py to use `gmake` instead of `make` on FreeBSD
-rwxr-xr-x | test/Concrete/ConcreteTest.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Concrete/ConcreteTest.py b/test/Concrete/ConcreteTest.py index 22ce92ef..0de481b3 100755 --- a/test/Concrete/ConcreteTest.py +++ b/test/Concrete/ConcreteTest.py @@ -3,6 +3,7 @@ from __future__ import print_function import argparse import os +import platform import subprocess import sys import shutil @@ -12,12 +13,17 @@ def testFile(name, klee_path, lli_path): baseName,ext = os.path.splitext(name) exeFile = 'Output/linked_%s.bc'%baseName + if platform.system() == 'FreeBSD': + make_prog = 'gmake' + else: + make_prog = 'make' + print('-- building test bitcode --') if os.path.exists("Makefile.cmake.test"): # Prefer CMake generated make file - make_cmd = 'make -f Makefile.cmake.test %s 2>&1' % (exeFile,) + make_cmd = '%s -f Makefile.cmake.test %s 2>&1' % (make_prog, exeFile,) else: - make_cmd = 'make %s 2>&1' % (exeFile,) + make_cmd = '%s %s 2>&1' % (make_prog, exeFile,) print("EXECUTING: %s" % (make_cmd,)) sys.stdout.flush() if os.system(make_cmd): |