Branch Coverage

blib/lib/Metabrik/Remote/Wmi.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
61 0 0 unless $self->SUPER::install
68 0 0 unless my $cw = "Metabrik::Client::Www"->new_from_brik_init($self)
69 0 0 unless my $files = $cw->mirror($url, "wmi-$version.tar.bz2", $datadir)
71 0 0 if (@$files > 0)
73 0 0 unless $self->SUPER::execute($cmd)
88 0 0 if (defined $self->shell) { }
89 0 0 unless $self->shell->run_cd("$datadir/wmi-$version/Samba/source")
92 0 0 unless chdir "$datadir/wmi-$version/Samba/source"
96 0 0 unless $self->system("./autogen.sh")
97 0 0 unless $self->system("./configure")
98 0 0 unless $self->system("make \"CPP=gcc -E -ffreestanding\"")
99 0 0 unless $self->system("make proto bin/wmic")
100 0 0 unless $self->system("make proto bin/winexe")
102 0 0 if (defined $self->shell) { }
106 0 0 unless chdir $cwd
109 0 0 unless my $sf = "Metabrik::System::File"->new_from_brik_init($self)
110 0 0 unless $sf->sudo_copy("$datadir/wmi-$version/Samba/source/bin/wmic", "/usr/local/bin/")
111 0 0 unless $sf->sudo_copy("$datadir/wmi-$version/Samba/source/bin/winexe", "/usr/local/bin/")
138 0 0 unless $self->brik_help_run_undef_arg("request", $query)
139 0 0 unless $self->brik_help_run_undef_arg("request", $host)
140 0 0 unless $self->brik_help_run_undef_arg("request", $user)
141 0 0 unless $self->brik_help_run_undef_arg("request", $password)
145 0 0 unless my $r = $self->SUPER::execute($cmd)
147 0 0 if (@$r > 1)
150 0 0 unless my $sp = "Metabrik::String::Psv"->new_from_brik_init($self)