cartodb-postgresql/test
2014-06-05 18:21:52 +02:00
..
perf Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_CartodbfyTableTest_expect Workaround PostgreSQL bug possibly triggering infinite loops 2014-05-30 19:24:19 +02:00
CDB_CartodbfyTableTest.sql Further increase in test tolerance 2014-06-05 18:21:52 +02:00
CDB_DigitSeparatorTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_DigitSeparatorTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_HeadsTailsBinsTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_HeadsTailsBinsTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_HexagonTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_HexagonTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_JenksBinsTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_JenksBinsTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_QuantileBinsTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_QuantileBinsTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_QueryStatementsTest_expect Fix potential infinite loop in CDB_QueryStatements 2014-06-05 15:00:57 +02:00
CDB_QueryStatementsTest.sql Fix potential infinite loop in CDB_QueryStatements 2014-06-05 15:00:57 +02:00
CDB_QueryTablesTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_QueryTablesTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_QuotaTest_expect Do not allow cartodbfying tables while no user quota is set 2014-05-12 13:27:44 +02:00
CDB_QuotaTest.sql Do not allow cartodbfying tables while no user quota is set 2014-05-12 13:27:44 +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_UserTablesTest_expect Rename test to have "Test" suffix 2014-06-04 10:41:34 +02:00
CDB_UserTablesTest.sql Rename test to have "Test" suffix 2014-06-04 10:41:34 +02:00
CDB_XYZ_ExtentTest_expect Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_XYZ_ExtentTest.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
Makefile Re-add the test/Makefile which was available while in cartodb/lib/sql 2014-05-07 18:08:38 +02:00
README Add instructions about adding a test 2014-06-04 10:40:18 +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

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