|
@@ -12,7 +12,9 @@ import signal
|
|
|
import random
|
|
|
|
|
|
sys.path.append("interface/HUTN")
|
|
|
+sys.path.append("scripts")
|
|
|
from hutn_compiler.compiler import main as do_compile
|
|
|
+from check_objects import to_recompile
|
|
|
|
|
|
username = "test_user"
|
|
|
parallel_push = True
|
|
@@ -118,15 +120,17 @@ def run_file(files, parameters, expected, mode):
|
|
|
mod_filename = "bootstrap/%s" % filename
|
|
|
else:
|
|
|
raise Exception("File not found: %s" % filename)
|
|
|
- print("Found file " + str(mod_filename))
|
|
|
+ mod_files.append(mod_filename)
|
|
|
+
|
|
|
+ to_compile = to_recompile(address, mod_files)
|
|
|
|
|
|
+ for mod_filename in to_compile:
|
|
|
if parallel_push:
|
|
|
import threading
|
|
|
threads.append(threading.Thread(target=compile_file, args=[address, mod_filename, mod_filename, mode, proc]))
|
|
|
threads[-1].start()
|
|
|
else:
|
|
|
compile_file(address, mod_filename, mod_filename, mode, proc)
|
|
|
- mod_files.append(mod_filename)
|
|
|
|
|
|
if parallel_push:
|
|
|
for t in threads:
|