File: README

package info (click to toggle)
resource-agents-paf 2.2.1-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 340 kB
  • sloc: perl: 1,811; sh: 208; makefile: 27
file content (34 lines) | stat: -rw-r--r-- 1,113 bytes parent folder | download
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
# Testing the user agent

1/ you need to install the resource-agents package of your distribution. This
   package contains the "ocft" script needed to run these tests.

2/ if needed, export the following environment variables:

     PGDATA        (default is /tmp/pgdata1) Where to create the PostrgeSQL
                   instance used for the tests
     PGBIN         (default is /usr/pgsql-9.3/bin) Location of the
                   PostrgeSQL binaries
     RESOURCE_NAME (default is pgsqld) The resource name used by the RA
     PGHOST        (default is /tmp) Ip address or socket directory to
                   connect to the server

   Warning, the instance in PGDATA is created for tests, then __destructed__.

3/ Make sure the HA_RSCTMP folder exists. On most Linux distribution it
is located in "/var/run/resource-agents/".

4/ to build the test scripts, run the following command as root:

     ocft make pgsqlms

5/ to actually run the tests, run the following command as root:

     ocft test pgsqlms

6/ to have some debug, run:

     ocft test -v pgsqlms


For more informations, see : ocft -h