Registry Test Command is a command line utility to facilitate testing of various components of the application. It is primarily intended for system administrators to perform diagnostic tasks, and is intended to be run manually or scripted.

Usage

Test Command is run via cake shell, ie 

$ cd $REGISTRY/app
$ ./bin/cake test ...
  1. test [-qv] -t database [--datasource <datasource>]

where

  • t: The test to run (see below for description of available tests)
  • datasource: Datasource to try connecting with

Return Codes

In addition reporting errors to stderr, Test Command will exit with an appropriate code that can be inspected in scripts using $?.

ResultCakePHP ConstantValue
SuccessCODE_SUCCESS0
ErrorCODE_ERROR1

Available Tests

Database Connectivity (database)

The database connectivity test attempts to connect to the requested datasource, as defined in $REGISTRY/local/config/database.php. If not specified, the default database will be used.

  • No labels