summaryrefslogtreecommitdiffstats
path: root/inspector
Commit message (Collapse)AuthorAgeFilesLines
* tests: Replace 'make extra-tests' with individual tests.Richard W.M. Jones2012-11-132-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | '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.
* inspector: Add some real virt-inspector tests.Richard W.M. Jones2012-11-133-5/+65
|
* tools: Modify existing tools to use guestfs_{push,pop}_error_handler.Richard W.M. Jones2012-11-091-54/+41
| | | | | This is a shorter and more convenient way to disable errors temporarily across calls.
* inspect: Use new inspect_list_applications2 API callJohn Eckersberg2012-11-012-25/+30
| | | | | RWMJ: - Update virt-inspector.rng.
* remove the useless "h" optionWanlong Gao2012-09-261-3/+0
| | | | | | "h" option is not enabled in virt-cat, remove it. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* syntax: Remove gnulib c-ctype.h in files that don't use it.Richard W.M. Jones2012-09-151-1/+0
| | | | Found by 'make syntax-check'.
* podwrapper: Add --license parameter, which is required.Richard W.M. Jones2012-08-211-0/+1
| | | | | | | | | | This adds standard LICENSE and BUGS sections to all of the man pages that are processed by podwrapper. Modify all the calls to $(PODWRAPPER) to add the right --license parameter according to the content. Note that this relaxes the license on some code example pages, making them effectively BSD-style licensed.
* man pages: Ensure consistent copyright/author sections, remove licenseRichard W.M. Jones2012-08-211-14/+0
| | | | | | | | | | section. Ensure each man page contains consistent COPYRIGHT and AUTHOR sections. Remove the LICENSE section. We will add that back in podwrapper in a later commit.
* build: Use $(top_builddir)/run in Makefile.am's.Richard W.M. Jones2012-07-261-4/+4
| | | | | Not necessary, but this makes all invocations of 'run' consistent. There is no functional change.
* fish: Rename fish/virt.c to fish/domain.cRichard W.M. Jones2012-07-191-2/+2
| | | | | This file handles the -d option for guestfish and other C command line utilities. Renaming this file makes it less confusing.
* build: Change calls to podwrapper.sh to use $(PODWRAPPER).Richard W.M. Jones2012-07-161-1/+1
| | | | | This will allow us to easily change the location of this script in future.
* tests: Add ./run --test option.Richard W.M. Jones2012-06-261-4/+8
| | | | | | | 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.
* build: Define builddir and abs_srcdir when they are missing.Richard W.M. Jones2012-06-181-0/+3
| | | | | | | | | | | | | | | | | | | | | RHEL 5-era autoconf did not define these, so define them manually when they are missing. Define builddir as '.' The scripts require this. It won't work in the srcdir != builddir case, but we don't care about that for RHEL 5. This commit also moves the builddir / abs_srcdir variable setting above the include of subdir-rules.mk, in case that include uses these variables. Useful script: for f in $(find -name Makefile.am | xargs fgrep '$(abs_srcdir)' -l) ; do if ! grep -q '^abs_srcdir' $f; then echo missing in $f fi done
* New API: guestfs_canonical_device_name.Richard W.M. Jones2012-06-131-27/+24
| | | | This API makes device names canonical, eg. /dev/vda1 -> /dev/sda1.
* inspector: Update example XML.Richard W.M. Jones2012-04-121-0/+1
|
* inspector: Fix incorrect arch in example-ubuntu.xml.Richard W.M. Jones2012-04-121-1/+1
|
* inspector: Update man page to describe how to access inspection info from ↵Richard W.M. Jones2012-03-141-6/+112
| | | | other languages and guestfish.
* Replace 'int' with 'size_t' passim.Richard W.M. Jones2012-03-131-4/+4
| | | | | Analyze all uses of 'int' in the code, and replace with 'size_t' where appropriate.
* Tempus fugit.Richard W.M. Jones2012-01-183-3/+3
| | | | Update all copyright dates to 2012.
* fish options parsing: Allow add_drives to be called multiple times.Richard W.M. Jones2012-01-181-3/+2
| | | | | | Ensure that the drv structure is always zeroed on allocation. Don't leak old drv->device when add_drives is called multiple times.
* tests: Split images -> tests/data + tests/guestsRichard W.M. Jones2011-12-221-4/+4
|
* Update FSF address.Matthew Booth2011-11-083-3/+3
|
* Add virt-inspector --xpath to run XPath queries directly.Richard W.M. Jones2011-11-032-7/+146
| | | | | | | xmlstarlet is good, but not available in Red Hat Enterprise Linux. Build a simple but sane XPath query parser into virt-inspector directly so that we don't need any external tools.
* out-of-tree build: fixed bindtests and inspectorHilko Bengen2011-10-211-1/+1
|
* inspector: Use xmlstarlet instead of xpath in examples.Richard W.M. Jones2011-08-271-8/+12
|
* man pages: Add a standard EXIT STATUS section to most pages.Richard W.M. Jones2011-08-271-0/+5
|
* out-of-tree build: fix documentation generationHilko Bengen2011-08-151-1/+1
|
* inspector: Update documentation to cover <icon> element.Richard W.M. Jones2011-06-301-0/+22
| | | | This updates commit 7f16c346bbeba2f2fe3c31ccb85158178a284d84.
* New API: inspect-get-icon returns the guest icon.Richard W.M. Jones2011-06-282-8/+30
| | | | | | | | | | This API returns the guest's favicon if found, else an icon representing the guest operating system. Currently supported by this patch: Fedora, RHEL and derivatives, Debian (but not Ubuntu), Windows XP, Windows 7. This also updates virt-inspector to include an <icon> element containing the icon in base64 encoding.
* inspector: Fix comment in virt-inspector.rng.Richard W.M. Jones2011-06-281-2/+2
| | | | | The comment referred to the command line syntax of the old virt-inspector.
* Enable deprecation warnings on all C programs.Richard W.M. Jones2011-05-171-0/+1
|
* fish: Allow -d UUID (specify libvirt domains by UUID).Richard W.M. Jones2011-05-061-1/+2
| | | | | | | | | | | | | | This applies in all the commands which use the common C option parsing code, ie: * guestfish * guestmount * virt-cat * virt-df * virt-filesystems * virt-inspector * virt-ls * virt-rescue
* inspector: Refresh the virt-inspector(1) manpage.Richard W.M. Jones2011-04-161-4/+56
|
* Remove ad-hoc run*locally scripts, replace with './run'Richard W.M. Jones2011-04-162-56/+5
| | | | | Remove all the run*locally scripts and replace with a single top level ./run shell script.
* inspector: Handle write failures when creating example-*.xml.Richard W.M. Jones2011-04-141-4/+12
|
* inspector: Include <hostname> in output.Richard W.M. Jones2011-04-146-0/+13
|
* inspect: Get version and release of RPM packages.Richard W.M. Jones2011-04-141-0/+6
| | | | | | | | | | This commit downloads the Packages RPM database allowing us to find other details about installed RPM packages (via inspect-list-applications). This adds version and release. Epoch cannot yet be found. This commit also updates the Fedora example image so that it contains a dummy RPM Packages database with some data.
* inspect: Split code into separate files.Richard W.M. Jones2011-04-143-0/+3
| | | | | | | | | | | | | | | | | The src/inspect.c file had grown rather large -- 3,500 lines. Split it across several files according to function. This is just moving code. After the split the files are more evenly divided: 536 src/inspect_apps.c 766 src/inspect.c 537 src/inspect_fs.c 404 src/inspect_fs_cd.c 785 src/inspect_fs_unix.c 535 src/inspect_fs_windows.c 3563 total
* Include string.h and libintl.h, as needed.Jim Meyering2011-04-131-0/+2
| | | | | | | | | * df/df.c: As above. * df/main.c: As above. * df/output.c: As above. * fuse/guestmount.c: As above. * inspector/virt-inspector.c: As above. * rescue/virt-rescue.c: As above.
* New API: inspect-get-drive-mappingsRichard W.M. Jones2011-04-053-0/+70
| | | | | | | | | | | | This returns the drive mappings from the Windows Registry. virt-inspector displays the drive mappings, giving output similar to this: <drive_mappings> <drive_mapping name="C">/dev/sda2</drive_mapping> <drive_mapping name="E">/dev/sdb1</drive_mapping> </drive_mappings>
* New API: inspect-get-windows-current-control-setRichard W.M. Jones2011-04-053-1/+10
| | | | | | | | | | | | | | This returns the actual registry key corresponding to CurrentControlSet (eg. it might be "ControlSet001"). Previously the inspection code was hard-coding ControlSet001. Now we use the correct control set, and also make it available to callers through the API. This commit also updates the virt-dhcp-address example so it uses this new API. virt-inspector displays the current control set when available.
* inspect: Detect 32 bit applications running on WOW64 emulator (RHBZ#692545).Richard W.M. Jones2011-03-311-0/+7
| | | | | | | These applications are located along a different Registry path. See http://support.microsoft.com/kb/896459 for all the details. Thanks Jinxin Zheng for finding the bug and the solution.
* Add /etc/libguestfs-tools.conf configuration file.Richard W.M. Jones2011-03-311-1/+4
| | | | | This allows the default for --ro or --rw to be controlled for the three tools guestfish, guestmount and virt-rescue.
* New API: guestfs_inspect_get_product_variantRichard W.M. Jones2011-03-234-2/+13
| | | | | | | | | | This returns a product variant for inspected operating systems. In practice this is a useful way to distinguish between consumer and enterprise/server versions of Windows that otherwise have the same version number. Notes: Labels: feature
* Include <locale.h> in compilation units that use setlocale function.Richard W.M. Jones2011-03-071-0/+1
| | | | Fix required by gcc 4.6.0.
* fish: Add guestfish --live, guestmount --live options.Richard W.M. Jones2011-02-031-0/+2
| | | | | | The other programs have the variable, but the flag is not enabled either because it doesn't make sense or because the implications are not well understood.
* Add ability to inspect install disks and live CDs.Richard W.M. Jones2011-01-1513-3/+276
| | | | | For examples of the virt-inspector output, see the additional inspector/example-*.xml files in this commit.
* inspector: Apps in Windows VMs are now listed - update documentation.Richard W.M. Jones2011-01-021-3/+1
|
* inspector: Remove some unused local variables.Richard W.M. Jones2010-12-091-2/+0
|
* Remove ability to build static distribution.Richard W.M. Jones2010-12-061-6/+0
| | | | | | We are now going to build binaries for each distribution so there is no need to build the quasi-distro-independent static binaries any more.