extfs: uzip: make it testable.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Mooffie 2016-11-20 00:25:33 +02:00 committed by Andrew Borodin
parent 849d3e8f9d
commit 88f3aeef24

View File

@ -17,9 +17,9 @@ use strict;
# Location of the zip program # Location of the zip program
my $app_zip = "@ZIP@"; my $app_zip = "@ZIP@";
# Location of the unzip program # Location of the unzip program
my $app_unzip = "@UNZIP@"; my $app_unzip = $ENV{MC_TEST_EXTFS_LIST_CMD} || "@UNZIP@";
# Set this to 1 if zipinfo (unzip -Z) is to be used (recommended), otherwise 0. # Set this to 1 if zipinfo (unzip -Z) is to be used (recommended), otherwise 0.
my $op_has_zipinfo = @HAVE_ZIPINFO@; my $op_has_zipinfo = exists($ENV{MC_TEST_EXTFS_HAVE_ZIPINFO}) ? $ENV{MC_TEST_EXTFS_HAVE_ZIPINFO} : @HAVE_ZIPINFO@;
# Command used to list archives (zipinfo mode) # Command used to list archives (zipinfo mode)
my $cmd_list_zi = "$app_unzip -Z -l -T"; my $cmd_list_zi = "$app_unzip -Z -l -T";