gtk/tests/meson.build

158 lines
3.5 KiB
Meson
Raw Normal View History

gtk_tests = [
# testname, optional extra sources
['devicepixels'],
['testsections'],
['testfilelauncher'],
['input'],
['testpopup'],
['testupload'],
['testtransform'],
['testdropdown'],
['rendernode'],
['rendernode-create-tests'],
['overlayscroll'],
['syncscroll'],
['animated-resizing', ['frame-stats.c', 'variable.c']],
['animated-revealing', ['frame-stats.c', 'variable.c']],
['motion-compression'],
['scrolling-performance', ['frame-stats.c', 'variable.c']],
['blur-performance', ['../gsk/gskcairoblur.c']],
['simple'],
['video-timer', ['variable.c']],
['testaccel'],
['testadjustsize'],
['testappchooser'],
['testappchooserbutton'],
['testassistant'],
['testbaseline'],
2023-04-27 15:56:12 +00:00
['testbaseline2'],
['testcalendar'],
['testcombo'],
2019-10-28 19:50:25 +00:00
['testcolumnview'],
['testcombochange'],
['testcellrenderertext'],
['testdialog'],
['testdnd2'],
['testdndresize'],
['testellipsise'],
['testentrycompletion'],
['testentryicons'],
['testfilechooser'],
['testflowbox'],
['testfontoptions'],
['testframe'],
['testfullscreen'],
['testglarea'],
['testglblending', ['gtkgears.c']],
['testgrid'],
['testgtk'],
['testheaderbar'],
['testheightforwidth'],
['testhover'],
['testiconview'],
['testiconview-keynav'],
['testinfobar'],
['testkineticscrolling'],
['testlist'],
['testlist2'],
['testlist3'],
['testlist4'],
['testlistdnd'],
['testlistview'],
['testlistview-animating'],
['testlevelbar'],
['testlockbutton'],
['testmenubutton'],
['testmountoperation'],
['testnotebookdnd'],
['testnouiprint'],
['testoverlay'],
['testoverlaystyleclass'],
['testprint', ['testprintfileoperation.c']],
['testscale'],
['testselectionmode'],
['testsounds'],
['testspinbutton'],
['testtreechanging'],
['testtreednd'],
['testtreeedit'],
['testtreemodel'],
['testtreeview'],
['testtreefocus'],
['testtreeflow'],
['testtreecolumns'],
['testtreecolumnsizing'],
['testtreesort'],
['testverticalcells'],
['treestoretest'],
['testgrouping'],
['testtooltips'],
['testexpand'],
['testvolumebutton'],
['testscrolledwindow'],
['testscrolledge'],
2020-04-16 21:23:48 +00:00
['testscrolltofocus'],
['testcellarea'],
['testswitch'],
['testtreepos'],
['testsensitive'],
['testtextscroll'],
['testtextview'],
['testtextview2'],
['testgmenu'],
['testlogout'],
['teststack'],
['testrevealer'],
['testrevealer2'],
['testsuspended'],
['testwindowsize'],
['testpopover'],
['listmodel'],
['testgaction'],
['testwidgetfocus'],
2018-08-11 20:19:13 +00:00
['testwidgettransforms'],
['testcenterbox'],
['testgridbaseline'],
['showrendernode'],
2017-12-06 18:22:24 +00:00
['testborderdrawing'],
2017-12-21 16:57:16 +00:00
['testoutsetshadowdrawing'],
['testblur'],
['testtexture'],
2019-03-24 14:52:42 +00:00
['testwindowdrag'],
['testinhibitshortcuts'],
['testzoom'],
2023-01-06 04:03:27 +00:00
['testdatatable', ['frame-stats.c', 'variable.c']],
['testfiledialog'],
]
2016-09-24 09:31:00 +00:00
if os_unix
gtk_tests += [
['testfontchooserdialog'],
2024-02-02 20:59:13 +00:00
]
endif
if os_linux
gtk_tests += [
['testdmabuf', ['testdmabuf.c', 'gtkclipper.c']],
]
2016-09-24 09:31:00 +00:00
endif
2016-09-24 09:07:34 +00:00
if x11_enabled
gtk_tests += [['testerrors']]
endif
# Pass the source dir here so programs can change into the source directory
# and find .ui files and .png files and such that they load at runtime
test_args = ['-DGTK_SRCDIR="@0@"'.format(meson.current_source_dir())]
foreach t: gtk_tests
test_name = t.get(0)
test_srcs = ['@0@.c'.format(test_name), t.get(1, [])]
executable(test_name,
sources: test_srcs,
include_directories: [confinc, gdkinc],
c_args: test_args + common_cflags,
dependencies: [libgtk_dep, libm],
)
endforeach