It's executed with make testinstall (after make && make install). Current user has to have access for extension creation.

Different test cases

Location:

test/test-*.sh

Dependencies:

bash

perl

Mojo web framework. Can be installed with:

sudo sh -c "curl -L cpanmin.us | perl - Mojolicious"

For more details read at:

http://mojolicio.us/

Current user has to have access for extension creation.

Each test file do following things:

starts up simple server;

initializes extension with current case properties;

runs number of queries and checks output.

test/test-all.sh - run all available tests.
It accepts options. Check them with -h or --help CLI option.
It outputs results for each test file it runs and stats for all executed files either.

There are tests those need postgres to be compiled with xml feature support (--libxml).
Also there are tests those need following json data type support:
json data type implementation for postgres
All these dependent tests are skipped by default in test/test-all.sh. Look for CLI option to force them.

Development json parser tests

Location:

test/json_parser

Can be executed with "json_parser.sh" script. It compiles json parser executable, runs it against all given input files and checks against corresponding output files. Proper output looks like: