Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Gnome/testsuite/gdk/   (Gnome Linux Desktop Version 4.23.2©)  Datei vom 30.5.2026 mit Größe 3 kB image not shown  

Quelle  meson.build   Sprache: unbekannt

 
Spracherkennung für: .build vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

clipboard_client = executable('clipboard-client',
  sources: ['clipboard-client.c'],
  include_directories: [confinc],
  c_args: common_cflags,
  dependencies: [ libgtk_dep ],
  install: false,
)

tests = [
  { 'name': 'array' },
  { 'name': 'cairo' },
  { 'name': 'clipboard', 'parallel': false, 'suites': 'flaky' },
  { 'name': 'contentformats' },
  { 'name': 'contentserializer' },
  { 'name': 'cursor' },
  { 'name': 'displaymanager' },
  { 'name': 'glcontext' },
  { 'name': 'keysyms' },
  { 'name': 'rectangle' },
  { 'name': 'rgba' },
  { 'name': 'seat' },
  { 'name': 'texture-threads' },
  { 'name': 'toplevellayout' },
  { 'name': 'popuplayout' },
]

if x11_enabled
  tests += [
    { 'name': 'display' },
    { 'name': 'encoding' },
  ]
endif

if os_linux
  tests += [
    { 'name': 'dmabuf-support',
      'sources': [ 'udmabuf.c' ],
      # This needs to pass on upstream Gitlab-CI, but cannot be guaranteed
      # to work on developer machines or downstream build environments
      'suites': [ 'needs-udmabuf' ],
    },
    { 'name': 'colorstate',
      'sources': [ 'udmabuf.c' ],
    },
  ]
else
  tests += [
    { 'name': 'colorstate' }
  ]
endif

foreach t : tests
  test_name = t.get('name')
  test_exe = executable(test_name,
    sources: [ '@0@.c'.format(test_name) ] + t.get('sources', []),
    c_args: common_cflags,
    dependencies: libgtk_dep,
    install: false,
  )

  suites = ['gdk'] + t.get('suites', [])

  test(test_name, test_exe,
    args: [ '--tap', '-k' ],
    protocol: 'tap',
    is_parallel: t.get('parallel', false),
    env: [
      'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
      'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
      'DBUS_SESSION_BUS_ADDRESS=',
    ],
    suite: suites,
  )
endforeach

internal_tests = [
  { 'name': 'colorstate-internal' },
  { 'name': 'dihedral' },
  { 'name': 'image' },
  { 'name': 'memorytexture', 'sources': [ 'gdktestutils.c' ] },
  { 'name': 'mipmap', 'sources': [ 'gdktestutils.c' ] },
  { 'name': 'texture' },
  { 'name': 'gltexture' },
  { 'name': 'subsurface' },
  { 'name': 'memoryformat' },
]

internal_test_executables = []

if os_linux
  internal_tests += { 'name': 'dmabufformats' }
  internal_tests += { 'name': 'dmabuftexture', 'suites': 'failing' }

  internal_test_executables += { 'name': 'waylandsocket' }
endif

foreach t : internal_tests
  test_name = t.get('name')
  test_exe = executable(test_name,
    sources: [ '@0@.c'.format(test_name) ] + t.get('sources', []),
    c_args: common_cflags + ['-DGTK_COMPILATION'],
    dependencies: libgtk_static_dep,
    install: false,
  )

  suites = ['gdk'] + t.get('suites', [])

  test(test_name, test_exe,
    args: [ '--tap', '-k' ],
    protocol: 'tap',
    env: [
      'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
      'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
      'DBUS_SESSION_BUS_ADDRESS=',
    ],
    suite: suites,
  )
endforeach

test_executables = {}
foreach t : internal_test_executables
  test_name = t.get('name')
  test_executable = executable(test_name,
    sources: [ '@0@.c'.format(test_name) ] + t.get('sources', []),
    c_args: common_cflags + ['-DGTK_COMPILATION'],
    dependencies: libgtk_static_dep,
    install: false,
  )
  test_executables += {test_name: test_executable}
endforeach

[Dauer der Verarbeitung: 0.16 Sekunden, vorverarbeitet 2026-07-02]