cartodb-postgresql/test
Raúl Marín 38f26f4e8b Typo
2020-03-26 17:03:27 +01:00
..
extension Deprecate FDW user setup ;__( 2019-11-06 18:26:37 +01: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 Regress: Remove output that depends on PROJ release 2019-11-06 18:34:20 +01:00
CDB_CartodbfyTableTest.sql Regress: Remove output that depends on PROJ release 2019-11-06 18:34:20 +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_FederatedServer_expect Adapt tests to work with other ports (not 5432) 2020-03-26 16:37:58 +01:00
CDB_FederatedServer.sql FServer list: Return the username if the user has been granted access to the server 2019-12-11 18:37:26 +01:00
CDB_FederatedServerDiagnostics_expect Adapt tests to work with other ports (not 5432) 2020-03-26 16:37:58 +01:00
CDB_FederatedServerDiagnostics.sql Typo 2020-03-26 17:03:27 +01:00
CDB_FederatedServerListRemote_expect Federated Server: Unify remote table listing 2019-11-06 17:04:11 +01:00
CDB_FederatedServerListRemote.sql Use always the modern notation for named parameters 2019-11-06 17:25:10 +01:00
CDB_FederatedServerTables_expect FederatedTableList: Fix column parsing with default names 2019-12-12 15:52:50 +01:00
CDB_FederatedServerTables.sql FederatedTableList: Fix column parsing with default names 2019-12-12 15:52:50 +01:00
CDB_GhostTables_expect Avoid outputting python error messages in regress tests 2019-12-26 17:46:10 +01:00
CDB_GhostTables.sql Avoid outputting python error messages in regress tests 2019-12-26 17:46:10 +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 Add drop permission test for functions 2019-11-07 11:14:26 +01:00
CDB_OAuth.sql Document default privileges on functions 2019-11-07 15:03:46 +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 Add test for CDB_UserDataSize identifier quoation 2019-12-24 14:14:26 +01:00
CDB_QuotaTest.sql Add test for CDB_UserDataSize identifier quoation 2019-12-24 14:14:26 +01: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 Regress: Remove output that depends on PROJ release 2019-11-06 18:34:20 +01:00
CDB_SyncTableTest.sql Regress: Remove output that depends on PROJ release 2019-11-06 18:34:20 +01: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 Regress: Allow variables in the tests 2019-10-28 17:12:38 +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 Update README 2019-10-28 16:14:45 +01: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


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