X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=installcheck%2Famarchiver.pl;h=04cef994d29bf7aeb87125b84de75eb997b1bc45;hb=fd48f3e498442f0cbff5f3606c7c403d0566150e;hp=15e3cad75fe3fde4355c27adb371d580cf5f6f8d;hpb=96f35b20267e8b1a1c846d476f27fcd330e0b018;p=debian%2Famanda diff --git a/installcheck/amarchiver.pl b/installcheck/amarchiver.pl index 15e3cad..04cef99 100644 --- a/installcheck/amarchiver.pl +++ b/installcheck/amarchiver.pl @@ -1,4 +1,4 @@ -# Copyright (c) 2005-2008 Zmanda Inc. All Rights Reserved. +# Copyright (c) 2008,2009 Zmanda, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 as published @@ -13,18 +13,19 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# Contact information: Zmanda Inc, 465 S Mathlida Ave, Suite 300 +# Contact information: Zmanda Inc, 465 S. Mathilda Ave., Suite 300 # Sunnyvale, CA 94086, USA, or: http://www.zmanda.com use Test::More tests => 18; use lib "@amperldir@"; +use Installcheck; use Installcheck::Run qw( run run_get ); use Amanda::Paths; use Amanda::Constants; use File::Path qw( mkpath rmtree ); -my $tmpdir = "$AMANDA_TMPDIR/amarchiver-installcheck"; +my $tmpdir = "$Installcheck::TMP/amarchiver-installcheck"; my $archfile = "$tmpdir/test.amar"; my $data = "abcd" x 500; my $fh; @@ -71,7 +72,7 @@ like($Installcheck::Run::stdout, ok(run('amarchiver', '--create', '--verbose', $archfile), "archive creation with --verbose and without --file succeeds"); like($Installcheck::Run::stderr, - qr{$archfile}, + qr{\Q$archfile\E}, "..and output goes to stderr"); unlink($archfile);