Commit d4fb65b1 by Enrico Pozzobon

blackpill template builds

parent cac7c7a9
......@@ -8,7 +8,7 @@ import random
import subprocess
def build(algo_dir, template_dir="templates/linux"):
def build(algo_dir, template_dir):
# create a new directory for the build
build_dir = None
while build_dir is None:
......@@ -131,8 +131,8 @@ def main(argv):
# For testing, we only do the first
files = files[:1]
# For testing, we only do the first 5
files = files[:5]
# Clear the build directory as it is a leftover from the previous execution
if os.path.isdir('build'):
......@@ -148,11 +148,15 @@ def main(argv):
for t, d in files:
b = build(d)
b = build(d, template_dir)
test_script.write("./ %s %s\n" % (t, os.path.join(b, 'test')))
st = os.stat(test_script_path)
os.chmod(test_script_path, st.st_mode | stat.S_IEXEC)
print("Now execute ' %s ' to start the test" % test_script_path)
if __name__ == "__main__":
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment