Blame installcheck/run-ndmp.pl

Packit Service 392537
#! @PERL@
Packit Service 392537
# Copyright (c) 2010-2012 Zmanda, Inc.  All Rights Reserved.
Packit Service 392537
# Copyright (c) 2013-2016 Carbonite, Inc.  All Rights Reserved.
Packit Service 392537
#
Packit Service 392537
# This program is free software; you can redistribute it and/or
Packit Service 392537
# modify it under the terms of the GNU General Public License
Packit Service 392537
# as published by the Free Software Foundation; either version 2
Packit Service 392537
# of the License, or (at your option) any later version.
Packit Service 392537
#
Packit Service 392537
# This program is distributed in the hope that it will be useful, but
Packit Service 392537
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
Packit Service 392537
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
Packit Service 392537
# for more details.
Packit Service 392537
#
Packit Service 392537
# You should have received a copy of the GNU General Public License along
Packit Service 392537
# with this program; if not, write to the Free Software Foundation, Inc.,
Packit Service 392537
# 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
Packit Service 392537
#
Packit Service 392537
# Contact information: Carbonite Inc., 756 N Pastoria Ave
Packit Service 392537
# Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
Packit Service 392537
Packit Service 392537
# This utility is useful for setting up a long-running NDMP tape service while
Packit Service 392537
# developing.  It's not used in normal Amanda operations, nor even during
Packit Service 392537
# installchecks.  Note that you will need to run the =setupcache installcheck
Packit Service 392537
# first, to generate the cached NDMP dump.
Packit Service 392537
Packit Service 392537
use lib '@top_srcdir@/installcheck';
Packit Service 392537
use lib '@amperldir@';
Packit Service 392537
Packit Service 392537
use Installcheck;
Packit Service 392537
use Installcheck::Mock;
Packit Service 392537
use Installcheck::Config;
Packit Service 392537
use Installcheck::Dumpcache;
Packit Service 392537
Packit Service 392537
die "not built with ndmp" unless
Packit Service 392537
    Amanda::Util::built_with_component("ndmp");
Packit Service 392537
Packit Service 392537
Installcheck::Dumpcache::load("ndmp");
Packit Service 392537
my $ndmp = Installcheck::Mock::NdmpServer->new(no_reset => 1);
Packit Service 392537
$ndmp->edit_config();
Packit Service 392537
Packit Service 392537
print "NDMP test daemon running for config TESTCONF; put this script in\n";
Packit Service 392537
print "the background and kill it when you are finished.\n";
Packit Service 392537
Packit Service 392537
while (1) { sleep(100); }