Commit 3d30a9d4 authored by Rico Tzschichholz's avatar Rico Tzschichholz

meson: Add tests

parent dda62bb0
......@@ -147,6 +147,17 @@ if valadoc_enabled and cc.run('''#include <gvc.h>
add_project_arguments('-D', 'WITH_CGRAPH', language: 'vala')
endif
add_test_setup('default', is_default: true, env: 'G_SLICE=debug-blocks G_DEBUG=fatal-warnings')
vg = find_program('valgrind', required: false)
if (vg.found())
add_test_setup('valgrind',
env: 'G_SLICE=always-malloc G_DEBUG=fatal-warnings',
exe_wrapper: [vg, '--error-exitcode=1', '--leak-check=full', '--track-origins=yes'],
timeout_multiplier: 100,
)
endif
subdir('gobject-introspection')
subdir('gee')
subdir('vala')
......@@ -156,6 +167,7 @@ subdir('compiler')
subdir('vapigen')
subdir('vapi')
subdir('doc')
subdir('tests')
if valadoc_enabled
subdir('libvaladoc')
......
This diff is collapsed.
#!/usr/bin/env python3
import sys, os, re
from pathlib import Path
if len(sys.argv) != 3:
print("Wrong amount of parameters.")
inputf = Path(sys.argv[1])
outputf = Path(sys.argv[2])
with inputf.open('r') as ifile:
with outputf.open('w') as ofile:
if not ifile.readline().strip() == "Invalid Code":
ifile.seek(0)
lines = ifile.readlines()
ofile.writelines(lines)
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 to comment