You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cartodb-postgresql/test
Raul Ochoa fc95566ddd
Remove test for unexistent table as there was already one
10 years ago
..
extension Remove test for unexistent table as there was already one 10 years ago
organization CDB-3743 Makes CDB_QueryTables to return only results for schemas associated to Relation-Names 10 years ago
perf Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_CartodbfyTableTest.sql #69 now using pg_relation_size 10 years ago
CDB_CartodbfyTableTest_expect #1138 Quota changes, raster import cartodbfication and quota spec 10 years ago
CDB_DigitSeparatorTest.sql Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_DigitSeparatorTest_expect Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_HeadsTailsBinsTest.sql Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_HeadsTailsBinsTest_expect Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_HexagonTest.sql Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_HexagonTest_expect Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_JenksBinsTest.sql Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_JenksBinsTest_expect Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_MathTest.sql added CDB_Math_mode 10 years ago
CDB_MathTest_expect added CDB_Math_mode 10 years ago
CDB_QuantileBinsTest.sql Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_QuantileBinsTest_expect Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_QueryStatementsTest.sql Fix potential infinite loop in CDB_QueryStatements 10 years ago
CDB_QueryStatementsTest_expect Fix potential infinite loop in CDB_QueryStatements 10 years ago
CDB_QueryTablesTest.sql fixed security problem 10 years ago
CDB_QueryTablesTest_expect fixed security problem 10 years ago
CDB_QuotaTest.sql #69 now using pg_relation_size 10 years ago
CDB_QuotaTest_expect #revert-size_calc Stop this madness 10 years ago
CDB_TransformToWebmercatorTest.sql Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_TransformToWebmercatorTest_expect Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_UserTablesTest.sql Rename test to have "Test" suffix 10 years ago
CDB_UserTablesTest_expect Rename test to have "Test" suffix 10 years ago
CDB_XYZ_ExtentTest.sql Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_XYZ_ExtentTest_expect Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
Makefile Re-add the test/Makefile which was available while in cartodb/lib/sql 11 years ago
README Add instructions about adding a test 10 years ago

README

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