summaryrefslogtreecommitdiffstats
path: root/capitests
Commit message (Collapse)AuthorAgeFilesLines
* capitests: Remove warning about dead definitions.Richard W.M. Jones2010-11-111-10/+10
| | | | This updates commit cb7ec8be4ce6068b6cbc6522a67826cdbd161024.
* Check that just including <guestfs.h> on its own works.Richard W.M. Jones2010-11-112-0/+39
|
* capitests: Add the code to test (proposed) add-libvirt-dom C API.Richard W.M. Jones2010-11-112-0/+169
| | | | | This API was dropped as there are some problems with it. This commit adds the original test code, but commented out.
* capitests: Add whitespace in Makefile.Richard W.M. Jones2010-11-101-0/+1
|
* capitests: Test guestfs_last_errno call.Richard W.M. Jones2010-11-032-2/+153
|
* capitests: Test guestfs_add_drive_opts with optional args from C.Richard W.M. Jones2010-11-032-2/+69
|
* capitests: Test some basic aspects of the C API.Richard W.M. Jones2010-11-033-15/+145
|
* capitests: Set path in TESTS_ENVIRONMENT instead of in tests.cRichard W.M. Jones2010-11-031-0/+1
| | | | | By exporting LIBGUESTFS_PATH with the right path to the appliance, we no longer need to hard code the path in tests.c
* tests: Don't use <guestfs-internal.h> in tests.Richard Jones2010-03-161-2/+1
| | | | | It was failing when including this header, as a consequence of earlier commit 1f56debfcfdc35d6b0.
* availability: Skip tests when functions are not available.Richard Jones2009-11-201-15/+0
|
* maint: use EXIT_SUCCESS and EXIT_FAILURE, not 0 and 1 to exitJim Meyering2009-11-201-3/+3
| | | | | | | | | | | | | | | Convert all uses automatically, via these two commands: git grep -l '\<exit *(1)' \ | grep -vEf .x-sc_prohibit_magic_number_exit \ | xargs --no-run-if-empty \ perl -pi -e 's/\b(exit ?)\(1\)/$1(EXIT_FAILURE)/' git grep -l '\<exit *(0)' \ | grep -vEf .x-sc_prohibit_magic_number_exit \ | xargs --no-run-if-empty \ perl -pi -e 's/\b(exit ?)\(0\)/$1(EXIT_SUCCESS)/' * .x-sc_prohibit_magic_number_exit: New file. Edit (RWMJ): Don't change Java code.
* build: Fix inter-directory dependenciesMatthew Booth2009-11-191-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds an explicit dependency on generator.ml for every file it generates, except java files. Java is left for another time because it's considerably trickier. It also adds a build rule for src/libguestfs.la so it can be rebuilt as required from other directories. It does this by creating a top level make file, subdir-rules.mk, which can be included from sub-directories. sub-directories need to define 'generator_built' to include local files which are built by generator.ml, and they will be updated automatically. This fixes parallel make, and will automatically re-create generated files when make is run from any directory. It also fixes the problem which efad4f53 was targetting. Specifically, src/guestfs_protocol.(c|h) had an erroneous dependency on stamp-generator, and therefore generator.ml, despite not being directly created by it. This caused them to be recreated every time generator.ml ran rather than only when src/guestfs_protocol.x was updated, which cascaded into a daemon and therefore appliance update. This patch also changes the contents of the distribution tarball by including files created by rpcgen.
* Don't export STREQ and friends in <guestfs.h>Richard Jones2009-11-101-0/+3
| | | | | Move these to private header file(s) and other places as required since these aren't part of the public API.
* use STREQ, not strcmp: part 1Jim Meyering2009-11-091-11/+11
| | | | | git grep -l 'strcmp *([^=]*== *0'|xargs \ perl -pi -e 's/\bstrcmp( *\(.*?\)) *== *0/STREQ$1/g'
* build: enable gcc warnings in capitests/ and ocaml/Jim Meyering2009-08-271-1/+2
| | | | | * capitests/Makefile.am: Use $(WARN_CFLAGS) and $(WERROR_CFLAGS). * ocaml/Makefile.am:: Likewise.
* tests: Conditionally skip UUID tests.Richard W.M. Jones2009-08-191-2/+11
| | | | | | | | More tests introduced which break with old e2fsprogs that didn't support UUIDs. Skip those tests when the old platform is detected. Also tidy up this code a little.
* always include <config.h>Jim Meyering2009-08-031-0/+1
| | | | | | * ocaml/guestfs_c.c: Include <config.h>. * examples/to-xml.c: Likewise. * examples/hello.c: Likewise.
* New commands: swapon-*, swapoff-*, mkswap-file.Richard W.M. Jones2009-07-311-0/+1
| | | | | | | | | | | | swapon-device swapoff-device swapon-file swapoff-file swapon-label swapoff-label swapon-uuid swapoff-uuid mkswap-file
* RHEL 5: Skip 'scrub' test if command is not in the initramfs.Richard Jones2009-07-071-0/+2
|
* RHEL 5: 'mkswap -U' not supported, check before testing it.Richard Jones2009-07-071-0/+1
|
* Merge branch 'master' of git://git.et.redhat.com/libguestfsRichard Jones2009-07-071-2/+1
|\
| * Make it possible to build in a separate directoryMatthew Booth2009-07-031-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch allows you to do: mkdir build cd build ../configure ... make This will output all generated files to the build directory. Given that autogen automatically runs configure, you can also do: BUILDDIR=./build ./autogen.sh which will do the right thing. Also: * Fix a dependency bug which means that guestfs_protocol.h isn't automatically rebuilt. * Re-running autogen.sh with no arguments won't blow away your previous configure arguments.
* | Merge branch 'master' of git+ssh://192.168.122.1/home/rjones/d/libguestfsRichard Jones2009-07-031-16651/+0
|\|
| * Remove generated code from git.Richard W.M. Jones2009-07-021-20465/+0
| | | | | | | | | | | | | | | | Git users now require the OCaml compiler in order to regenerate the generated code after a checkout. Generated code will remain in the tarball, so users of the source tarball will not need the OCaml compiler.
| * Add 'readdir' call.Richard W.M. Jones2009-07-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This adds a readdir call (mostly intended for programs). The return value is a list of guestfs_dirent structures. This adds the new types 'struct guestfs_dirent' and 'struct guestfs_dirent_list', along with all the code to return these in the different language bindings. Also includes additional tests for OCaml and Perl bindings to test this.
| * Generated code for the virtio_blk change.Richard W.M. Jones2009-07-011-275/+197
| |
| * Generated code for mknod, mkfifo, mknod_b, mknod_c, umask.Richard W.M. Jones2009-06-301-1/+537
| |
| * Generated code for 'set_memsize'/'get_memsize' calls.Richard W.M. Jones2009-06-301-0/+2
| |
| * Generated code for the 'mkswap*' commands.Richard W.M. Jones2009-06-291-1/+228
| |
| * Generated code for mount-loop command.Richard W.M. Jones2009-06-291-0/+1
| |
| * Generated code for 'initrd-list'.Richard W.M. Jones2009-06-291-1/+162
| |
| * Generated code for 'du' command.Richard W.M. Jones2009-06-291-1/+106
| |
| * Generated code for df / df-h.Richard W.M. Jones2009-06-291-0/+2
| |
| * Generated code for head/tail commands.Richard W.M. Jones2009-06-291-1/+1289
| |
| * Generated code for 'wc_*' commands.Richard W.M. Jones2009-06-291-154/+478
| |
| * Implement TEST_ONLY environment variable to run selected tests only.Richard W.M. Jones2009-06-291-0/+459
| | | | | | | | | | To run just selected tests, do: TEST_ONLY="hexdump mkfs" make -C capitests check
| * Add large test files with standard content for the C API test.Richard W.M. Jones2009-06-291-1/+103
| | | | | | | | | | Large test files with standard content for the C API test, and add a regression test for previous hexdump failure on large files.
| * Generated code for 'mkdtemp' command.Richard W.M. Jones2009-06-241-1/+100
| |
| * Generated code for 'scrub-*' commands.Richard W.M. Jones2009-06-231-1/+160
| |
| * Generated code for 'glob-expand'.Richard Jones2009-06-221-1/+418
| |
| * Generated code for 'sh' and 'sh-lines' commands.Richard Jones2009-06-221-0/+2
| |
| * Catching hanging qemu in tests (RHBZ#505329).Richard Jones2009-06-111-0/+7
| |
* | Merge branch 'master' of git://git.et.redhat.com/libguestfsRichard Jones2009-06-101-1/+3
|\|
| * Remove obsolete comment from generator.Richard Jones2009-06-101-1/+3
| |
* | CentOS fix: Skip checksum test if no squashfs module.Richard Jones2009-06-101-0/+1
|/
* CentOS fix: skip ntfs-3g.probe tests if no binary.Richard Jones2009-06-101-0/+1
|
* Implement device name translation. Remove device name hacks in tests.Richard Jones2009-06-101-650/+29
|
* Generated code for ntfs_3g_probe command.Richard Jones2009-06-081-1/+179
|
* Move pure regression tests to their own subdirectory.Richard Jones2009-06-043-79/+2
|
* Generated code for the 'sleep' command.Richard Jones2009-06-041-1/+60
|