From 31740229dc397e1986e2a8ea452eeb1983bf2e6a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 17 Mar 2026 19:25:02 +0000 Subject: [PATCH] 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. --- lua/Makefile.am | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lua/Makefile.am b/lua/Makefile.am index 4bffee27d..25c455ec0 100644 --- a/lua/Makefile.am +++ b/lua/Makefile.am @@ -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