summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests/md: Don't hard code /dev/vda in expected output of tests.Richard W.M. Jones2012-06-122-13/+14
| | | | Use a small sed script to canonicalize the device names.
* tests: Fix spelling in comment.Richard W.M. Jones2012-06-121-2/+2
|
* tests/lvm: Don't hard-code /dev/vda in test.Richard W.M. Jones2012-06-121-1/+1
| | | | | Hard-coding it breaks virtio-scsi because the devices are called /dev/sda etc.
* tests: Allow regression test for bug 690819 to be skipped.Richard W.M. Jones2012-06-091-0/+12
|
* btrfs: Modify test to correctly detect btrfs availability.Richard W.M. Jones2012-06-091-4/+6
|
* tests: Add a test of non-ASCII character fidelity on various filesystem ↵Richard W.M. Jones2012-05-252-0/+491
| | | | | | types (RHBZ#823887). Thanks Laszlo Ersek.
* tests: Regression test for RHBZ#701814.Richard W.M. Jones2012-05-035-0/+255
| | | | | | | | | | | | | | | | | This commit adds a tests/xml directory, and an LD_PRELOAD module which can fake arbitrary libvirt XML from an external file (and is therefore a much more flexible test than using the libvirt test:// driver alone). Also added is one regression test for: https://bugzilla.redhat.com/show_bug.cgi?id=701814 Loading the given libvirt XML using Sys::Guestfs::Lib::open_guest used to fail with the error: format parameter is empty or contains disallowed characters at /home/rjones/d/libguestfs/perl/blib/lib/Sys/Guestfs/Lib.pm line 256. Thanks to Tom Horsley for supplying the test data.
* btrfs: Fix btrfs test so it works with btrfs-progs in Rawhide.Richard W.M. Jones2012-04-261-12/+12
| | | | See: http://bugzilla.redhat.com/816346
* btrfs: Enhance the btrfs device test.Richard W.M. Jones2012-04-251-2/+37
| | | | This enhances commit 87ea7a04094d5ed40f3f047ff2b7a613d4d530d4.
* tests: Add some more substantial test data.Richard W.M. Jones2012-04-253-0/+2
| | | | | | | | | | | | | The two tarballs: 8252 bytes tests/data/filesanddirs-10M.tar.xz 41152 bytes tests/data/filesanddirs-100M.tar.xz contain, as their names suggest, highly compressed files and directories, with unpacked size respectively around 10M and 100M (the precise size after unpacking depends on the filesystem). These can be used for testing purposes.
* btrfs-device-delete: Use correct (sysroot-prefixed) path to filesystem.Richard W.M. Jones2012-04-251-3/+1
| | | | This fixes commit 87ea7a04094d5ed40f3f047ff2b7a613d4d530d4.
* New btrfs APIs.Richard W.M. Jones2012-04-253-0/+183
| | | | | | | | | | | | | | | | Bind the easy parts of the 'btrfs' program. The new APIs are: btrfs-device-add: add devices to a btrfs filesystem btrfs-device-delete: remove devices from a btrfs filesystem btrfs-filesystem-sync: sync a btrfs filesystem btrfs-filesystem-balance: balance a btrfs filesystem btrfs-subvolume-create: create a btrfs snapshot btrfs-subvolume-delete: delete a btrfs snapshot btrfs-subvolume-list: list btrfs snapshots and subvolumes btrfs-subvolume-set-default: set default btrfs subvolume btrfs-subvolume-snapshot: create a writable btrfs snapshot
* guests: Add /etc/shadow file to fedora.img.Richard W.M. Jones2012-04-211-0/+5
| | | | This is used for testing file permissions and SELinux contexts.
* tests: Space before parens in perl code.Richard W.M. Jones2012-04-211-77/+77
|
* Remove obsolete valgrind rule from C API tests.Richard W.M. Jones2012-04-181-5/+0
|
* extra-tests: Check if valgrind supports --vgdb=no option.Richard W.M. Jones2012-04-181-3/+3
| | | | This option didn't exist in RHEL 6 valgrind.
* tests: Fix reference to guestfish in test for RHBZ#811649.Richard W.M. Jones2012-04-131-1/+1
| | | | This fixes commit a9bd90abfb3d4519278dfff305b8b7033ae6d76a.
* Add regression test to test funny filenames (RHBZ#811649).Richard W.M. Jones2012-04-122-0/+50
|
* extra-tests: Add suppression for memory leak in FUSE.Richard W.M. Jones2012-04-121-0/+9
|
* inspection: Remove spurious warning for Ubuntu 10.04 with encrypted swap ↵Richard W.M. Jones2012-04-121-0/+3
| | | | (RHBZ#811872).
* extra-tests: Add suppression for libvirt/gnutls leak.Richard W.M. Jones2012-04-111-1/+12
| | | | https://www.redhat.com/archives/libvir-list/2012-April/msg00322.html
* extra-tests: Disable valgrind vgdb.Richard W.M. Jones2012-04-101-1/+2
| | | | This leaves files called 'vgdb-pipe-*' in .
* tests: Fix guest building so parallel 'make -jN check' works.Richard W.M. Jones2012-04-065-29/+33
| | | | | | | | | | | | | | | | This means renaming various temporary files (eg. fstab.tmp) that several of the scripts were using so they don't conflict (eg. fstab.tmp.$$). Also the rule: fedora-md1.img fedora-md2.img: guest-aux/make-fedora-img.pl causes the script to run twice in parallel when using 'make -jN'. Replace this with a stamp file so it runs once: fedora-md1.img fedora-md2.img: stamp-fedora-md.img stamp-fedora-md.img: guest-aux/make-fedora-img.pl
* tests: Don't print "4" when running make-windows-img.shRichard W.M. Jones2012-04-061-1/+1
| | | | | The return value of the pwrite-device command -- 4 (bytes) -- is printed out. Hide it instead.
* extra-tests: Test virt-sysprep.Richard W.M. Jones2012-04-011-1/+14
|
* Rewrite virt-sysprep.Richard W.M. Jones2012-03-311-3/+1
|
* test: Thread function is a candidate for attribute noreturn.Richard Jones2012-03-291-3/+1
| | | | | The start_test_thread function never returns, it is always cancelled by the main thread.
* Use O_CLOEXEC / SOCK_CLOEXEC for almost all file descriptors.Richard W.M. Jones2012-03-142-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | The presumption is that all file descriptors should be created with the close-on-exec flag set. The only exception are file descriptors that we want passed through to exec'd subprocesses (mainly pipes and stdin/stdout/stderr). For open calls, we pass O_CLOEXEC as an extra flag, eg: fd = open ("foo", O_RDONLY|O_CLOEXEC); This is a Linux-ism, but using a macro we can easily make it portable. For sockets, similarly: sock = socket (..., SOCK_STREAM|SOCK_CLOEXEC, ...); For accepted sockets, we use the Linux accept4 system call which allows flags to be supplied, but we use the Gnulib 'accept4' module to make this portable. For dup, dup2, we use the Linux dup3 system call, and the Gnulib modules 'dup3' and 'cloexec'.
* tests: Remove/fix unused variables warnings.Richard W.M. Jones2012-03-122-0/+2
|
* tests: Remove unused variable.Richard W.M. Jones2012-03-121-1/+0
|
* extra-tests: Export LIBVIRT_DEFAULT_URI to pick-guests.pl.Richard W.M. Jones2012-03-081-1/+6
| | | | This fixes commit 2912e4e1173226f461517a0008664e01b5d3066d.
* extra-tests: Check that guests are accessible before picking them.Richard W.M. Jones2012-03-082-11/+65
|
* tests/md: Number the errors so we can easily see which test fails.Richard W.M. Jones2012-03-081-3/+3
|
* Test header file under C++.Richard W.M. Jones2012-03-042-0/+48
|
* New API: set-label, for setting a label on any filesystem.Richard W.M. Jones2012-02-273-4/+4
| | | | | | Currently only ext2/3/4 and (newly) NTFS are supported. This change also deprecates set-e2label.
* New APIs: ntfsclone-in, ntfsclone-out.Richard W.M. Jones2012-02-272-0/+84
|
* tests: Test parallel launch from multiple threads.Richard W.M. Jones2012-02-152-1/+182
|
* test-user-cancel: Add \n to fprintf error messages.Richard W.M. Jones2012-02-151-6/+6
|
* tests: Add a regression test for RHBZ#789960.Richard W.M. Jones2012-02-132-0/+69
| | | | | Test all the ways that the 'mount' command can fail. Ensure that none of them result in failures or desynchronization.
* regressions: One test is not being run.Richard W.M. Jones2012-02-131-0/+4
| | | | | | | | | rhbz727178.sh exists, but historically was never added to the list of tests, so it doesn't run. Create a special variable for this test and ensure it is added to EXTRA_DIST. Test was originally added in commit d7356a2801130907997acd5c7502e8417566e782.
* edit: Preserve file permissions, UID, GID, SELinux context on edited files. ↵Richard W.M. Jones2012-02-091-0/+2
| | | | (RHBZ#788641)
* extra-tests: Add suppression for uninitialized memory bug in latest glibc.Richard W.M. Jones2012-02-081-0/+8
|
* extra-tests: libnl moved from /lib64 to /usr/lib64 on Fedora.Richard W.M. Jones2012-02-081-0/+13
| | | | Update suppressions file to match.
* extra-tests: ocaml: Additional suppressions so we can test bytecode.Richard W.M. Jones2012-01-281-0/+14
|
* maint: use $var notation rather than ${var} when possibleJim Meyering2012-01-234-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I noticed some uses of ${srcdir} in shell scripts. That is almost always better written as $srcdir. The patch below converts most such variable references. Here are the few remaining candidates: $ git grep -i -E '\$\{[a-zA-Z_0-9]+\}'|grep -v Makefile.in.in configure.ac: JAR_INSTALL_DIR=\${prefix}/share/java configure.ac: JNI_INSTALL_DIR=\${libdir} debian/rules: for TEST in ${DEBIAN_SKIP_TEST}; do \ debian/rules:# mv $${mod} $$(dirname $${mod})/libguestfsmod.so; \ java/Makefile.am:libguestfs_jar_DATA = libguestfs-${VERSION}.jar java/Makefile.am:libguestfs-${VERSION}.jar: $(libguestfs_jar_class_files) perl/lib/Sys/Guestfs/Lib.pm: "-f", '${Package} ${Version} ${Architecture} ${Status}\n', perl/typemap: croak (\"${Package}::$func_name(): called on a closed handle\"); perl/typemap: croak (\"${Package}::$func_name(): $var is not a blessed HV reference\"); tests/data/Makefile.am: echo "$${i}abcdefghijklmnopqrstuvwxyz"; \ We could change all of those, too, except the ones in configure.ac and Makefile.am, since they refer to Make variables. Even those should be changed, but to use the preferred Makefile notation: $(prefix), $(libdir), $(VERSION). >From a86770ecd45666232a94d76c8725c8f9b1c76e3a Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Mon, 23 Jan 2012 11:15:12 +0100 Subject: [PATCH libguestfs] maint: use $var notation rather than ${var} when possible The only case to avoid in a shell script is when the byte after the "}" is word-constituent, and concatenating it would thus change the name of the variable. These changes were induced by running this command: git grep -l -i -E '\$\{(srcdir|md)' \ |xargs perl -pi -e 's/\$\{(srcdir|md)\}($|\w)/\$$1$2/gi' The "g" was needed because there was one line with two instances. The "i" is to handle ${SRCDIR}. The ($|\w) ensures that concatenating whatever follows the "}" won't change semantics. * gobject/run-bindtests: Use "$srcdir", not "${srcdir}". * haskell/run-bindtests: Likewise. * java/run-bindtests: Likewise. * ocaml/run-bindtests: Likewise. * perl/run-bindtests: Likewise. * python/run-bindtests: Likewise. * ruby/run-bindtests: Likewise. * tests/guests/guest-aux/make-debian-img.sh: Likewise, but $SRCDIR. * tests/guests/guest-aux/make-ubuntu-img.sh: Likewise. * tests/guests/guest-aux/make-windows-img.sh: Likewise. * tests/md/test-mdadm.sh: Likewise, but $md.
* Replace setting of environment variables with usage of local run scriptHilko Bengen2012-01-236-22/+7
| | | | (Includes fix by RWMJ)
* Tempus fugit.Richard W.M. Jones2012-01-1814-14/+14
| | | | Update all copyright dates to 2012.
* New tool: virt-format: erase and make blank disks.Richard W.M. Jones2012-01-181-0/+1
| | | | | This tool allows you to easily reformat a disk, creating a blank disk with optional partition, LVM and empty filesystem.
* extra-tests: Only test 5 random guests.Richard W.M. Jones2012-01-101-6/+10
| | | | | | | | | If you have a lot of guests, running extra tests takes a lot of time, but (arguably) you're not really doing any more detailed testing. Thus pick up to 5 guests at random to test. A different random selection is done on each run, ensuring that data-driven errors (eg in inspection) will still be found eventually.
* Allow /dev/null to be added multiple times.Richard W.M. Jones2012-01-101-29/+3
| | | | | | | | Change the test for duplicate drives so that you're allowed to add /dev/null multiple times. This corresponds to traditional usage. This amends commit be47b66c3033105a2b880dbc10bfc2b163b7eafe.