Files
cartodb-postgresql/test
2019-11-07 11:14:26 +01:00
..
2019-05-31 15:52:55 +02:00
2016-10-11 17:49:50 +02:00
2015-06-08 15:01:50 -04:00
2015-06-08 15:01:50 -04:00
2019-10-22 20:13:38 +02:00
2019-03-14 11:47:41 +01:00
2018-02-15 10:27:19 +01:00
2018-02-15 10:27:19 +01:00
2014-08-19 18:09:27 +02:00
2014-08-19 18:09:27 +02:00
2017-12-05 16:24:11 -05:00
2017-04-10 12:17:47 +02:00
2017-04-10 12:17:47 +02:00
2018-02-15 10:27:19 +01:00
2018-02-15 10:27:19 +01:00
2019-03-08 12:03:55 +01:00
2019-07-04 17:53:11 +02:00

Adding tests consists in adding 2 files in this directory: one file
containing the sql code and another containing the expected output.

Example, to add a test for CDB_Something function, you'd add:

 - CDB_SomethingTest.sql
 - CDB_SomethingTest_expect

In case you need multiple expects of a test for different versions you have
to add .pg$(VERSION) at the end of the file.

For example if you want an expect file for PG11 you need to have two expect files:

  - CDB_SomethingTest_expect
  - CDB_SomethingTest_expect.pg11

To easy the generation of the expected file you can initially omit it,
then run "make -C .. installcheck" from the top-level dir and copy
../results/test/CDB_SomethingTest.out to CDB_SomethingTest_expect chopping
off the first line:

 make -C .. installcheck
 tail -n +2 ../results/test/CDB_SomethingTest.out > CDB_SomethingTest_expect