Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Thu, 06 Feb 2025 22:11:42 UTC Commit: 909e88ea6bad60708e9048df8363faa453bcda28 https://github.com/geany/geany/commit/909e88ea6bad60708e9048df8363faa453bcda...
Log Message: ----------- Merge pull request #4231 from techee/meson_test
Add ctags unit test for meson
Modified Paths: -------------- tests/ctags/Makefile.am tests/ctags/simple.Meson_unittest tests/ctags/simple.Meson_unittest.tags tests/meson.build
Modified: tests/ctags/Makefile.am 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -318,6 +318,7 @@ test_sources = \ simple.lisp \ simple.lua \ simple.mak \ + simple.Meson_unittest \ simple.md \ simple.ml \ simple.php \
Modified: tests/ctags/simple.Meson_unittest 48 lines changed, 48 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,48 @@ +project('c++ foolib', 'cpp', + version : '1.0.0', + license : 'MIT') +add_global_arguments('-DSOME_TOKEN=value', language : 'cpp') +glib_dep = dependency('glib-2.0') + +inc = include_directories('include') + +subdir('include') +subdir('src') +subdir('test') + +pkg_mod = import('pkgconfig') +pkg_mod.generate(libraries : foolib, + version : '1.0', + name : 'libfoobar', + filebase : 'foobar', + description : 'A Library to barnicate your foos.') + +foo_sources = ['source1.cpp', 'source2.cpp'] +foolib = shared_library('foo', + foo_sources, + include_directories : inc, + dependencies : glib_dep, + install : true) + +testexe = executable('testexe', 'footest.cpp', + include_directories : inc, + link_with : foolib) +test('foolib test', testexe) + +mytarget = custom_target('targetname', + output : outfile, + input : infile, + command : [comp, '@INPUT@', '@OUTPUT@'], + install : true, + install_dir : 'subdir') + +suites = [ + { 'suite': 'dbus-broker', 'env': ['DBUS_BROKER_TEST_BROKER=' + exe_dbus_broker.full_path()]}, +] +foreach suite : suites + benchmark('Connection', bench_connect, timeout: 60, kwargs: suite) + benchmark('Message passing', bench_message, timeout: 120, kwargs: suite) +endforeach + +run_target('inspector', + command : ['scripts/inspect.sh', '--exclude', 'tests'])
Modified: tests/ctags/simple.Meson_unittest.tags 24 lines changed, 24 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,24 @@ +Connection�16�0 +function: Connection +Message passing�16�0 +function: Message passing +c++ foolib�256�0 +namespace: c++ foolib +foo�524288�0 +other: foo +foolib test�8�0 +field: foolib test +include�65536�0 +macro: include +inspector�64�0 +member: inspector +pkgconfig�512�0 +package: pkgconfig +src�65536�0 +macro: src +targetname�4�0 +enumerator: targetname +test�65536�0 +macro: test +testexe�524288�0 +other: testexe
Modified: tests/meson.build 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -315,6 +315,7 @@ ctags_tests = [ 'ctags/simple.lisp.tags', 'ctags/simple.lua.tags', 'ctags/simple.mak.tags', + 'ctags/simple.Meson_unittest.tags', 'ctags/simple.md.tags', 'ctags/simple.ml.tags', 'ctags/simple.php.tags',
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).