mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
tests: Extend $TEST_FUNCTIONS with predefined functions for skipping tests etc.
Apply this change across all the shell scripts containing tests. Additionally this defines the environment variables $abs_srcdir, $abs_builddir, $top_srcdir, $top_builddir, $abs_top_srcdir and $abs_top_builddir which can now be used throughout test scripts.
This commit is contained in:
@@ -19,13 +19,8 @@
|
||||
# Test that the correct 'complete' command is included in the script.
|
||||
# Mainly prevents symlinking errors and some omissions.
|
||||
|
||||
unset CDPATH
|
||||
export LANG=C
|
||||
|
||||
if [ -n "$SKIP_TEST_COMPLETE_IN_SCRIPT_SH" ]; then
|
||||
echo "$0: test skipped because environment variable is set"
|
||||
exit 77
|
||||
fi
|
||||
$TEST_FUNCTIONS
|
||||
skip_if_skipped
|
||||
|
||||
if [ -z "$commands" ]; then
|
||||
echo "$0: \$commands is not defined. Use 'make check' to run this test."
|
||||
|
||||
Reference in New Issue
Block a user