mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user