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 38d32371c8
Adds test to validate CDB_TableMetadataTouch usage with OID
10 years ago
..
extension Adds test to validate CDB_TableMetadataTouch usage with OID 10 years ago
organization
perf
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
CDB_DigitSeparatorTest_expect
CDB_HeadsTailsBinsTest.sql
CDB_HeadsTailsBinsTest_expect
CDB_HexagonTest.sql
CDB_HexagonTest_expect
CDB_JenksBinsTest.sql
CDB_JenksBinsTest_expect
CDB_MathTest.sql
CDB_MathTest_expect
CDB_QuantileBinsTest.sql
CDB_QuantileBinsTest_expect
CDB_QueryStatementsTest.sql
CDB_QueryStatementsTest_expect
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
CDB_TransformToWebmercatorTest_expect
CDB_UserTablesTest.sql
CDB_UserTablesTest_expect
CDB_XYZ_ExtentTest.sql
CDB_XYZ_ExtentTest_expect
Makefile
README

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