| 1 | package PITA::Test::Image::Qemu; | ||
| 2 | |||
| 3 | =pod | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | PITA::Test::Image::Qemu - A tiny Qemu test image that only boots and pings | ||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | This distribution contains a small Qemu image intended for snapshot-mode | ||
| 12 | testing of the L<PITA::Guest::Driver::Qemu> module. | ||
| 13 | |||
| 14 | Primarily, it is intended for testing the launch-shutdown cycle, and not | ||
| 15 | for testing discovery or package testing. | ||
| 16 | |||
| 17 | It verifies that the driver is using the F<qemu> binary properly. | ||
| 18 | |||
| 19 | =head1 METHODS | ||
| 20 | |||
| 21 | =cut | ||
| 22 | |||
| 23 | 2 | ▶ | use 5.006; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | 2 | ▶ | use File::ShareDir (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | |||
| 27 | 2 | ▶ | use vars qw{$VERSION}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | 2 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | 2 | $VERSION = '0.41'; | |
| 30 | } | ||
| 31 | |||
| 32 | 2 | 1; | |
| 33 | |||
| 34 | =pod | ||
| 35 | |||
| 36 | =head2 filename | ||
| 37 | |||
| 38 | The static C<filename> method returns the location of the expanded testing | ||
| 39 | image, verified to exist. The file will be available only with read | ||
| 40 | permissions, and without the ability to write. | ||
| 41 | |||
| 42 | =cut | ||
| 43 | |||
| 44 | 1 | ▶ | sub filename { |
|
Subroutine
filename: called CC=1 SCAR=0.0
Pod
documented
| |||
| 45 | 1 | File::ShareDir::dist_file('PITA-Test-Image-Qemu', 'qemu.img'); | |
| 46 | } | ||
| 47 | |||
| 48 | =pod | ||
| 49 | |||
| 50 | =head1 SUPPORT | ||
| 51 | |||
| 52 | Bugs should be reported via the CPAN bug tracker at | ||
| 53 | |||
| 54 | L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=PITA-Test-Image-Qemu> | ||
| 55 | |||
| 56 | For other issues, contact the author. | ||
| 57 | |||
| 58 | =head1 AUTHOR | ||
| 59 | |||
| 60 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||
| 61 | |||
| 62 | =head1 SEE ALSO | ||
| 63 | |||
| 64 | The Practical Image Testing Architecture (L<http://ali.as/pita/>) | ||
| 65 | |||
| 66 | L<PITA>, L<PITA::Guest::Driver::Qemu> | ||
| 67 | |||
| 68 | =head1 COPYRIGHT | ||
| 69 | |||
| 70 | Copyright 2006 - 2008 Adam Kennedy. | ||
| 71 | |||
| 72 | This program is free software; you can redistribute | ||
| 73 | it and/or modify it under the same terms as Perl itself. | ||
| 74 | |||
| 75 | The full text of the license can be found in the | ||
| 76 | LICENSE file included with this module. | ||
| 77 | |||
| 78 | =cut | ||