mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
lua: Test globals in Guestfs.* namespace.
This commit is contained in:
@@ -51,6 +51,7 @@ guestfs.so: libluaguestfs.la
|
||||
TESTS_ENVIRONMENT = $(top_builddir)/run --test
|
||||
TESTS = \
|
||||
tests/010-load.lua \
|
||||
tests/015-globals.lua \
|
||||
tests/020-create.lua \
|
||||
tests/025-create-flags.lua \
|
||||
tests/027-create-multiple.lua \
|
||||
@@ -67,6 +68,7 @@ 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 \
|
||||
|
||||
26
lua/tests/015-globals.lua
Executable file
26
lua/tests/015-globals.lua
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/lua
|
||||
-- libguestfs Lua bindings -*- lua -*-
|
||||
-- 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.
|
||||
|
||||
require "guestfs"
|
||||
|
||||
assert (Guestfs._COPYRIGHT)
|
||||
print ("_COPYRIGHT = ", Guestfs._COPYRIGHT)
|
||||
assert (Guestfs._DESCRIPTION)
|
||||
print ("_DESCRIPTION = ", Guestfs._DESCRIPTION)
|
||||
assert (Guestfs._VERSION)
|
||||
print ("_VERSION = ", Guestfs._VERSION)
|
||||
Reference in New Issue
Block a user