2017-03-12 18:13:31 +00:00
|
|
|
gtk_tests = [
|
|
|
|
# testname, optional extra sources
|
|
|
|
['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'],
|
|
|
|
['print-editor'],
|
|
|
|
['video-timer', ['variable.c']],
|
|
|
|
['testaccel'],
|
|
|
|
['testadjustsize'],
|
|
|
|
['testappchooser'],
|
|
|
|
['testappchooserbutton'],
|
|
|
|
['testassistant'],
|
|
|
|
['testbaseline'],
|
|
|
|
['testbox'],
|
|
|
|
['testbuttons'],
|
|
|
|
['testcairo'],
|
|
|
|
['testcalendar'],
|
2017-11-20 01:07:31 +00:00
|
|
|
['testclipboard2'],
|
2017-03-12 18:13:31 +00:00
|
|
|
['testcolorchooser'],
|
|
|
|
['testcolorchooser2'],
|
|
|
|
['testcombo'],
|
|
|
|
['testcombochange'],
|
|
|
|
['testcellrenderertext'],
|
|
|
|
['testdialog'],
|
|
|
|
['testdnd'],
|
|
|
|
['testdnd2'],
|
2020-01-08 15:34:56 +00:00
|
|
|
['testdnd3'],
|
2017-03-12 18:13:31 +00:00
|
|
|
['testellipsise'],
|
|
|
|
['testemblems'],
|
|
|
|
['testentrycompletion'],
|
|
|
|
['testentryicons'],
|
|
|
|
['testfilechooser'],
|
|
|
|
['testfilechooserbutton'],
|
|
|
|
['testflowbox'],
|
|
|
|
['testfontchooser'],
|
|
|
|
['testfontoptions'],
|
|
|
|
['testframe'],
|
|
|
|
['testfullscreen'],
|
|
|
|
['testgiconpixbuf'],
|
|
|
|
['testglarea'],
|
|
|
|
['testglblending', ['gtkgears.c']],
|
|
|
|
['testgrid'],
|
|
|
|
['testgtk'],
|
|
|
|
['testheaderbar'],
|
|
|
|
['testheightforwidth'],
|
2020-03-04 00:24:32 +00:00
|
|
|
['testhover'],
|
2017-03-12 18:13:31 +00:00
|
|
|
['testiconview'],
|
|
|
|
['testiconview-keynav'],
|
|
|
|
['testicontheme'],
|
2018-03-12 15:29:21 +00:00
|
|
|
['testinfobar'],
|
2017-03-12 18:13:31 +00:00
|
|
|
['testkineticscrolling'],
|
|
|
|
['testlist'],
|
|
|
|
['testlist2'],
|
|
|
|
['testlist3'],
|
2017-11-29 07:46:48 +00:00
|
|
|
['testlist4'],
|
2017-03-12 18:13:31 +00:00
|
|
|
['testlevelbar'],
|
|
|
|
['testlockbutton'],
|
|
|
|
['testmenubutton'],
|
2018-04-08 12:07:38 +00:00
|
|
|
['testmodelbutton'],
|
2017-03-12 18:13:31 +00:00
|
|
|
['testmountoperation'],
|
|
|
|
['testnotebookdnd'],
|
|
|
|
['testnouiprint'],
|
|
|
|
['testorientable'],
|
|
|
|
['testoverlay'],
|
|
|
|
['testoverlaystyleclass'],
|
|
|
|
['testprint', ['testprintfileoperation.c']],
|
|
|
|
['testscale'],
|
|
|
|
['testselectionmode'],
|
|
|
|
['testspinbutton'],
|
|
|
|
['testtoolbar2'],
|
|
|
|
['testtreechanging'],
|
|
|
|
['testtreednd'],
|
|
|
|
['testtreeedit'],
|
|
|
|
['testtreemodel'],
|
|
|
|
['testtreeview'],
|
|
|
|
['testtreefocus'],
|
|
|
|
['testtreeflow'],
|
|
|
|
['testtreecolumns'],
|
|
|
|
['testtreecolumnsizing'],
|
|
|
|
['testtreesort'],
|
|
|
|
['testverticalcells'],
|
|
|
|
['treestoretest'],
|
|
|
|
['testgrouping'],
|
|
|
|
['testtooltips'],
|
|
|
|
['testexpand'],
|
|
|
|
['testexpander'],
|
|
|
|
['testvolumebutton'],
|
|
|
|
['testscrolledwindow'],
|
|
|
|
['testscrolledge'],
|
|
|
|
['testcellarea'],
|
|
|
|
['testswitch'],
|
|
|
|
['testnoscreen'],
|
|
|
|
['testtreepos'],
|
|
|
|
['testsensitive'],
|
|
|
|
['testtextview'],
|
2020-01-03 15:14:19 +00:00
|
|
|
['testtextview2'],
|
2017-03-12 18:13:31 +00:00
|
|
|
['testpixbuf-scale'],
|
|
|
|
['testgmenu'],
|
|
|
|
['testlogout'],
|
|
|
|
['teststack'],
|
|
|
|
['testrevealer'],
|
|
|
|
['testrevealer2'],
|
2018-06-12 01:56:21 +00:00
|
|
|
['testtreelistmodel'],
|
2017-03-12 18:13:31 +00:00
|
|
|
['testsplitheaders'],
|
|
|
|
['teststackedheaders'],
|
|
|
|
['testwindowsize'],
|
|
|
|
['testpopover'],
|
|
|
|
['gdkgears', ['gtkgears.c']],
|
|
|
|
['listmodel'],
|
|
|
|
['testgaction'],
|
2017-06-03 13:08:44 +00:00
|
|
|
['testwidgetfocus'],
|
2018-08-11 20:19:13 +00:00
|
|
|
['testwidgettransforms'],
|
2017-06-03 13:08:44 +00:00
|
|
|
['testcenterbox'],
|
2017-11-11 05:41:41 +00:00
|
|
|
['testgridbaseline'],
|
|
|
|
['showrendernode'],
|
2017-12-06 18:22:24 +00:00
|
|
|
['testborderdrawing'],
|
2017-12-21 16:57:16 +00:00
|
|
|
['testoutsetshadowdrawing'],
|
2018-03-20 08:19:10 +00:00
|
|
|
['testblur'],
|
|
|
|
['testtexture'],
|
2019-03-24 14:52:42 +00:00
|
|
|
['testwindowdrag'],
|
2020-03-20 14:17:41 +00:00
|
|
|
['testinhibitshortcuts'],
|
2019-10-24 02:13:11 +00:00
|
|
|
['testtexthistory', ['../gtk/gtktexthistory.c']],
|
2017-03-12 18:13:31 +00:00
|
|
|
]
|
2016-09-24 09:31:00 +00:00
|
|
|
|
2018-04-22 12:47:32 +00:00
|
|
|
if os_unix
|
2017-03-12 18:13:31 +00:00
|
|
|
gtk_tests += [['testfontchooserdialog']]
|
2016-09-24 09:31:00 +00:00
|
|
|
endif
|
2016-09-24 09:07:34 +00:00
|
|
|
|
2017-03-12 18:13:31 +00:00
|
|
|
if x11_enabled
|
|
|
|
gtk_tests += [['testerrors']]
|
|
|
|
endif
|
|
|
|
|
2017-03-12 18:36:21 +00:00
|
|
|
# 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())]
|
|
|
|
|
2017-04-26 16:04:20 +00:00
|
|
|
foreach t: gtk_tests
|
2017-03-12 18:13:31 +00:00
|
|
|
test_name = t.get(0)
|
|
|
|
test_srcs = ['@0@.c'.format(test_name), t.get(1, [])]
|
2017-03-12 18:36:21 +00:00
|
|
|
executable(test_name, test_srcs,
|
2017-04-26 16:04:20 +00:00
|
|
|
include_directories: [confinc, gdkinc],
|
2020-03-06 17:05:43 +00:00
|
|
|
c_args: test_args + common_cflags,
|
2017-04-26 16:04:20 +00:00
|
|
|
dependencies: [libgtk_dep, libm])
|
2017-03-12 18:13:31 +00:00
|
|
|
endforeach
|
|
|
|
|
2020-01-21 23:09:43 +00:00
|
|
|
if get_option('profiler')
|
|
|
|
executable('testperf', 'testperf.c',
|
|
|
|
dependencies: [profiler_dep, platform_gio_dep, libm])
|
|
|
|
endif
|
2020-01-21 18:59:12 +00:00
|
|
|
|
2016-09-24 09:07:34 +00:00
|
|
|
subdir('visuals')
|