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
Javier Goizueta f0ff197c56
Merge branch 'master' into 219-overviews-tolerance
9 years ago
..
extension Fully qualify invalidations 9 years ago
organization Multiple users test 9 years ago
overviews Fix the tests for boolean columns and overview creation 9 years ago
perf Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_CartodbfyTableTest.sql Add idempotence test 9 years ago
CDB_CartodbfyTableTest_expect Fix error detection and fix tests 9 years ago
CDB_DateToNumberTest.sql Makes CDB_DateToNumber() tests more intuitive 2202 9 years ago
CDB_DateToNumberTest_expect Makes CDB_DateToNumber() tests more intuitive 2202 9 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_DistTypeTest.sql adding tests 9 years ago
CDB_DistTypeTest_expect adding tests 9 years ago
CDB_DistinctMeasureTest.sql fixed symlink path, other minor items 9 years ago
CDB_DistinctMeasureTest_expect update test output 9 years ago
CDB_EqualIntervalBinsTest.sql fixed test expectation value 9 years ago
CDB_EqualIntervalBinsTest_expect ugh bad filename 9 years ago
CDB_GreatCircle.sql Add optional parameter for max. great circle segment length 9 years ago
CDB_GreatCircle_expect Add optional parameter for max. great circle segment length 9 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_HelperTest.sql Drops CDB_Trim_Octets for CDB_Octet_Truncate 9 years ago
CDB_HelperTest_expect Drops CDB_Trim_Octets for CDB_Octet_Truncate 9 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_OverviewsTest.sql Merge branch 'master' into 219-overviews-tolerance 9 years ago
CDB_OverviewsTest_expect Merge branch 'master' into 219-overviews-tolerance 9 years ago
CDB_QuantileBinsTest.sql Import cartodb/lib/sql/test, add search_path tweaker 11 years ago
CDB_QuantileBinsTest_expect missed updating value 10 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 Clean up after tests 9 years ago
CDB_QueryTablesTest_expect Add constraint to QueryTablesTest 9 years ago
CDB_QuotaTest.sql Modify sampling of table quota trigger #126 9 years ago
CDB_QuotaTest_expect Modify sampling of table quota trigger #126 9 years ago
CDB_StatsTest.sql Do not use random() for the distribution to test CDB_Stats functions 9 years ago
CDB_StatsTest_expect Raise min message so we don't have to validate notices 9 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 updates tests 9 years ago
CDB_UserTablesTest_expect updates tests 9 years ago
CDB_XYZ_ExtentTest.sql Round extent outputs in test 9 years ago
CDB_XYZ_ExtentTest_expect Round extent outputs in test 9 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