cartodb-postgresql/test
2019-11-06 17:51:00 +01:00
..
extension test_foreign_tables: Better debugging and query the default database when needed 2019-10-24 12:35:46 +02:00
organization Remove unnecessary changes 2019-05-31 15:52:55 +02:00
overviews Fix the tests for boolean columns and overview creation 2016-03-21 12:27:00 +01:00
perf Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_AnalysisCheckTest_expect Test cleanup 2016-10-11 17:49:50 +02:00
CDB_AnalysisCheckTest.sql Fix the test/CDB_AnalysisCheckTest.sql 2019-05-28 09:34:10 +02:00
CDB_CartodbfyTableTest_expect Added test for the case that arose in #325 2018-03-22 11:53:50 +01:00
CDB_CartodbfyTableTest.sql Added test for the case that arose in #325 2018-03-22 11:53:50 +01:00
CDB_DateToNumberTest_expect Makes CDB_DateToNumber() tests more intuitive 2202 2015-10-05 14:56:45 +02:00
CDB_DateToNumberTest.sql Makes CDB_DateToNumber() tests more intuitive 2202 2015-10-05 14:56:45 +02:00
CDB_DigitSeparatorTest_expect Use PG 9.5 for travis tests; fix tests 2017-04-10 15:58:49 +02:00
CDB_DigitSeparatorTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_DistinctMeasureTest_expect update test output 2015-06-25 08:17:41 -04:00
CDB_DistinctMeasureTest.sql fixed symlink path, other minor items 2015-06-23 18:32:16 -04:00
CDB_DistTypeTest_expect adding tests 2015-06-08 15:01:50 -04:00
CDB_DistTypeTest.sql adding tests 2015-06-08 15:01:50 -04:00
CDB_EqualIntervalBinsTest_expect Test behavior of binning fuctions with nulls 2016-04-28 09:59:33 -07:00
CDB_EqualIntervalBinsTest.sql Test behavior of binning fuctions with nulls 2016-04-28 09:59:33 -07:00
CDB_EstimateRowCountTest_expect Add CDB_EstimateRowCount function 2017-04-07 15:35:48 +02:00
CDB_EstimateRowCountTest.sql Add CDB_EstimateRowCount function 2017-04-07 15:35:48 +02:00
CDB_GhostTables_expect Update error messages 2019-10-22 20:13:38 +02:00
CDB_GhostTables.sql fix test 2019-03-14 11:47:41 +01:00
CDB_GreatCircle_expect Test: Update CDB_GreatCircle_expect for Postgis 2.4 2018-09-04 17:25:22 +02:00
CDB_GreatCircle.sql Add optional parameter for max. great circle segment length 2015-11-23 17:13:17 +01:00
CDB_HeadsTailsBinsTest_expect Test behavior of binning fuctions with nulls 2016-04-28 09:59:33 -07:00
CDB_HeadsTailsBinsTest.sql Test behavior of binning fuctions with nulls 2016-04-28 09:59:33 -07:00
CDB_HelperTest_expect Add a new helper function _CDB_Table_Exists 2018-07-03 13:00:24 +02:00
CDB_HelperTest.sql Add a new helper function _CDB_Table_Exists 2018-07-03 13:00:24 +02:00
CDB_HexagonTest_expect Fix tests 2018-02-15 10:27:19 +01:00
CDB_HexagonTest.sql Fix tests 2018-02-15 10:27:19 +01:00
CDB_JenksBinsTest_expect Jenks: Add test for less data than breaks 2018-09-10 16:15:02 +02:00
CDB_JenksBinsTest.sql Jenks: Add test for less data than breaks 2018-09-10 16:15:02 +02:00
CDB_MathTest_expect added CDB_Math_mode 2014-08-19 18:09:27 +02:00
CDB_MathTest.sql added CDB_Math_mode 2014-08-19 18:09:27 +02:00
CDB_OAuth_expect Use privileged action on functions for tests 2019-11-06 17:51:00 +01:00
CDB_OAuth.sql Use privileged action on functions for tests 2019-11-06 17:51:00 +01:00
CDB_OverviewsTest_expect CDB_OverviewsTest: Run analyze for consistency 2018-09-04 18:22:22 +02:00
CDB_OverviewsTest.sql CDB_OverviewsTest: Run analyze for consistency 2018-09-04 18:22:22 +02:00
CDB_QuantileBinsTest_expect moves quantile bins to use postgres precentile functions 2017-12-05 16:16:39 -05:00
CDB_QuantileBinsTest.sql fix alias of column 2017-12-05 16:24:11 -05:00
CDB_QueryStatementsTest_expect Fix tests 2017-04-10 12:17:47 +02:00
CDB_QueryStatementsTest.sql Fix tests 2017-04-10 12:17:47 +02:00
CDB_QueryTablesTest_expect Change querytables expect test 2018-07-20 13:22:02 +02:00
CDB_QueryTablesTest.sql Use PG 9.5 for travis tests; fix tests 2017-04-10 15:58:49 +02:00
CDB_QuotaTest_expect Quota: Remove kb error from regress tests 2019-10-24 11:15:15 +02:00
CDB_QuotaTest.sql Quota: Remove kb error from regress tests 2019-10-24 11:15:15 +02:00
CDB_RectangleTest_expect Fix tests 2018-02-15 10:27:19 +01:00
CDB_RectangleTest.sql Fix tests 2018-02-15 10:27:19 +01:00
CDB_StatsTest_expect Raise min message so we don't have to validate notices 2015-09-04 00:02:30 +02:00
CDB_StatsTest.sql Do not use random() for the distribution to test CDB_Stats functions 2015-09-09 17:08:32 +02:00
CDB_SyncTableTest_expect Add tests for quoted table & column names 2019-07-04 12:47:01 +02:00
CDB_SyncTableTest.sql Add tests for quoted table & column names 2019-07-04 12:47:01 +02:00
CDB_TransformToWebmercatorTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_TransformToWebmercatorTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_Username_expect decouple tests from cartodb 2019-02-20 13:34:11 +01:00
CDB_Username.sql read tis config from cdb_conf 2019-03-08 12:03:55 +01:00
CDB_UserTablesTest_expect Tests: Only create publicuser if necessary 2019-05-31 15:37:15 +02:00
CDB_UserTablesTest.sql CDB_UserTablesTest: Make tests work even if the user doesn't have cartodb in the searchpath 2019-10-24 13:45:36 +02:00
CDB_XYZ_ExtentTest_expect Round extent outputs in test 2015-12-22 16:34:18 -08:00
CDB_XYZ_ExtentTest.sql Round extent outputs in test 2015-12-22 16:34:18 -08:00
Makefile Re-add the test/Makefile which was available while in cartodb/lib/sql 2014-05-07 18:08:38 +02:00
README Updated NEWS and tests README 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