Skip to content

Commit

Permalink
build: Remove things
Browse files Browse the repository at this point in the history
  • Loading branch information
swick committed Oct 30, 2024
1 parent 4e0b624 commit 9fe5f53
Showing 1 changed file with 0 additions and 86 deletions.
86 changes: 0 additions & 86 deletions tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -57,76 +57,6 @@ test(
protocol: test_protocol,
)

# We build this in the tests/ subdirectory so that it can be accessed
# via G_TEST_BUILT
test_backends = executable(
'test-backends',
'backend/test-backends.c',
'backend/request.c',
'backend/session.c',
'backend/access.c',
'backend/lockdown.c',
'backend/settings.c',
'glib-backports.c',
document_portal_built_sources,
document_portal_built_sources,
impl_built_sources,
dependencies: [common_deps],
include_directories: [common_includes, src_includes],
install: enable_installed_tests,
install_dir: installed_tests_dir,
)

portals_test_deps = []
portals_test_sources = files()

if have_libportal
portals_test_deps += [libportal_dep]

portals_test_sources += files(
'glib-backports.c',
)
endif

test_portals = executable(
'test-portals',
'test-portals.c',
'utils.c',
portals_test_sources,
impl_built_sources,
permission_store_built_sources,
portal_built_sources,
xdp_utils_sources,
dependencies: [common_deps, portals_test_deps, xdp_utils_deps],
include_directories: [common_includes, xdp_utils_includes],
c_args: [
'-DXDG_DP_BUILDDIR="src"',
'-DXDG_PS_BUILDDIR="document-portal"',
],
install: enable_installed_tests,
install_dir: installed_tests_dir,
)

# Split the portal tests into one test per portal, this makes debugging a lot
# easier.
# Keep in sync with test-portals.c
portal_tests = [
]

test_env = env_tests
test_env.set('XDG_CURRENT_DESKTOP', 'test')
foreach p : portal_tests
test(
'test-portals-@0@'.format(p),
test_portals,
args: ['--verbose', '--keep-going', '--tap', '-p', '/portal/@0@'.format(p)],
depends: [test_backends, test_portals],
env: test_env,
protocol: test_protocol,
suite: 'portals',
)
endforeach

if enable_installed_tests
install_data(
'session.conf.in',
Expand Down Expand Up @@ -293,20 +223,4 @@ if enable_installed_tests
install_dir: installed_tests_data_dir,
)
endforeach

foreach p : portal_tests
data = configuration_data()
data.set('installed_testdir', installed_tests_dir)
data.set('libdir', libdir)
data.set('exec', 'test-portals -p /portal/@0@'.format(p))
configure_file(
input: 'template.test.in',
output: 'test-portals-@[email protected]'.format(p),
configuration: data,
install: true,
install_dir: installed_tests_data_dir,
)
endforeach
endif

meson.add_devenv(test_env)

0 comments on commit 9fe5f53

Please sign in to comment.