diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-11-20 13:56:06 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-11-20 14:11:47 +0000 |
commit | 7f1f7dd44f4b85c1ce027b2ed194d388518ff452 (patch) | |
tree | ebe5c95addfcbefdb0361a988f7ece455a7d67aa /lua | |
parent | b19f007bd2449f635780078e61a174f19838b32d (diff) | |
download | libguestfs-7f1f7dd44f4b85c1ce027b2ed194d388518ff452.tar.gz libguestfs-7f1f7dd44f4b85c1ce027b2ed194d388518ff452.tar.xz libguestfs-7f1f7dd44f4b85c1ce027b2ed194d388518ff452.zip |
lua: Add bindtests.
Diffstat (limited to 'lua')
-rw-r--r-- | lua/Makefile.am | 5 | ||||
-rwxr-xr-x | lua/run-bindtests | 20 |
2 files changed, 24 insertions, 1 deletions
diff --git a/lua/Makefile.am b/lua/Makefile.am index abdc4f02..8cc5930d 100644 --- a/lua/Makefile.am +++ b/lua/Makefile.am @@ -20,10 +20,12 @@ include $(top_srcdir)/subdir-rules.mk lualibdir = $(libdir)/lua/$(LUA_VERSION) generator_built = \ + bindtests.lua \ lua-guestfs.c EXTRA_DIST = \ - $(generator_built) + $(generator_built) \ + run-bindtests CLEANFILES = *~ guestfs.so @@ -50,6 +52,7 @@ guestfs.so: libluaguestfs.la # Tests. TESTS_ENVIRONMENT = $(top_builddir)/run --test TESTS = \ + run-bindtests \ tests/010-load.lua \ tests/015-globals.lua \ tests/020-create.lua \ diff --git a/lua/run-bindtests b/lua/run-bindtests new file mode 100755 index 00000000..170e45b8 --- /dev/null +++ b/lua/run-bindtests @@ -0,0 +1,20 @@ +#!/bin/sh - +# libguestfs Lua bindings +# Copyright (C) 2012 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +lua bindtests.lua > bindtests.tmp +diff -u $srcdir/../bindtests bindtests.tmp |