aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-06-09 18:03:01 +0100
committerMark Haines <mark.haines@matrix.org>2015-06-09 18:03:01 +0100
commita08d706366ff593431bfb85ec873045bf496b810 (patch)
tree3c22e706ba6ddc8bbcf70bb4eeaf57b980fca3f1 /test.py
parent8123ce62094bf88a4107506d7acd3e8e2866bc1f (diff)
Add methods for pickling and unpickling sessions
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py8
1 files changed, 6 insertions, 2 deletions
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])