mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 23:37:42 +00:00
856e84a516
This unifies the test scripts to all use the similar pattern added for schematests in ace4aecd. This gives the following - Enables running all tests from outside of tests/ dir - Drops redundant abs_* definitions, which are set by test-lib.sh - Drops unnecessary srcdir variable which was only used for sourcing test-lib.sh Behavior changes: - srcdir can no longer be overwritten, but I don't know why anyone would really need to... - Script VERBOSE setting no longer prints commands executed by test-lib.sh. if anyone cares I suggest handling this in test-lib.sh which already has other verbose style handling
17 lines
327 B
Bash
Executable File
17 lines
327 B
Bash
Executable File
#!/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/daemon/libvirtd --version
|
|
fi
|
|
|
|
fail=0
|
|
|
|
$abs_top_builddir/daemon/libvirtd --config=no-such-conf --timeout=5 2> log
|
|
RET=$?
|
|
|
|
test "$RET" != "0" && exit 0 || exit 1
|