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