Difference between revisions of "OpenDBX/Test application"

From Linuxnetworks
Jump to: navigation, search
(Initial descriptions)
 
(Description)
Line 25: Line 25:
  
 
The applications execute a test suite containing a predefined set of SQL statements against your server. This includes creating a table, inserting rows, performing multiple SELECT, UPDATE and DELETE statements (also within transactions if supported). It also removes the created table and tests for certain error conditions.
 
The applications execute a test suite containing a predefined set of SQL statements against your server. This includes creating a table, inserting rows, performing multiple SELECT, UPDATE and DELETE statements (also within transactions if supported). It also removes the created table and tests for certain error conditions.
 +
 +
== Options ==
 +
 +
; -b <backend> : name of the database backend or path to the backend library
 +
 +
; -h <host> : host name, IP address or directory path to the database file

Revision as of 18:58, 8 May 2010

There are two applications for testing the OpenDBX library and their backends available when building the library from source.

Name

These to applications can be found in the "test" sub-directory of the extracted tarball:

./test/odbxtest
./test/odbxplustest

The first one (odbxtest) uses the C library functions available from libopendbx while the second one (odbxplustest) executes the same statements by using the C++ objects from libopendbxplus.

Sypnosis

./test/odbxtest -b <backend or library>
  -h <host or IP or directory> [-p <port>]
  -d <database or file name> -u <user name>
  -w <password> [-r <runs>] [-e]
./test/odbxplustest -b <backend or library>
  -h <host or IP or directory> [-p <port>]
  -d <database or file name> -u <user name>
  -w <password> [-r <runs>] [-e]

Description

The applications execute a test suite containing a predefined set of SQL statements against your server. This includes creating a table, inserting rows, performing multiple SELECT, UPDATE and DELETE statements (also within transactions if supported). It also removes the created table and tests for certain error conditions.

Options

-b <backend> 
name of the database backend or path to the backend library
-h <host> 
host name, IP address or directory path to the database file