X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=installcheck%2Famservice.pl;h=560ca277e645d6b8cdd15c83c2aa102e10f60fe8;hb=0ab9787cd7de76aad522ee8d55ed7e87e3047458;hp=27d1df229a606758b3b6cde38317e0025ec6a415;hpb=afaa71b3866b46b082b6c895772e15b36d8865fe;p=debian%2Famanda diff --git a/installcheck/amservice.pl b/installcheck/amservice.pl index 27d1df2..560ca27 100644 --- a/installcheck/amservice.pl +++ b/installcheck/amservice.pl @@ -1,4 +1,4 @@ -# Copyright (c) 2005-2008 Zmanda Inc. All Rights Reserved. +# Copyright (c) 2008, 2009, 2010 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,22 @@ # 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 => 3; +use strict; +use warnings; use lib "@amperldir@"; +use Installcheck; use Installcheck::Run qw( run run_get ); use Amanda::Paths; use Amanda::Constants; -my $input_filename = "$AMANDA_TMPDIR/amservice_input.txt"; +my $input_filename = "$Installcheck::TMP/amservice_input.txt"; my $testconf = Installcheck::Run::setup(); +$testconf->write(); my $input; sub write_input_file { @@ -59,7 +63,7 @@ like(run_get('amservice', '-f', '/dev/null', 'localhost', 'local', 'noop'), $input = < GNUTAR - $AMANDA_TMPDIR + $Installcheck::TMP EOF @@ -79,7 +83,7 @@ $input = < amgtar - $AMANDA_TMPDIR + $Installcheck::TMP EOF @@ -97,7 +101,7 @@ $input = < amstar - $AMANDA_TMPDIR + $Installcheck::TMP EOF