diff options
author | Brendan Long <self@brendanlong.com> | 2018-11-22 21:28:18 +0300 |
---|---|---|
committer | Brendan Long <self@brendanlong.com> | 2018-11-22 21:28:18 +0300 |
commit | ceaed0f0807ca8738072404df5776b7c6d67bb77 (patch) | |
tree | edde1ed3d4759fe8660d6c325c94d2a659177fcc /meson.build | |
parent | 43f649558945c9385377bb77c6e4a531b4c44573 (diff) |
Add tests for StringUtils
This is mostly just a proof-of-concept for tests in the src directory
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 88b28333..d0e3477a 100644 --- a/meson.build +++ b/meson.build @@ -298,3 +298,25 @@ executable( # Post install script meson.add_install_script('meson_post_install.py') + +# tests + +stringutils_test = executable( + 'test_stringutils', + [ + 'src/TestStringUtils.vala' + ], + c_args: c_args, + # The tests intentionally don't catch exceptions + vala_args: vala_args + ['--disable-warnings'], + dependencies: feedreader_deps, + link_with: [ + feedreader_lib + ] +) + +if gtester.found() + test('StringUtils', gtester, args:['-k', '-o', meson.build_root() + '/stringutils.gtester.log', stringutils_test]) +else + test('StringUtils', stringutils_test) +endif |