|
@@ -114,7 +114,9 @@ def run_file(files, parameters, expected, mode):
|
|
|
threads = []
|
|
|
mod_files = []
|
|
|
for filename in files:
|
|
|
- if os.path.isfile("integration/code/%s" % filename):
|
|
|
+ if os.path.isfile(filename):
|
|
|
+ mod_filename = filename
|
|
|
+ elif os.path.isfile("integration/code/%s" % filename):
|
|
|
mod_filename = "integration/code/%s" % filename
|
|
|
elif os.path.isfile("bootstrap/%s" % filename):
|
|
|
mod_filename = "bootstrap/%s" % filename
|
|
@@ -125,12 +127,19 @@ def run_file(files, parameters, expected, mode):
|
|
|
to_compile = to_recompile(address, mod_files)
|
|
|
|
|
|
for mod_filename in to_compile:
|
|
|
+ if mod_filename.endswith(".mvc"):
|
|
|
+ model_mode = "MO"
|
|
|
+ else:
|
|
|
+ model_mode = mode
|
|
|
+ print("COMPILE " + mod_filename)
|
|
|
+ print(" as " + model_mode)
|
|
|
+ mod_files.remove(mod_filename)
|
|
|
if parallel_push:
|
|
|
import threading
|
|
|
- threads.append(threading.Thread(target=compile_file, args=[address, mod_filename, mod_filename, mode, proc]))
|
|
|
+ threads.append(threading.Thread(target=compile_file, args=[address, mod_filename, mod_filename, model_mode, proc]))
|
|
|
threads[-1].start()
|
|
|
else:
|
|
|
- compile_file(address, mod_filename, mod_filename, mode, proc)
|
|
|
+ compile_file(address, mod_filename, mod_filename, model_mode, proc)
|
|
|
|
|
|
if parallel_push:
|
|
|
for t in threads:
|
|
@@ -138,6 +147,7 @@ def run_file(files, parameters, expected, mode):
|
|
|
|
|
|
if mode[-1] == "O":
|
|
|
# Fire up the linker
|
|
|
+ print("Linking " + mod_files)
|
|
|
val = execute("link_and_load", [address, username] + mod_files, wait=True)
|
|
|
if val != 0:
|
|
|
raise Exception("Linking error")
|