appliance/update-initramfs.sh
appliance/vmlinuz.*
autom4te.cache
+capitests/test-command
+capitests/test*.img
+capitests/test*.tmp
+capitests/tests
compile
config.h
config.h.in
ruby/ext/guestfs/extconf.h
ruby/ext/guestfs/mkmf.log
stamp-h1
-test-command
-test*.img
-test*.tmp
-tests
appliance/
The qemu appliance, build scripts and so on.
+capitests/
+ Automated tests of the C API.
+
contrib/
Outside contributions, experimental parts.
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = src daemon appliance fish po examples images
+SUBDIRS = src daemon appliance fish po examples images capitests
if HAVE_OCAML
SUBDIRS += ocaml
guestfish.pod guestfish-actions.pod \
html/pod.css \
HACKING TODO \
- tests.c \
libguestfs.pc libguestfs.pc.in \
gitlog-to-changelog \
recipes/LICENSE \
recipes/*.example \
html/recipes.css \
make-recipes.sh \
- test-cleanup.sh \
contrib/README \
contrib/febootstrap/install.title \
contrib/febootstrap/install.html \
- contrib/febootstrap/install.sh \
- test-bootbootboot.sh
-
-# Tests. These are auto-generated from the test descriptions
-# in the generator.
-
-check_PROGRAMS = tests test-command
-
-tests_SOURCES = tests.c
-tests_CFLAGS = \
- -I$(top_builddir)/src -Wall
-tests_LDADD = $(top_builddir)/src/libguestfs.la
-
-TESTS = tests test-bootbootboot.sh
-TESTS_ENVIRONMENT = \
- SKIP_TEST_COMMAND=$(shell ldd test-command | grep -sq 'not a dynamic executable' || echo 1) \
- SKIP_TEST_COMMAND_LINES=$(shell ldd test-command | grep -sq 'not a dynamic executable' || echo 1) \
- SKIP_TEST_ZEROFREE=$(shell test -x initramfs/usr/sbin/zerofree || echo 1) \
- $(VG)
-
-# Run the tests under valgrind.
-
-valgrind:
- $(MAKE) check VG="valgrind --quiet --leak-check=full"
-
-# This binary must be statically linked. It is used for testing
-# the "guestfs_command" and "guestfs_command_lines" functions.
-
-test_command_SOURCES = test-command.c
-test_command_LDFLAGS = -all-static
+ contrib/febootstrap/install.sh
# Manual pages.
# guestfs-actions.pod and guestfs-structs are autogenerated. There is
--- /dev/null
+# libguestfs
+# Copyright (C) 2009 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+EXTRA_DIST = \
+ tests.c \
+ test-cleanup.sh \
+ test-bootbootboot.sh
+
+# Tests. These are auto-generated from the test descriptions
+# in the generator.
+
+check_PROGRAMS = tests test-command
+
+tests_SOURCES = tests.c
+tests_CFLAGS = \
+ -I$(top_builddir)/src -Wall
+tests_LDADD = $(top_builddir)/src/libguestfs.la
+
+TESTS = tests test-bootbootboot.sh
+TESTS_ENVIRONMENT = \
+ SKIP_TEST_COMMAND=$(shell ldd test-command | grep -sq 'not a dynamic executable' || echo 1) \
+ SKIP_TEST_COMMAND_LINES=$(shell ldd test-command | grep -sq 'not a dynamic executable' || echo 1) \
+ SKIP_TEST_ZEROFREE=$(shell test -x ../initramfs/usr/sbin/zerofree || echo 1) \
+ $(VG)
+
+# Run the tests under valgrind.
+
+valgrind:
+ $(MAKE) check VG="valgrind --quiet --leak-check=full"
+
+# This binary must be statically linked. It is used for testing
+# the "guestfs_command" and "guestfs_command_lines" functions.
+
+test_command_SOURCES = test-command.c
+test_command_LDFLAGS = -all-static
guestfs_set_error_handler (g, print_error, NULL);
- srcdir = getenv ("srcdir");
- if (!srcdir) srcdir = ".";
- chdir (srcdir);
- guestfs_set_path (g, "appliance");
+ guestfs_set_path (g, "../appliance");
filename = "test1.img";
fd = open (filename, O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_TRUNC, 0666);
appliance/Makefile
appliance/make-initramfs.sh appliance/update-initramfs.sh
images/Makefile
+ capitests/Makefile
ocaml/Makefile ocaml/examples/Makefile
perl/Makefile
python/Makefile
guestfs_set_error_handler (g, print_error, NULL);
- srcdir = getenv (\"srcdir\");
- if (!srcdir) srcdir = \".\";
- chdir (srcdir);
- guestfs_set_path (g, \"appliance\");
+ guestfs_set_path (g, \"../appliance\");
filename = \"test1.img\";
fd = open (filename, O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_TRUNC, 0666);
generate_daemon_actions ();
close ();
- let close = output_to "tests.c" in
+ let close = output_to "capitests/tests.c" in
generate_tests ();
close ();