23d93d72065c38d0df9f1c1e7cb736145a9f5486
[debian/amanda] / installcheck / amtapetype.pl
1 # Copyright (c) 2005-2008 Zmanda Inc.  All Rights Reserved.
2 #
3 # This program is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU General Public License version 2 as published
5 # by the Free Software Foundation.
6 #
7 # This program is distributed in the hope that it will be useful, but
8 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
9 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
10 # for more details.
11 #
12 # You should have received a copy of the GNU General Public License along
13 # with this program; if not, write to the Free Software Foundation, Inc.,
14 # 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
15 #
16 # Contact information: Zmanda Inc, 465 S Mathlida Ave, Suite 300
17 # Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
18
19 use Test::More tests => 2;
20
21 use lib "@amperldir@";
22 use Installcheck::Run qw(run run_get run_err);
23
24 ##
25 # First, check that the script runs -- this is essentially a syntax/strict
26 # check of the script.
27
28 ok(!run('amtapetype'),
29     "'amtapetype' with no arguments returns an error exit status");
30 like($Installcheck::Run::stderr, qr(\AUsage: )i,
31     ".. and gives usage message on stderr");
32
33 # amtapetype demands far more resources than we can allow it to use in a
34 # test situation, so for now this is the  best we can do.