diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-06-09 18:03:01 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-06-09 18:03:01 +0100 |
commit | a08d706366ff593431bfb85ec873045bf496b810 (patch) | |
tree | 3c22e706ba6ddc8bbcf70bb4eeaf57b980fca3f1 /test.py | |
parent | 8123ce62094bf88a4107506d7acd3e8e2866bc1f (diff) |
Add methods for pickling and unpickling sessions
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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]) |