File: template

package info (click to toggle)
postgresql-common 134wheezy4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 772 kB
  • sloc: perl: 2,345; sh: 437; makefile: 36
file content (29 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (2)
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
# Check XXX

use strict; 

use lib 't';
use TestLib;

my @versions = ($MAJORS[-1]);

use Test::More tests => 14;

use lib '/usr/share/postgresql-common';
use PgCommon;

# create clusters
foreach (@versions) {
    is ((system "pg_createcluster $_ main --start >/dev/null"), 0, "pg_createcluster $_ main");
    is_program_out 'postgres', "createdb --cluster $_/main XXX", 0, '';
}

# XXX

# clean up
foreach (@versions) {
    is ((system "pg_dropcluster $_ main --stop"), 0, "pg_dropcluster $_ main");
}
check_clean;

# vim: filetype=perl