blob: 0ad4b64950f6a79fa4e10521434f39175d998837 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# -*- perl -*-
use lib qw(t lib);
use strict;
use Test;
use TestConfig;
plan(tests => 1);
my %keywords = (
core => {
section => {
'retain-interval' => { mandatory => 1 },
'tempdir' => 1,
'verbose' => 1,
}
},
backend => {
section => {
file => {
section => {
name => { mandatory => 1 },
local => 1
}
}
}
}
);
my $cfg = new TestConfig(
config => [
'core.tempdir' => '/tmp',
'backend.file.local' => 1
],
parameters => \%keywords,
expect => [ 'mandatory variable "core.retain-interval" not set',
'mandatory variable "backend.file.name" not set' ]);
ok($cfg->errors()==2);
|