summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-11-20 18:31:45 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-11-20 18:31:45 +0000
commit12905a9bbbfc5a39401bfd3b629ac96b9ce93f3e (patch)
tree101d2ca13faf8ad0f597e274e1170b2e6115bddc /lua
parent1e321b883b8c7f5b7c072e869db26f5a1a0a152e (diff)
downloadlibguestfs-12905a9bbbfc5a39401bfd3b629ac96b9ce93f3e.tar.gz
libguestfs-12905a9bbbfc5a39401bfd3b629ac96b9ce93f3e.tar.xz
libguestfs-12905a9bbbfc5a39401bfd3b629ac96b9ce93f3e.zip
lua: valgrinding Lua code doesn't work.
See comment.
Diffstat (limited to 'lua')
-rw-r--r--lua/Makefile.am11
1 files changed, 10 insertions, 1 deletions
diff --git a/lua/Makefile.am b/lua/Makefile.am
index 11ebea71..be78c6a3 100644
--- a/lua/Makefile.am
+++ b/lua/Makefile.am
@@ -50,7 +50,7 @@ guestfs.so: libluaguestfs.la
ln -sf .libs/libluaguestfs.so $@
# Tests.
-TESTS_ENVIRONMENT = LC_ALL=C $(top_builddir)/run --test
+TESTS_ENVIRONMENT = LC_ALL=C $(top_builddir)/run --test $(VG)
TESTS = \
run-bindtests \
tests/010-load.lua \
@@ -84,6 +84,15 @@ EXTRA_DIST += \
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
+# this work would be to patch Lua or fix valgrind.
+# https://bugs.kde.org/show_bug.cgi?id=79362
+# http://valgrind.org/docs/manual/faq.html#faq.unhelpful
+#check-valgrind:
+# $(MAKE) VG="@VG@" check
+
# Custom install rule.
install-data-hook:
mkdir -p $(DESTDIR)$(lualibdir)