1 2 3test_units = [ 4 'test-hostname', 5 # 'test-time-entry', # FIXME 6] 7 8cflags = [ 9 '-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()), 10 '-DTEST_TOPSRCDIR="@0@"'.format(meson.source_root()) 11] 12 13foreach unit: test_units 14 exe = executable( 15 unit, 16 unit + '.c', 17 include_directories : [ top_inc, common_inc ], 18 dependencies : common_deps + [libwidgets_dep], 19 c_args : cflags, 20 ) 21 test(unit, exe) 22endforeach 23