mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
tests: Fix running schematests directly from topdir
Previously it failed like: $ ./tests/domainschematest ./tests/domainschematest: line 4: ./test-lib.sh: No such file or directory
This commit is contained in:
parent
825d357a46
commit
ace4aecd5e
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${srcdir=.}
|
||||
: ${srcdir=$(dirname $0)}
|
||||
. $srcdir/test-lib.sh
|
||||
. $abs_srcdir/schematestutils.sh
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${srcdir=.}
|
||||
: ${srcdir=$(dirname $0)}
|
||||
. $srcdir/test-lib.sh
|
||||
. $abs_srcdir/schematestutils.sh
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${srcdir=.}
|
||||
: ${srcdir=$(dirname $0)}
|
||||
. $srcdir/test-lib.sh
|
||||
. $abs_srcdir/schematestutils.sh
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${srcdir=.}
|
||||
: ${srcdir=$(dirname $0)}
|
||||
. $srcdir/test-lib.sh
|
||||
. $abs_srcdir/schematestutils.sh
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${srcdir=.}
|
||||
: ${srcdir=$(dirname $0)}
|
||||
. $srcdir/test-lib.sh
|
||||
. $abs_srcdir/schematestutils.sh
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${srcdir=.}
|
||||
: ${srcdir=$(dirname $0)}
|
||||
. $srcdir/test-lib.sh
|
||||
. $abs_srcdir/schematestutils.sh
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${srcdir=.}
|
||||
: ${srcdir=$(dirname $0)}
|
||||
. $srcdir/test-lib.sh
|
||||
. $abs_srcdir/schematestutils.sh
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${srcdir=.}
|
||||
: ${srcdir=$(dirname $0)}
|
||||
. $srcdir/test-lib.sh
|
||||
. $abs_srcdir/schematestutils.sh
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${srcdir=.}
|
||||
: ${srcdir=$(dirname $0)}
|
||||
. $srcdir/test-lib.sh
|
||||
. $abs_srcdir/schematestutils.sh
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${srcdir=.}
|
||||
: ${srcdir=$(dirname $0)}
|
||||
. $srcdir/test-lib.sh
|
||||
. $abs_srcdir/schematestutils.sh
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${srcdir=.}
|
||||
: ${srcdir=$(dirname $0)}
|
||||
. $srcdir/test-lib.sh
|
||||
. $abs_srcdir/schematestutils.sh
|
||||
|
||||
|
@ -18,10 +18,11 @@
|
||||
#
|
||||
# Based on an idea from GNU coreutils
|
||||
|
||||
test -z "$abs_srcdir" && abs_srcdir=$(pwd)
|
||||
test -z "$abs_builddir" && abs_builddir=$(pwd)
|
||||
test -z "$abs_top_srcdir" && abs_top_srcdir=$(pwd)/..
|
||||
test -z "$abs_top_builddir" && abs_top_builddir=$(pwd)/..
|
||||
_scriptdir="$(realpath $(dirname $0))"
|
||||
test -z "$abs_srcdir" && abs_srcdir=$_scriptdir
|
||||
test -z "$abs_builddir" && abs_builddir=$_scriptdir
|
||||
test -z "$abs_top_srcdir" && abs_top_srcdir=$_scriptdir/..
|
||||
test -z "$abs_top_builddir" && abs_top_builddir=$_scriptdir/..
|
||||
test -z "$LC_ALL" && LC_ALL=C
|
||||
|
||||
# Skip this test if the shell lacks support for functions.
|
||||
|
Loading…
Reference in New Issue
Block a user