Thread: Pgsql test Files

Pgsql test Files

From
"Zainab M. Raoof"
Date:
Hello Sir,

My question is : 
In my study and research  I need to take a look into the source files of PostgreSQL , I wonder how to differentiate a  test file from an actual source code file? is there any pattern for test file name?
Thanks



Re: Pgsql test Files

From
Kevin Grittner
Date:
Zainab M. Raoof <zmr98@hotmail.com> wrote:

> In my study and research  I need to take a look into the source
> files of PostgreSQL , I wonder how todifferentiate a  test file
> from an actual source code file? is there any pattern for test
> file name?

You will generally find source files related to testing in or under
subdirectories name "test".  For example, the src/test/regress
subdirectory contains C code for the main testing framework and
subdirectories for SQL scripts and the expected results from
running them.

When tests are run you will find source code copied under
"tmp_check" subdirectories that you can generally ignore.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company