From a08d706366ff593431bfb85ec873045bf496b810 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 9 Jun 2015 18:03:01 +0100 Subject: Add methods for pickling and unpickling sessions --- test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test.py') diff --git a/test.py b/test.py index 06d4552..e1ef5c9 100755 --- a/test.py +++ b/test.py @@ -26,7 +26,11 @@ source_files = glob.glob("src/*.cpp") compile_args = "g++ -g -O0 -Itests/include -Iinclude -Ilib --std=c++11".split() compile_args += source_files +def run(args): + print " ".join(args) + subprocess.check_call(args) + for test_file in test_files: exe_file = "build/" + test_file[5:-4] - subprocess.check_call(compile_args + [test_file, "-o", exe_file]) - subprocess.check_call([exe_file]) + run(compile_args + [test_file, "-o", exe_file]) + run([exe_file]) -- cgit v1.2.3