tests: Add $TEST_FUNCTIONS.

This macro(?) expands to some shell script to source the
tests/test-functions.sh file from its correct location.  The intention
is to use this in all tests, but in this commit only the existing
tests which already include test-functions.sh are modified.
This commit is contained in:
Richard W.M. Jones
2017-02-18 14:49:43 +00:00
parent 51a703775c
commit e66be44016
10 changed files with 21 additions and 16 deletions

View File

@@ -87,3 +87,8 @@ if HAVE_OCAMLOPT
.ml.cmx:
$(guestfs_am_v_ocamlopt)$(OCAMLFIND) ocamlopt $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
endif
# Test shell scripts should use '$TEST_FUNCTIONS' to get a predefined
# set of helper functions for running tests (see
# tests/test-functions.sh).
export TEST_FUNCTIONS := source $(abs_top_srcdir)/tests/test-functions.sh