diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-19 02:44:31 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-19 02:44:31 +0100 |
commit | a71c3714323b6dce2fbeea68c2d007c223467f26 (patch) | |
tree | 3f1cb0fe8450ed460f7cb65113694d03ba064f08 /source4/selftest/target | |
parent | 35dd0b0f4ad6ab0d9365d2858b60bf82e4877bda (diff) | |
download | samba-a71c3714323b6dce2fbeea68c2d007c223467f26.tar.gz samba-a71c3714323b6dce2fbeea68c2d007c223467f26.tar.bz2 samba-a71c3714323b6dce2fbeea68c2d007c223467f26.zip |
Add framework for Kvm test.
(This used to be commit e4efbb2906f4f3876986e21c12b58791c3526bed)
Diffstat (limited to 'source4/selftest/target')
-rw-r--r-- | source4/selftest/target/Kvm.pm | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/source4/selftest/target/Kvm.pm b/source4/selftest/target/Kvm.pm new file mode 100644 index 0000000000..533fb302d0 --- /dev/null +++ b/source4/selftest/target/Kvm.pm @@ -0,0 +1,55 @@ +#!/usr/bin/perl +# Start a KVM machine and run a number of tests against it. +# Copyright (C) 2005-2008 Jelmer Vernooij <jelmer@samba.org> +# Published under the GNU GPL, v3 or later. + +package Kvm; + +use strict; +use Cwd qw(abs_path); +use FindBin qw($RealBin); +use POSIX; + +sub new($$$$) { + my ($classname, $image) = @_; + my $self = { + image => $image + }; + bless $self; + return $self; +} + +sub teardown_env($$) +{ + my ($self, $envvars) = @_; + + return 0; +} + +sub getlog_env($$) +{ + my ($self, $envvars) = @_; + + return ""; +} + +sub check_env($$) +{ + my ($self, $envvars) = @_; + + return 1; +} + +sub setup_env($$$) +{ + my ($self, $envname, $path) = @_; + + die("No implemented yet"); +} + +sub stop($) +{ + my ($self) = @_; +} + +1; |