Skip to content

Commit

Permalink
tests: Add test-document-fuse.sh to meson tests
Browse files Browse the repository at this point in the history
This way "meson test" runs this test too.
  • Loading branch information
alexlarsson committed Nov 8, 2023
1 parent 900e676 commit 845c4d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ test(
protocol: test_protocol,
)

test_document_fuse = find_program('test-document-fuse.sh')

test(
'test-document-fuse.sh',
test_document_fuse,
env: env_tests,
is_parallel: false,
protocol: 'tap',
timeout : 300,
)

if enable_installed_tests
install_data('dbs/no_tables', install_dir: installed_tests_dir / 'dbs')
endif
Expand Down
3 changes: 2 additions & 1 deletion tests/test-document-fuse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ fi
# Only do this when running uninstalled; when running as an installed-test,
# we rely on D-Bus activation.
if [ -n "${XDP_UNINSTALLED:-}" ]; then
./xdg-document-portal -r &
$test_builddir/../document-portal/xdg-document-portal -r &
sleep 0.2 # Make sure the portal has connected to dbus
fi

# First run a basic single-thread test
Expand Down

0 comments on commit 845c4d2

Please sign in to comment.