⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 amcheckdump.pl

📁 开源备份软件源码 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that a
💻 PL
字号:
use Test::More qw( no_plan );use Amconfig;use lib "@amperldir@";use Amanda::Paths;sub amcheckdump {    my $cmd = "$sbindir/amcheckdump " . join(" ", @_) . " 2>&1";    my $result = `$cmd`;    chomp $result;    return $result;}my $testconf;### First, try amgetconf out without a configlike(amcheckdump(), qr/\AUSAGE:/i,     "bare 'amcheckdump' gives usage message");like(amcheckdump("this-probably-doesnt-exist"), qr(could not open conf file)i,     "error message when configuration parameter doesn't exist");### Now use a config with a vtape# this is re-created for each test$testconf = Amconfig->new();$testconf->setup_vtape();$testconf->write();like(amcheckdump("TESTCONF"), qr(could not find)i,     "'amcheckdump' on a brand-new config finds no dumps.");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -