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'],
|
|
|
|
['flicker'],
|
|
|
|
['print-editor'],
|
|
|
|
['video-timer', ['variable.c']],
|
|
|
|
['testaccel'],
|
|
|
|
['testadjustsize'],
|
|
|
|
['testappchooser'],
|
|
|
|
['testappchooserbutton'],
|
|
|
|
['testassistant'],
|
|
|
|
['testbaseline'],
|
|
|
|
['testbbox'],
|
|
|
|
['testbox'],
|
|
|
|
['testboxcss'],
|
|
|
|
['testbuttons'],
|
|
|
|
['testcairo'],
|
|
|
|
['testcalendar'],
|
|
|
|
['testclipboard'],
|
|
|
|
['testcolorchooser'],
|
|
|
|
['testcolorchooser2'],
|
|
|
|
['testcombo'],
|
|
|
|
['testcombochange'],
|
|
|
|
['testcellrenderertext'],
|
|
|
|
['testdialog'],
|
|
|
|
['testdnd'],
|
|
|
|
['testdnd2'],
|
|
|
|
['testellipsise'],
|
|
|
|
['testemblems'],
|
|
|
|
['testentrycompletion'],
|
|
|
|
['testentryicons'],
|
|
|
|
['testfilechooser'],
|
|
|
|
['testfilechooserbutton'],
|
|
|
|
['testflowbox'],
|
|
|
|
['testfontchooser'],
|
|
|
|
['testfontoptions'],
|
|
|
|
['testframe'],
|
|
|
|
['testfullscreen'],
|
|
|
|
['testgiconpixbuf'],
|
|
|
|
['testglarea'],
|
|
|
|
['testglblending', ['gtkgears.c']],
|
|
|
|
['testgrid'],
|
|
|
|
['testgtk'],
|
|
|
|
['testheaderbar'],
|
|
|
|
['testheightforwidth'],
|
|
|
|
['testiconview'],
|
|
|
|
['testiconview-keynav'],
|
|
|
|
['testicontheme'],
|
|
|
|
['testimage'],
|
|
|
|
['testinput'],
|
|
|
|
['testkineticscrolling'],
|
|
|
|
['testlist'],
|
|
|
|
['testlist2'],
|
|
|
|
['testlist3'],
|
|
|
|
['testlevelbar'],
|
|
|
|
['testlockbutton'],
|
|
|
|
['testmenubutton'],
|
|
|
|
['testmountoperation'],
|
|
|
|
['testmultidisplay'],
|
|
|
|
['testnotebookdnd'],
|
|
|
|
['testnouiprint'],
|
|
|
|
['testorientable'],
|
|
|
|
['testoverlay'],
|
|
|
|
['testoverlaystyleclass'],
|
|
|
|
['testprint', ['testprintfileoperation.c']],
|
|
|
|
['testrecentchooser'],
|
|
|
|
['testrecentchoosermenu'],
|
|
|
|
['testrichtext'],
|
|
|
|
['testscale'],
|
|
|
|
['testselection'],
|
|
|
|
['testselectionmode'],
|
|
|
|
['testspinbutton'],
|
|
|
|
['testtoolbar'],
|
|
|
|
['testtoolbar2'],
|
|
|
|
['stresstest-toolbar'],
|
|
|
|
['testtreechanging'],
|
|
|
|
['testtreednd'],
|
|
|
|
['testtreeedit'],
|
|
|
|
['testtreemodel'],
|
|
|
|
['testtreeview'],
|
|
|
|
['testtreefocus'],
|
|
|
|
['testtreeflow'],
|
|
|
|
['testtreecolumns'],
|
|
|
|
['testtreecolumnsizing'],
|
|
|
|
['testtreesort'],
|
|
|
|
['testverticalcells'],
|
|
|
|
['treestoretest'],
|
|
|
|
['testxinerama'],
|
|
|
|
['testgrouping'],
|
|
|
|
['testtooltips'],
|
|
|
|
['testexpand'],
|
|
|
|
['testexpander'],
|
|
|
|
['testvolumebutton'],
|
|
|
|
['testscrolledwindow'],
|
|
|
|
['testscrolledge'],
|
|
|
|
['testcellarea'],
|
|
|
|
['testswitch'],
|
|
|
|
['testtoplevelembed'],
|
|
|
|
['testnoscreen'],
|
|
|
|
['testtreepos'],
|
|
|
|
['testsensitive'],
|
|
|
|
['testtextview'],
|
|
|
|
['testanimation'],
|
|
|
|
['testpixbuf-scale'],
|
|
|
|
['testgmenu'],
|
|
|
|
['testlogout'],
|
|
|
|
['teststack'],
|
|
|
|
['testrevealer'],
|
|
|
|
['testrevealer2'],
|
|
|
|
['testtitlebar'],
|
|
|
|
['testsplitheaders'],
|
|
|
|
['teststackedheaders'],
|
|
|
|
['testactionbar'],
|
|
|
|
['testwindowsize'],
|
|
|
|
['testpopover'],
|
|
|
|
['gdkgears', ['gtkgears.c']],
|
|
|
|
['listmodel'],
|
|
|
|
['testpopup'],
|
|
|
|
['testpopupat'],
|
|
|
|
['testgaction'],
|
2017-06-03 13:08:44 +00:00
|
|
|
['testwidgetfocus'],
|
|
|
|
['testcenterbox'],
|
2017-03-12 18:13:31 +00:00
|
|
|
]
|
2016-09-24 09:31:00 +00:00
|
|
|
|
|
|
|
if os_linux
|
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],
|
|
|
|
c_args: test_args,
|
|
|
|
dependencies: [libgtk_dep, libm])
|
2017-03-12 18:13:31 +00:00
|
|
|
endforeach
|
|
|
|
|
2016-09-24 09:07:34 +00:00
|
|
|
subdir('visuals')
|