File: 01_sysconf3.t

package info (click to toggle)
systemconfigurator 2.0.10-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 724 kB
  • ctags: 313
  • sloc: perl: 7,423; makefile: 48
file content (26 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (4)
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
# This is a test of the config file parsing.  There are certain options which should be there
# and others which should not.

use Test;
use Data::Dumper;

BEGIN {plan tests => 9;
       @ARGV = qw(--configsi --confighw --cfgfile t/cfg/options1.cfg);
}

eval {
    use SCConfig;
    return 1;
};

ok($@,'') or croak("No point in going any further");

# first, possitive tests
ok($config->confignet);
ok($config->confighw);
ok($config->runboot);
ok(!$config->configboot);
ok(!$config->configrd);
ok($config->configtime);
ok($config->configkeyboard);
ok($config->configuserexit);