Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests: Don't use <guestfs-internal.h> in tests. | Richard Jones | 2010-03-16 | 1 | -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 Jones | 2009-11-20 | 1 | -15/+0 |
| | |||||
* | maint: use EXIT_SUCCESS and EXIT_FAILURE, not 0 and 1 to exit | Jim Meyering | 2009-11-20 | 1 | -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 dependencies | Matthew Booth | 2009-11-19 | 1 | -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 Jones | 2009-11-10 | 1 | -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 1 | Jim Meyering | 2009-11-09 | 1 | -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 Meyering | 2009-08-27 | 1 | -1/+2 |
| | | | | | * capitests/Makefile.am: Use $(WARN_CFLAGS) and $(WERROR_CFLAGS). * ocaml/Makefile.am:: Likewise. | ||||
* | tests: Conditionally skip UUID tests. | Richard W.M. Jones | 2009-08-19 | 1 | -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 Meyering | 2009-08-03 | 1 | -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. Jones | 2009-07-31 | 1 | -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 Jones | 2009-07-07 | 1 | -0/+2 |
| | |||||
* | RHEL 5: 'mkswap -U' not supported, check before testing it. | Richard Jones | 2009-07-07 | 1 | -0/+1 |
| | |||||
* | Merge branch 'master' of git://git.et.redhat.com/libguestfs | Richard Jones | 2009-07-07 | 1 | -2/+1 |
|\ | |||||
| * | Make it possible to build in a separate directory | Matthew Booth | 2009-07-03 | 1 | -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/libguestfs | Richard Jones | 2009-07-03 | 1 | -16651/+0 |
|\| | |||||
| * | Remove generated code from git. | Richard W.M. Jones | 2009-07-02 | 1 | -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. Jones | 2009-07-02 | 1 | -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. Jones | 2009-07-01 | 1 | -275/+197 |
| | | |||||
| * | Generated code for mknod, mkfifo, mknod_b, mknod_c, umask. | Richard W.M. Jones | 2009-06-30 | 1 | -1/+537 |
| | | |||||
| * | Generated code for 'set_memsize'/'get_memsize' calls. | Richard W.M. Jones | 2009-06-30 | 1 | -0/+2 |
| | | |||||
| * | Generated code for the 'mkswap*' commands. | Richard W.M. Jones | 2009-06-29 | 1 | -1/+228 |
| | | |||||
| * | Generated code for mount-loop command. | Richard W.M. Jones | 2009-06-29 | 1 | -0/+1 |
| | | |||||
| * | Generated code for 'initrd-list'. | Richard W.M. Jones | 2009-06-29 | 1 | -1/+162 |
| | | |||||
| * | Generated code for 'du' command. | Richard W.M. Jones | 2009-06-29 | 1 | -1/+106 |
| | | |||||
| * | Generated code for df / df-h. | Richard W.M. Jones | 2009-06-29 | 1 | -0/+2 |
| | | |||||
| * | Generated code for head/tail commands. | Richard W.M. Jones | 2009-06-29 | 1 | -1/+1289 |
| | | |||||
| * | Generated code for 'wc_*' commands. | Richard W.M. Jones | 2009-06-29 | 1 | -154/+478 |
| | | |||||
| * | Implement TEST_ONLY environment variable to run selected tests only. | Richard W.M. Jones | 2009-06-29 | 1 | -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. Jones | 2009-06-29 | 1 | -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. Jones | 2009-06-24 | 1 | -1/+100 |
| | | |||||
| * | Generated code for 'scrub-*' commands. | Richard W.M. Jones | 2009-06-23 | 1 | -1/+160 |
| | | |||||
| * | Generated code for 'glob-expand'. | Richard Jones | 2009-06-22 | 1 | -1/+418 |
| | | |||||
| * | Generated code for 'sh' and 'sh-lines' commands. | Richard Jones | 2009-06-22 | 1 | -0/+2 |
| | | |||||
| * | Catching hanging qemu in tests (RHBZ#505329). | Richard Jones | 2009-06-11 | 1 | -0/+7 |
| | | |||||
* | | Merge branch 'master' of git://git.et.redhat.com/libguestfs | Richard Jones | 2009-06-10 | 1 | -1/+3 |
|\| | |||||
| * | Remove obsolete comment from generator. | Richard Jones | 2009-06-10 | 1 | -1/+3 |
| | | |||||
* | | CentOS fix: Skip checksum test if no squashfs module. | Richard Jones | 2009-06-10 | 1 | -0/+1 |
|/ | |||||
* | CentOS fix: skip ntfs-3g.probe tests if no binary. | Richard Jones | 2009-06-10 | 1 | -0/+1 |
| | |||||
* | Implement device name translation. Remove device name hacks in tests. | Richard Jones | 2009-06-10 | 1 | -650/+29 |
| | |||||
* | Generated code for ntfs_3g_probe command. | Richard Jones | 2009-06-08 | 1 | -1/+179 |
| | |||||
* | Move pure regression tests to their own subdirectory. | Richard Jones | 2009-06-04 | 3 | -79/+2 |
| | |||||
* | Generated code for the 'sleep' command. | Richard Jones | 2009-06-04 | 1 | -1/+60 |
| | |||||
* | Generated code for 'add_drive_ro' call. | Richard Jones | 2009-06-02 | 1 | -3/+3 |
| | |||||
* | Use a squashfs attached as /dev/sdd during the C API tests. | Richard W.M. Jones | 2009-05-29 | 1 | -2/+131 |
| | |||||
* | Fix mkdir-p if directory exists (RHBZ#503133). | Richard W.M. Jones | 2009-05-29 | 1 | -1/+205 |
| | |||||
* | Rerun generator to update tests. | Richard W.M. Jones | 2009-05-28 | 1 | -2/+2 |
| | |||||
* | Fix path to guestfish in test-bootbootboot script. | Richard W.M. Jones | 2009-05-28 | 1 | -1/+2 |
| | |||||
* | Add the test0* functions, used to test language bindings. | Richard W.M. Jones | 2009-05-28 | 1 | -2/+29 |
| | |||||
* | Move C API tests out of root build dir into 'capitests' subdir. | Richard W.M. Jones | 2009-05-28 | 5 | -0/+16860 |