1
0
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:
Cole Robinson 2016-01-08 18:31:16 -05:00
parent 825d357a46
commit ace4aecd5e
12 changed files with 16 additions and 15 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
: ${srcdir=.}
: ${srcdir=$(dirname $0)}
. $srcdir/test-lib.sh
. $abs_srcdir/schematestutils.sh

View File

@ -1,6 +1,6 @@
#!/bin/sh
: ${srcdir=.}
: ${srcdir=$(dirname $0)}
. $srcdir/test-lib.sh
. $abs_srcdir/schematestutils.sh

View File

@ -1,6 +1,6 @@
#!/bin/sh
: ${srcdir=.}
: ${srcdir=$(dirname $0)}
. $srcdir/test-lib.sh
. $abs_srcdir/schematestutils.sh

View File

@ -1,6 +1,6 @@
#!/bin/sh
: ${srcdir=.}
: ${srcdir=$(dirname $0)}
. $srcdir/test-lib.sh
. $abs_srcdir/schematestutils.sh

View File

@ -1,6 +1,6 @@
#!/bin/sh
: ${srcdir=.}
: ${srcdir=$(dirname $0)}
. $srcdir/test-lib.sh
. $abs_srcdir/schematestutils.sh

View File

@ -1,6 +1,6 @@
#!/bin/sh
: ${srcdir=.}
: ${srcdir=$(dirname $0)}
. $srcdir/test-lib.sh
. $abs_srcdir/schematestutils.sh

View File

@ -1,6 +1,6 @@
#!/bin/sh
: ${srcdir=.}
: ${srcdir=$(dirname $0)}
. $srcdir/test-lib.sh
. $abs_srcdir/schematestutils.sh

View File

@ -1,6 +1,6 @@
#!/bin/sh
: ${srcdir=.}
: ${srcdir=$(dirname $0)}
. $srcdir/test-lib.sh
. $abs_srcdir/schematestutils.sh

View File

@ -1,6 +1,6 @@
#!/bin/sh
: ${srcdir=.}
: ${srcdir=$(dirname $0)}
. $srcdir/test-lib.sh
. $abs_srcdir/schematestutils.sh

View File

@ -1,6 +1,6 @@
#!/bin/sh
: ${srcdir=.}
: ${srcdir=$(dirname $0)}
. $srcdir/test-lib.sh
. $abs_srcdir/schematestutils.sh

View File

@ -1,6 +1,6 @@
#!/bin/sh
: ${srcdir=.}
: ${srcdir=$(dirname $0)}
. $srcdir/test-lib.sh
. $abs_srcdir/schematestutils.sh

View File

@ -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.