The test simply invokes libvirtd and expects it to fail. We can do that
directly in meson without the need for a wrapper script.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
install_dir: sbindir,
install_rpath: libvirt_rpath,
)
+
+ # libvirtd_prog is needed by the test suite
+ if daemon['name'] == 'libvirtd'
+ libvirtd_prog = bin
+ endif
endforeach
+++ /dev/null
-#!/bin/sh
-# Ensure that libvirt fails when given nonexistent --config=FILE
-
-. "$(dirname $0)/test-lib.sh"
-
-if test "$VERBOSE" = yes; then
- set -x
- $abs_top_builddir/src/libvirtd --version
-fi
-
-fail=0
-
-$abs_top_builddir/src/libvirtd --config=no-such-conf --timeout=5 2> log
-RET=$?
-
-test "$RET" != "0" && exit 0 || exit 1
test_scripts = []
if conf.has('WITH_LIBVIRTD')
+ test('libvirtd fail with missing config',
+ libvirtd_prog,
+ args: [ '--config=no-such-conf', '--timeout=5' ],
+ should_fail: true,
+ suite: 'bin',
+ )
+
test_scripts += [
- 'libvirtd-fail',
'virsh-auth',
'virsh-uriprecedence',
]