storage: test: split archive format/compressor

detection into separate functions so they are reusable and easier
modifiable. This patch also adds the test for archive_info.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
Alwin Antreich
2020-04-28 15:58:13 +02:00
committed by Fabian Grünbichler
parent 7435dc9071
commit cd554b79d1
4 changed files with 199 additions and 22 deletions

12
test/run_plugin_tests.pl Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/perl
use strict;
use warnings;
use TAP::Harness;
my $harness = TAP::Harness->new( { verbosity => -1 });
my $res = $harness->runtests("archive_info_test.pm");
exit -1 if !$res || $res->{failed} || $res->{parse_errors};