summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* fish: Add test for remote events.Richard W.M. Jones2012-11-132-1/+3
| | | | | | | This test was present in git, but not included in the tarball, nor in the tests that guestfish actually runs. This fixes commit 17182af3a6de8e3e94e0a914416c54f09bb74007.
* tests: Add a parallel launch test.Richard W.M. Jones2012-11-135-0/+203
| | | | | | | This is designed to reveal libvirt race conditions such as bug 875741. This is a "slow test" so it only runs if you do 'make check-slow'.
* tests: Add 'make check-slow' rule to recursively run slow/long-running tests.Richard W.M. Jones2012-11-133-6/+20
|
* Add 'make help' rule.Richard W.M. Jones2012-11-132-0/+27
| | | | This gives a short overview of the make targets.
* tests: Replace 'make extra-tests' with individual tests.Richard W.M. Jones2012-11-1336-392/+225
| | | | | | | | | | | | | | | | | | | | | | | | | 'make extra-tests' was a monolithic set of tests that did all sorts of things: valgrind, tests over local guests, tests with upstream qemu, tests with upstream libvirt, tests with the appliance attach method. This made it hard to perform individual tests, eg. just valgrind testing. It was also hard to maintain because the tests were not located in the same directories as the programs and sometimes duplicated tests that were run elsewhere. This commit splits up 'make extra-tests' into 5 separate targets: make check-valgrind # run a subset of tests under valgrind make check-valgrind-local-guests # test under valgrind with local guests make check-with-appliance # test with attach-method == appliance make check-with-upstream-qemu # test with an alternate/upstream qemu make check-with-upstream-libvirt # test with an alternate/upstream libvirt (You can also still run 'make extra-tests' which is now simply a rule that runs the above 5 targets in order). This replaces everything that was in the tests/extra directory, so that has now gone.
* extra-tests: Add $(libvirt_ro_uri) substitution to configure.Richard W.M. Jones2012-11-132-11/+12
| | | | This is essentially just code motion.
* Define whole valgrind command (as @VG@) in the configure script.Richard W.M. Jones2012-11-133-7/+7
| | | | | | This is mostly just code motion, but it also changes the default location where valgrind.log is written to be the top build directory (instead of tests/extra/valgrind.log).
* align: Add a test for virt-alignment-scan.Richard W.M. Jones2012-11-132-2/+33
|
* fish: Add simple tests of starting up, inspection, using the prepared disks.Richard W.M. Jones2012-11-134-0/+81
|
* inspector: Add some real virt-inspector tests.Richard W.M. Jones2012-11-135-5/+68
|
* extra-tests: Move valgrind suppressions file to top source directory.Richard W.M. Jones2012-11-123-3/+24
| | | | This is just code motion.
* Various fixes to API support script.Richard W.M. Jones2012-11-1211-49/+5373
| | | | | Remove internal structures, fix it so it works with the new code layout under src/
* lib: Split up huge src/guestfs.c into logical compilation units.Richard W.M. Jones2012-11-129-541/+675
| | | | | | | | | | | | | | | | | | | This file had grown by accretion to include: - code related to handles (now in src/handle.c) - safe allocation (src/alloc.c) - debug, errors, warnings (src/errors.c) - private data (src/private-data.c) - miscellaneous functions (src/canonical-name.c, src/utils.c) This commit also removes about a dozen #include files which were probably not really used. This is just code motion.
* test-tool: Print cachedir and tmpdir.Richard W.M. Jones2012-11-101-0/+6
| | | | This fixes commit 1efed122c07792f4c66a4083159cfacfb1893212.
* Update release notes.Richard W.M. Jones2012-11-102-7/+109
|
* Version 1.19.58.1.19.58Richard W.M. Jones2012-11-1020-24351/+25655
|
* lib: Fix memory leak in tmpdir/cachedir code (found by valgrind).Richard W.M. Jones2012-11-101-0/+3
| | | | This fixes commit 1efed122c07792f4c66a4083159cfacfb1893212.
* tests: Remove double-test for availability.Richard W.M. Jones2012-11-092-16/+29
| | | | | | | | | | If you have a function which is in the X optgroup, and also has IfAvailable X, then two tests for the optgroup are added to the output. Check for this case and give an error. This also fixes existing APIs.
* tests: More efficient use of strings in the object code.Richard W.M. Jones2012-11-091-37/+32
| | | | No functional change.
* tests: Use guestfs_{push,pop}_error_handler.Richard W.M. Jones2012-11-091-13/+7
| | | | | | Replace the custom error handler with calls to guestfs_{push,pop}_error_handler only where necessary. This simplifies the generated code.
* tests: Cleanup code that prints each test name.Richard W.M. Jones2012-11-091-12/+18
| | | | This is just code motion.
* tests: Change code for printing warnings about untested functions.Richard W.M. Jones2012-11-091-3/+12
| | | | Just code cleanup, no functional change.
* tests: Remove dead code in generated output.Richard W.M. Jones2012-11-091-10/+0
|
* tests: Format the generated code properly.Richard W.M. Jones2012-11-091-6/+12
| | | | This is just whitespace changes in the output.
* fuse: Use guestfs_{push,pop}_error_handler so we can see errors in shutdown.Richard W.M. Jones2012-11-091-7/+9
| | | | | | In the fork (usual) case, we still won't see any errors since stderr has been redirected to /dev/null, but this way is still a little more correct.
* tools: Modify existing tools to use guestfs_{push,pop}_error_handler.Richard W.M. Jones2012-11-0913-160/+83
| | | | | This is a shorter and more convenient way to disable errors temporarily across calls.
* lib: Modify library code to use guestfs_{push,pop}_error_handler.Richard W.M. Jones2012-11-095-34/+33
| | | | | This is less efficient than directly manipulating g->error_cb, but easier to maintain.
* lib: Add new C API calls: guestfs_push_error_handler,Richard W.M. Jones2012-11-094-11/+95
| | | | | | | | | | | | | | | | | guestfs_pop_error_handler. The addition of these calls makes it much simpler to temporarily disable or ignore errors: guestfs_push_error_handler (g, NULL, NULL); guestfs_mkdir (g, "/foo"); /* We don't care if this fails. */ guestfs_pop_error_handler (g); Note these calls are used by the C API only. They are not necessary in other languages, because those map errors to exceptions. The subsequent commits change existing code to use push/pop instead of laboriously saving and restoring the error handler.
* lib: Break long line in definition of guestfs_set_error_handler.Richard W.M. Jones2012-11-091-1/+2
| | | | This is just a whitespace change.
* examples: Copy-editing instructions printed by the mount-local program.Richard W.M. Jones2012-11-091-3/+3
|
* header: Define LIBGUESTFS_HAVE_CREATE_FLAGS=1.Richard W.M. Jones2012-11-091-0/+1
| | | | This fixes commit 9466060201600db47016133d80af22eb38091a49.
* fish: Update documentation for environment variables.Richard W.M. Jones2012-11-091-8/+22
| | | | This fixes commit 1efed122c07792f4c66a4083159cfacfb1893212.
* lib: Rework temporary and cache directory code.Richard W.M. Jones2012-11-0920-130/+358
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New APIs: set-tmpdir, get-tmpdir, set-cachedir, get-cachedir. The current code has evolved over time and has a number of problems: (a) A single environment variable ($TMPDIR) controls the location of several directories. (b) It's hard for the library user to predict which directory libguestfs will use, unless the user simulates the same internal steps that libguestfs performs. This commit fixes these issues. (a) Now three environment variables control the location of all small temporary files, and the appliance cache: For temporary files: $LIBGUESTFS_TMPDIR or $TMPDIR or /tmp. For the appliance cache: $LIBGUESTFS_CACHEDIR or $TMPDIR or /var/tmp. The user can also set these directories explicitly through API calls (guestfs_set_tmpdir and guestfs_set_cachedir). (b) The user can also retrieve the actual directories that libguestfs will use, by calling guestfs_get_tmpdir and guestfs_get_cachedir. These functions are also used internally. This commit also: - reworks the internal tmpdir code - removes the internal (undocumented) guestfs_tmpdir call (replacing it with calls to the documented guestfs_get_tmpdir API instead) - changes the ./run script to set LIBGUESTFS_TMPDIR and LIBGUESTFS_CACHEDIR - adds a test - fixes a few places like libguestfs-make-fixed-appliance which depended on $TMPDIR
* lib: When parsing environment, handle LIBGUESTFS_TRACE first.Richard W.M. Jones2012-11-091-4/+4
| | | | So that we can trace all the later calls.
* Version 1.19.57.1.19.57Richard W.M. Jones2012-11-071-1/+1
|
* format: Allow virt-format test to be skipped by setting ↵Richard W.M. Jones2012-11-061-0/+5
| | | | SKIP_TEST_VIRT_FORMAT_SH=1.
* lib: debian support for package arch inspectionJohn Eckersberg2012-11-051-3/+8
|
* tests: wipefs: Don't try to wipe mounted filesystem.Richard W.M. Jones2012-11-031-1/+2
| | | | | | | Previously wipefs (the utility) allowed this, but it's obviously a bad thing to do and the new wipefs gives an error if you try it: wipefs: error: /dev/VG/LV: probing initialization failed: Device or resource busy
* fish: Fix documentation quit | exit -> separate exit & quit headings.Richard W.M. Jones2012-11-021-1/+3
|
* fish: Clean up prompt documentation.Richard W.M. Jones2012-11-021-2/+2
|
* fish: Use Unicode LOWER ONE QUARTER BLOCK to represent cursor.Richard W.M. Jones2012-11-021-1/+1
| | | | | | 'ls' (with no argument) is not a valid command. This fixes commit bad5c7d5a50e7f340d3a5daff59d7f3c18c0ab8f.
* Version 1.19.56.1.19.56Richard W.M. Jones2012-11-0220-19575/+20588
|
* generator: Split up huge src/actions.c into separate files.Richard W.M. Jones2012-11-025-8/+42
| | | | | | | | Split the functions according to a simple hash across C.nr_actions_files files (this number can be increased later if necessary). This is just code motion.
* generator: actions: Move variant functions to a separate file.Richard W.M. Jones2012-11-025-6/+30
| | | | This is just code motion.
* generator: actions: Move 3 helper functions to a separate file.Richard W.M. Jones2012-11-025-89/+127
| | | | This is just code motion.
* New API: mklost_and_foundRichard W.M. Jones2012-11-024-2/+43
|
* todo: General updates.Richard W.M. Jones2012-11-021-2/+6
|
* ROADMAP: Remove some completed items.Richard W.M. Jones2012-11-021-13/+0
|
* sysprep: Don't fail when trying to remove /var/spool/at/spool (directory).Richard W.M. Jones2012-11-011-1/+3
| | | | This fixes commit 1949016e899b2737525fdc9b6dda451ad9ecbd66.
* inspect: Use new inspect_list_applications2 API callJohn Eckersberg2012-11-012-25/+30
| | | | | RWMJ: - Update virt-inspector.rng.