aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.py b/test.py
index 336591c..06d4552 100755
--- a/test.py
+++ b/test.py
@@ -23,10 +23,10 @@ if not os.path.exists("build"):
test_files = glob.glob("tests/test_*.cpp")
source_files = glob.glob("src/*.cpp")
-compile_args = "g++ -Itests/include -Iinclude -Ilib --std=c++11".split()
+compile_args = "g++ -g -O0 -Itests/include -Iinclude -Ilib --std=c++11".split()
compile_args += source_files
for test_file in test_files:
- exe_file = "build/" + test_file[:4]
+ exe_file = "build/" + test_file[5:-4]
subprocess.check_call(compile_args + [test_file, "-o", exe_file])
subprocess.check_call([exe_file])