.. | ||
extension | ||
organization | ||
overviews | ||
perf | ||
CDB_AnalysisCheckTest_expect | ||
CDB_AnalysisCheckTest.sql | ||
CDB_CartodbfyTableTest_expect | ||
CDB_CartodbfyTableTest.sql | ||
CDB_DateToNumberTest_expect | ||
CDB_DateToNumberTest.sql | ||
CDB_DigitSeparatorTest_expect | ||
CDB_DigitSeparatorTest.sql | ||
CDB_DistinctMeasureTest_expect | ||
CDB_DistinctMeasureTest.sql | ||
CDB_DistTypeTest_expect | ||
CDB_DistTypeTest.sql | ||
CDB_EqualIntervalBinsTest_expect | ||
CDB_EqualIntervalBinsTest.sql | ||
CDB_EstimateRowCountTest_expect | ||
CDB_EstimateRowCountTest.sql | ||
CDB_GreatCircle_expect | ||
CDB_GreatCircle.sql | ||
CDB_HeadsTailsBinsTest_expect | ||
CDB_HeadsTailsBinsTest.sql | ||
CDB_HelperTest_expect | ||
CDB_HelperTest.sql | ||
CDB_HexagonTest_expect | ||
CDB_HexagonTest.sql | ||
CDB_JenksBinsTest_expect | ||
CDB_JenksBinsTest.sql | ||
CDB_MathTest_expect | ||
CDB_MathTest.sql | ||
CDB_OverviewsTest_expect | ||
CDB_OverviewsTest.sql | ||
CDB_QuantileBinsTest_expect | ||
CDB_QuantileBinsTest.sql | ||
CDB_QueryStatementsTest_expect | ||
CDB_QueryStatementsTest.sql | ||
CDB_QueryTablesTest_expect | ||
CDB_QueryTablesTest.sql | ||
CDB_QuotaTest_expect | ||
CDB_QuotaTest.sql | ||
CDB_StatsTest_expect | ||
CDB_StatsTest.sql | ||
CDB_TransformToWebmercatorTest_expect | ||
CDB_TransformToWebmercatorTest.sql | ||
CDB_UserTablesTest_expect | ||
CDB_UserTablesTest.sql | ||
CDB_XYZ_ExtentTest_expect | ||
CDB_XYZ_ExtentTest.sql | ||
Makefile | ||
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