lua: Add test files to EXTRA_DIST even if --disable-lua

Ensure that 'make dist' adds the Lua test files to the tarball even if
Lua support was configured out.
This commit is contained in:
Richard W.M. Jones
2026-03-17 19:25:02 +00:00
parent 69305ca07b
commit 31740229dc

View File

@@ -21,11 +21,25 @@ lualibdir = $(libdir)/lua/$(LUA_VERSION)
generator_built = \
bindtests.lua \
lua-guestfs.c
lua-guestfs.c \
$(NULL)
EXTRA_DIST = \
$(generator_built) \
run-bindtests
run-bindtests \
tests/010-load.lua \
tests/015-globals.lua \
tests/020-create.lua \
tests/025-create-flags.lua \
tests/027-create-multiple.lua \
tests/030-config.lua \
tests/050-lvcreate.lua \
tests/060-readdir.lua \
tests/070-optargs.lua \
tests/400-events.lua \
tests/400-progress.lua \
tests/900-errors.lua \
$(NULL)
CLEANFILES += \
guestfs.so
@@ -85,20 +99,6 @@ TESTS += \
tests/400-progress.lua
endif
EXTRA_DIST += \
tests/010-load.lua \
tests/015-globals.lua \
tests/020-create.lua \
tests/025-create-flags.lua \
tests/027-create-multiple.lua \
tests/030-config.lua \
tests/050-lvcreate.lua \
tests/060-readdir.lua \
tests/070-optargs.lua \
tests/400-events.lua \
tests/400-progress.lua \
tests/900-errors.lua
# Run the tests under valgrind.
# This doesn't work. Because Lua dlcloses the library on exit, the
# stack traces contain no useful information. The only way to make