summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* extra-tests: Re-run the tests against upstream libvirt.Richard W.M. Jones2012-09-182-0/+56
|
* extra-tests: Clean up some comments about the upstream qemu tests.Richard W.M. Jones2012-09-181-3/+4
|
* extra-tests: Add scripts used by these tests to EXTRA_DIST.Richard W.M. Jones2012-09-181-1/+5
|
* syntax: Remove definitions of O_CLOEXEC, except in examples (thanks Jim ↵Richard W.M. Jones2012-09-173-12/+0
| | | | | | | Meyering). The gnulib <fcntl.h> replacement header will now define this symbol if it's not defined already.
* extra-tests: Write a qemu wrapper script on the fly.Richard W.M. Jones2012-09-152-26/+13
| | | | | | | | | | | Passing the $upstream_qemu environment variable is not reliable when libvirt is involved: Environment variables are passed to the first instance of the session libvirtd, but because libvirt reuses the session libvirtd, subsequent environment variable settings are lost (this is filed as RHBZ#856619). Bypass all of this by writing a custom qemu-wrapper.sh which contains the hard-coded values we want.
* extra-tests: Rerun extra tests with regular appliance attach method.Richard W.M. Jones2012-09-152-1/+35
| | | | | If libvirt is being used as the backend, rerun all the extra-tests again using the regular appliance backend.
* extra-tests: The upstream qemu test now reruns all the extra tests.Richard W.M. Jones2012-09-153-10/+12
|
* extra-tests: Fix libvirt URI so we can run tests with libvirt attach-method.Richard W.M. Jones2012-09-151-14/+10
|
* syntax: Remove trailing whitespace.Richard W.M. Jones2012-09-151-1/+0
| | | | Found by 'make syntax-check'.
* syntax: Replace test == with = or -eq as appropriate.Richard W.M. Jones2012-09-151-11/+11
| | | | Found by 'make syntax-check'.
* syntax: Use STREQ/STRNEQ in place of strcmp.Richard W.M. Jones2012-09-151-1/+1
| | | | Found by 'make syntax-check'.
* test-9p: Disable this test with libvirt.Richard W.M. Jones2012-09-141-2/+2
| | | | | This test doesn't work with sVirt if SELinux is enforcing, because qemu won't be able to access the 9p-exported directory on the host.
* extra-tests: Don't use $QEMU as a variable.Richard W.M. Jones2012-09-052-6/+13
| | | | | | Since 'QEMU' is set (overwritten) by the autoconf-generated Makefile, this test would always test installed qemu, not upstream qemu, making it pretty useless. Use another name for this variable.
* tests/rsync: Allow rsync test to be skipped by setting SKIP_TEST_RSYNC_SH=1.Richard W.M. Jones2012-08-311-0/+5
|
* tests/mount-local: Link test program with gnulib.Richard W.M. Jones2012-08-311-1/+2
|
* tests/big-dirs: Don't run this test by default.Richard W.M. Jones2012-08-301-5/+6
|
* remove ulockmgr from fuse LDFLAGSOlaf Hering2012-08-291-1/+1
| | | | | | | | | | libguestfs fails to build with --enable-fuse on openSuSE 11.4 and earlier because the included fuse version does not include libulockmgr.so. configure already used pkgconfig to retrieve the correct CFLAGS, so there is no need to hardcode -lulockmgr. With this change the build succeeds again. Signed-off-by: Olaf Hering <olaf@aepfle.de>
* Replace mount-options with mount where appropriate.Richard W.M. Jones2012-08-1810-20/+20
| | | | | | Since our minimum supported version is now 1.16 and mount was fixed in 1.13.16, it is now safe to replace mount-options + empty options with mount wherever it occurs.
* tests: Add a test for large directories.Richard W.M. Jones2012-08-172-0/+119
| | | | | | | | This also tests the reimplemented APIs: - ls - lstatlist - lxattrlist - readlinklist
* test-launch-race: Use /dev/null instead of hand-made zero-length file.Richard W.M. Jones2012-08-151-5/+2
| | | | | There seems to be no reason why creating a zero-length file is necessary for this test.
* Add optional compress flag to tar-in, tar-out APIs.Richard W.M. Jones2012-08-141-4/+4
| | | | | | | | | | The compress flag can be used to control compression, one of: (none), "compress", "gzip", "bzip2", "xz", "lzop". Thus these calls can now be used instead of tgz-in/tgz-out/txz-in/txz-out, and also support more compression types. Mark these APIs as once_had_no_optargs so that compatibility code is generated.
* tests/9p: Add test to EXTRA_DIST.1.19.29Richard W.M. Jones2012-08-111-0/+2
| | | | This fixes commit 499497fab03716278cb5214a8aa89a35618e06c6.
* New APIs: rsync, rsync-in, rsync-outRichard W.M. Jones2012-08-112-0/+126
| | | | Implement rsync.
* tests/extra: Add workaround for memory leak in libvirt.Richard W.M. Jones2012-08-111-1/+13
| | | | See: https://bugzilla.redhat.com/show_bug.cgi?id=847429
* 9p: Add a regression test for 9p functionality in qemu.Richard W.M. Jones2012-07-302-0/+78
|
* tests: Consistent use of $(top_builddir)/run --test when building test guests.Richard W.M. Jones2012-07-264-21/+9
|
* build: Use $(top_builddir)/run in Makefile.am's.Richard W.M. Jones2012-07-261-2/+2
| | | | | Not necessary, but this makes all invocations of 'run' consistent. There is no functional change.
* tests: Skip regression test for 790721 if attach-method is not 'appliance'.Richard W.M. Jones2012-07-231-0/+25
|
* tests/protocol: Skip these tests if default attach-method is not 'appliance'.Richard W.M. Jones2012-07-233-0/+15
|
* build: Rename most C files that contain underscore with dash.Richard W.M. Jones2012-07-192-1/+1
| | | | | | | This is just code motion. Some files cannot be renamed. Notably rpcgen input and output files must not contain dash characters, else rpcgen breaks.
* build: Return 77 from skipped tests.Richard W.M. Jones2012-07-1913-24/+24
|
* tests: Rewrite parallel mount-local test in C.Richard W.M. Jones2012-07-183-0/+531
|
* generator: Rename 'mkfs_opts' API to 'mkfs'.Richard W.M. Jones2012-07-143-12/+12
| | | | | By using the once_had_no_optargs flag, this change is backwards compatible for callers.
* generator: Rename 'add_drive_opts' API to 'add_drive'.Richard W.M. Jones2012-07-146-8/+8
| | | | | | By using the once_had_no_optargs flag, this change is backwards compatible for callers (except Haskell, PHP and GObject as discussed in earlier commit).
* tests: Better way to ensure 'g' is used and return success or error.Richard W.M. Jones2012-07-112-4/+2
|
* tests/guests: Add temp files to CLEANFILES.Richard W.M. Jones2012-07-101-1/+1
|
* extra-tests: Add a test using upstream qemu.Richard W.M. Jones2012-07-073-1/+75
|
* New API: guestfs_shutdown: Cleanly shutdown the backend.Richard W.M. Jones2012-07-034-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | The new API splits orderly close into a two-step process: if (guestfs_shutdown (g) == -1) { /* handle the error, eg. qemu error */ } guestfs_close (g); Note that the explicit shutdown step is only necessary in the case where you have made changes to the disk image and want to handle write errors. Read the documentation for further information. This change also: - deprecates guestfs_kill_subprocess - turns guestfs_kill_subprocess into the same as guestfs_shutdown - changes guestfish and other tools to call shutdown + close where necessary (not for read-only tools) - updates documentation - updates examples
* tests: Add a test of /dev/disk/by-id paths (RHBZ#627675).Richard W.M. Jones2012-06-291-0/+8
|
* tests: Use qemu-img to create an overlay for testing, instead of copying.Richard W.M. Jones2012-06-291-9/+9
| | | | | | | | | | Replace: cp tests/guests/fedora.img test.img with the longer but possibly more space-efficient equivalent: qemu-img create -F raw -b tests/guests/fedora.img -f qcow2 test.qcow2
* tests: Reformat TESTS_ENVIRONMENT so all use a standard format.Richard W.M. Jones2012-06-283-7/+3
| | | | No functional change.
* run: Set MALLOC_PERTURB_ to a random value.Richard W.M. Jones2012-06-2812-55/+11
| | | | | | | | | | | | | | | | | MALLOC_PERTURB_ is a glibc feature which causes malloc to wipe memory before and after it is used, allowing both use-after-free and uninitialized reads to be detected with relatively little performance penalty: http://udrepper.livejournal.com/11429.html?nojs=1 Modify the ./run script so that it always sets this. We were already using MALLOC_PERTURB_ in most tests. Since ./run is now setting this, we can remove it from individual Makefiles. Most TESTS_ENVIRONMENT will now simply look like this: TESTS_ENVIRONMENT = $(top_builddir)/run --test
* tests: Add ./run --test option.Richard W.M. Jones2012-06-2614-18/+16
| | | | | | | This option, when added via TESTS_ENVIRONMENT = [...] $(top_builddir)/run --test allows us to run the tests and only print the full output (including debugging etc) when the test fails.
* tests: Add thread IDs to test of bug 790721.Richard W.M. Jones2012-06-261-5/+10
|
* tests: Allow SELinux tests to be skipped with an environment variable.Richard W.M. Jones2012-06-251-0/+6
|
* tests/xml: Fix compilation of test on RHEL 5 with old libvirt.Richard W.M. Jones2012-06-221-2/+9
| | | | | | | | | | | Old <libvirt.h> had a conflicting definition of virDomainGetXMLDesc: fake_libvirt_xml.c:36: error: conflicting types for 'virDomainGetXMLDesc' /usr/include/libvirt/libvirt.h:715: error: previous declaration of 'virDomainGetXMLDesc' was here The difference is not material ('int' vs. 'unsigned int'). Avoid the error by not including <libvirt.h>.
* tests: Add workaround for missing O_CLOEXEC.Richard W.M. Jones2012-06-221-0/+4
|
* tests: Fix broken workarounds for missing O_CLOEXEC.Richard W.M. Jones2012-06-222-2/+2
|
* tests: Add SKIP_TEST_* variables to allow these tests to be skipped.Richard W.M. Jones2012-06-226-0/+30
| | | | | By setting these variables, we can skip tests that fail on RHEL 5.
* build: Define abs_builddir if not defined already.Richard W.M. Jones2012-06-181-0/+3
| | | | | | This is missing on RHEL 5. This updates commit 50aa9533e4a505e1c64dbedddb30491bfbb755d6.