15
run_tests.py
15
run_tests.py
@@ -16,6 +16,7 @@ import subprocess
|
|||||||
import shlex
|
import shlex
|
||||||
import platform
|
import platform
|
||||||
import tempfile
|
import tempfile
|
||||||
|
import os.path
|
||||||
|
|
||||||
# disable fancy error/warning printing with ANSI colors, so grepping for error
|
# disable fancy error/warning printing with ANSI colors, so grepping for error
|
||||||
# messages doesn't get confused
|
# messages doesn't get confused
|
||||||
@@ -88,6 +89,20 @@ if options.compiler_exe == None:
|
|||||||
else:
|
else:
|
||||||
options.compiler_exe = "g++"
|
options.compiler_exe = "g++"
|
||||||
|
|
||||||
|
# checks the required compiler otherwise prints an error message
|
||||||
|
PATH_dir = string.split(os.getenv("PATH"), os.pathsep)
|
||||||
|
compiler_exists = False
|
||||||
|
|
||||||
|
for counter in PATH_dir:
|
||||||
|
if os.path.exists(counter + os.sep + options.compiler_exe):
|
||||||
|
compiler_exists = True
|
||||||
|
break
|
||||||
|
|
||||||
|
if not compiler_exists:
|
||||||
|
sys.stderr.write("Fatal error: missing the required compiler: %s \n" %
|
||||||
|
options.compiler_exe)
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
def fix_windows_paths(files):
|
def fix_windows_paths(files):
|
||||||
ret = [ ]
|
ret = [ ]
|
||||||
for fn in files:
|
for fn in files:
|
||||||
|
|||||||
Reference in New Issue
Block a user