[Libguestfs] [PATCH 2/3 take 2] Use LUA variable to determine with which Lua version the tests are run
Richard W.M. Jones
rjones at redhat.com
Thu Dec 13 22:29:22 UTC 2012
On Thu, Dec 13, 2012 at 09:56:03PM +0100, Hilko Bengen wrote:
> ---
> configure.ac | 15 +++++++++
> lua/run-bindtests | 4 ++-
> lua/tests/010-load.lua | 19 -----------
> lua/tests/010-load.lua.in | 19 +++++++++++
Possibly something like this (not tested) in lua/Makefile.am:
-TESTS_ENVIRONMENT = LC_ALL=C $(top_builddir)/run --test $(VG)
+TESTS_ENVIRONMENT = LC_ALL=C $(top_builddir)/run --test $(VG) $(LUA)
That should mean that each script is run using the @LUA@ command
explicitly (except for 'run-bindtests', but see below), which in turn
means that the shebang command in each script is ignored.
This won't work for 'run-bindtests' which is a shell script, and so
will be broken by that change. The only thing I can think of is to
replace it with a lua script :-) but perhaps there is a better way.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
More information about the Libguestfs
mailing list