OpenDBX/Test application
From Linuxnetworks
There are two applications for testing the OpenDBX library and their backends available when building the library from source.
Contents
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