Skip to content

Commit

Permalink
[UPC#441] test copy
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Nov 20, 2017
1 parent 22df38d commit fbae151
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions t/vm/c10_copy.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
use warnings;
use strict;

use Data::Dumper;
use Test::More;
use Test::SQL::Data;

use lib 't/lib';
use Test::Ravada;

my $test = Test::SQL::Data->new(config => 't/etc/sql.conf');
init($test->connector);

use_ok('Ravada');

my $FILE_CONFIG = 't/etc/ravada.conf';

##########################################################################3

sub test_copy {
}

##########################################################################3

clean();


for my $vm_name ('Void', 'KVM') {
my $vm = rvd_back->search_vm($vm_name);

SKIP: {

my $msg = "SKIPPED: No virtual managers found";
if ($vm && $vm_name =~ /kvm/i && $>) {
$msg = "SKIPPED: Test must run as root";
$vm = undef;
}

skip($msg,10) if !$vm;

test_copy($vm_name);
}

}

clean();

done_testing();

0 comments on commit fbae151

Please sign in to comment.