test: parse_volname

Test to reduce the potential for accidental breakage on regex changes.
And to make sure that all vtype_subdirs are parsed.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
Alwin Antreich
2020-04-28 15:58:16 +02:00
committed by Fabian Grünbichler
parent 92ae59df9e
commit c48801b52a
3 changed files with 258 additions and 1 deletions

View File

@ -6,7 +6,7 @@ use warnings;
use TAP::Harness;
my $harness = TAP::Harness->new( { verbosity => -1 });
my $res = $harness->runtests("archive_info_test.pm");
my $res = $harness->runtests("archive_info_test.pm", "parse_volname_test.pm");
exit -1 if !$res || $res->{failed} || $res->{parse_errors};