Commit graph

398 commits

Author SHA1 Message Date
Jiri Drbalek
c7de93ae76 unit test: fix offsetting test 2015-11-05 13:38:40 +00:00
Dane Springmeyer
da624b9ef4 update test-data to pull in 9f471a25e3 -refs #3160 2015-11-04 13:57:14 -08:00
artemp
a2975c0d23 unit test - check values stored as expected types in mapnik::value 2015-11-03 15:17:43 +00:00
bergwerkgis
4325fcb26d Windows tests: fix missing "M_PI" 2015-11-03 13:22:51 +00:00
artemp
2893ee4551 mapnik::value - add missing specialisations for mapnik::value_bool in comparison operators + update unit tests 2015-11-03 10:11:29 +00:00
artemp
96c2fc9076 image - update unit test re: cb31692f37 2015-11-02 10:27:11 +00:00
artemp
ab7040d96a and again :) 2015-10-30 10:01:33 +00:00
artemp
16355533c7 update test data 2015-10-30 09:57:29 +00:00
Dane Springmeyer
e505c94583 start postgis datasource tests 2015-10-29 09:48:49 -07:00
Dane Springmeyer
3c007cee9e better debug output when test fails 2015-10-29 09:48:09 -07:00
Dane Springmeyer
1106654d40 [unit] move some code from csv test to header 2015-10-29 09:23:54 -07:00
Dane Springmeyer
a9814f25f0 more test include gardening 2015-10-29 08:35:45 -07:00
Dane Springmeyer
5090b103e4 try to speed up compile of tests by cleaning up unused includes/cruft 2015-10-29 08:20:46 -07:00
Dane Springmeyer
aa6a06116b remove test, now covered by tests at https://github.com/mapbox/mapnik-vector-tile 2015-10-29 08:06:25 -07:00
Dane Springmeyer
1ac12a4430 add hint of how to compile geojson unit test without scons 2015-10-29 08:01:36 -07:00
artemp
e9a6182ff7 update test data 2015-10-28 09:26:32 +00:00
Dane Springmeyer
646bcbcbd9 don't depend on filesystem directly 2015-10-23 10:39:55 -07:00
Dane Springmeyer
cf36c78812 fix #3143 2015-10-23 10:39:34 -07:00
artemp
c10263764c geojson unit test - add invalid Point test 2015-10-23 14:17:41 +01:00
artemp
69829e028d add simple I/O error test when file does not exist 2015-10-23 14:11:17 +01:00
artemp
b0bcf86aaa clean up -> remove *.index 2015-10-23 13:17:18 +01:00
artemp
35a420927e follow naming convention 2015-10-23 13:12:19 +01:00
artemp
aaa5a73105 add disk index tests 2015-10-23 13:11:08 +01:00
artemp
34ffdaa3ef use anonimous namespace + default arg in create_disk_index 2015-10-23 13:09:21 +01:00
artemp
7a1ab599ba move csv_test to unit/datasource 2015-10-22 18:32:23 +01:00
Dane Springmeyer
5fe7367231 bypass expected error condition - refs #3125 2015-10-22 10:28:31 -07:00
Dane Springmeyer
73e9804384 geojson test coverage of 'base' parameter 2015-10-22 08:45:34 -07:00
Dane Springmeyer
a05746180d fix another cache-features -> cache_features 2015-10-22 08:19:39 -07:00
artemp
d2c02dae54 fix the rest of cache-features names 2015-10-22 16:13:08 +01:00
artemp
3b1b15f64b fix parameter name and improve coverage 2015-10-22 15:53:23 +01:00
artemp
e63405626b cleanup 2015-10-22 15:12:17 +01:00
artemp
dd95662648 CSV - add more tests 2015-10-22 15:11:18 +01:00
Dane Springmeyer
00154c2dfb add test coverage of geojson features_at_point 2015-10-21 12:37:30 -07:00
Dane Springmeyer
669bca884e more coverage of geojson get_geometry_type 2015-10-21 09:15:44 -07:00
artemp
9f439d1e2e unit test geojson - only expect CHECK_THROW when *.index is not present. Bounding box extractor parser is not strict in the sense that it doesn't require input to be fully consumed (i.e it can handle extra traling characters). 2015-10-21 11:33:24 +01:00
Dane Springmeyer
56d8516216 increase test coverage of get_geometry_type 2015-10-20 23:17:44 -07:00
Dane Springmeyer
14589dabd1 improve test coverage of geojson indexing 2015-10-20 22:56:03 -07:00
Dane Springmeyer
9df548670c manually inherit DYLD_LIBRARY_PATH - closes #3138 2015-10-20 17:22:52 -07:00
Dane Springmeyer
d1c5c69f07 Also dump posix return (aka WEXITSTATUS) 2015-10-20 15:18:12 -07:00
Dane Springmeyer
1df6fbb17e dump std::system return code if index is not found 2015-10-20 12:23:05 -07:00
Dane Springmeyer
2c72833629 Revert "travis - std::system() calls fails"
This reverts commit 5de3a3776d.
2015-10-20 12:19:06 -07:00
artemp
5de3a3776d travis - std::system() calls fails 2015-10-20 13:50:54 +01:00
artemp
4822477d40 don't rely on std::system return value (implementation defined) 2015-10-20 12:44:45 +01:00
artemp
aa537e6254 geojson unit test - further simplify and increase coverage 2015-10-20 12:04:32 +01:00
artemp
c4ec93a5f2 geojson unit test - run 'FeatureCollection' test using all permutations of disk_index and cache_features settings. 2015-10-20 11:46:39 +01:00
artemp
daaf2ee9d5 unit test (geojson) - de-dupe code 2015-10-20 11:22:42 +01:00
artemp
d9a66a765c unit/geojson - add basic test for *.index access mode 2015-10-19 16:58:32 +01:00
artemp
4b5bbe9446 unit test(geojson) - add tests reading all geometry primitives 2015-10-19 12:23:43 +01:00
artemp
4976a7c72a update test data 2015-10-16 17:42:39 +01:00
artemp
b15dba95cd unit test - add malformed JSON test + update test data 2015-10-14 11:41:14 +01:00
Dane Springmeyer
01d3c91de4 only run test if plugins exist 2015-10-07 14:41:07 -07:00
Dane Springmeyer
3b8bcacb91 latest visual test data with updated postgis/cairo fixtures 2015-10-06 19:10:14 -07:00
Dane Springmeyer
b7a54f3f09 warn if boost is too old to run tests 2015-10-06 15:39:42 -07:00
Dane Springmeyer
64f2628488 use latest visual test data after cairo change in 4b490fb - refs mapnik/test-data-visual#23 2015-10-06 15:39:42 -07:00
Dane Springmeyer
5915c4e7a5 fix test compile with older boost 2015-10-06 07:32:51 -07:00
Wilhelm Berg
4cfd692be2 Merge pull request #3109 from mapnik/visual-test-results
visual diff of visual test results
2015-10-06 14:03:22 +02:00
artemp
0bd7a980f3 unit test - add `query_first_n' test 2015-10-06 11:42:34 +01:00
Blake Thompson
c127620b6c Updated the way that is_valid and is_simple operate in mapnik and added lots of testing around them. 2015-10-05 15:10:24 -07:00
artemp
63c73b5057 add initial 'qoute' auto-detection + restore csv_test's 2015-10-05 16:56:33 +01:00
artemp
93a237850b fix spatial_index test after de9de659c3772fdf232a3c24f5c254a0a86046b9 2015-10-05 15:28:57 +01:00
bergwerkgis
5fd6f33c0f visual diff of visual test results 2015-10-05 14:23:52 +00:00
artemp
1bccca9ff8 Merge remote-tracking branch 'origin/master'
Conflicts:
	plugins/input/csv/csv_datasource.cpp
2015-10-02 12:27:28 +01:00
artemp
1d320b7133 make quote single char 2015-10-02 12:20:54 +01:00
Dane Springmeyer
2f9c9bd4b1 update test data - closes #3102 2015-10-01 15:46:07 -07:00
Dane Springmeyer
a8019f9fa2 log csv filepath when test fails [skip ci] 2015-10-01 13:35:23 -07:00
Dane Springmeyer
be22a67b60 fix -Wshadow warnings 2015-10-01 13:35:23 -07:00
artemp
4273e37278 Merge branch 'master' into csv-disk-index 2015-10-01 15:26:47 +01:00
Dane Springmeyer
0c23eaa4ba fix variable shadowing in image_filter unit test 2015-09-30 14:23:00 -07:00
artemp
54609fd8ac remove blank undelimited rows are still parsed section as current behavior is to fail and continue on individual row errors 2015-09-30 15:40:42 +01:00
artemp
81628d5b9c update test visual-data 2015-09-30 15:31:56 +01:00
bergwerkgis
8e7e7c64a7 update test-data-visual to force LF for SVGs on clone (Windows) 2015-09-30 13:07:52 +00:00
artemp
848098baeb spatial_index/quad_tree - remove `operator>>' requirement, instead value_type stored must have standard layout for correct (de)serialisation + update unit test 2015-09-29 15:44:57 +01:00
artemp
f549cae46a unit test - add initial spatial_index tests 2015-09-29 12:27:56 +01:00
artemp
08a30cbbd9 update test data 2015-09-28 14:29:54 +01:00
jakepruitt
a787d20e36 Add viewbox fallback logic for dimension parsing
SVG's now have fallback on viewbox. Still debugging the boost Qi parser
2015-09-25 12:05:57 -07:00
artemp
8c2f15c94a mapnik::value - always upcast to the higher definition numeric value (rhs or lhs) in operator== and operator!=
add unit test for comparing numeric mapnik::values
2015-09-24 17:38:16 +01:00
Jiri Drbalek
91db109b37 fix parsing colors in hexadecimal notation 2015-09-18 13:54:05 +00:00
Jiri Drbalek
ae8ac89ef8 visual tests: add command line parameters for scale-factor settings 2015-09-17 08:22:18 +00:00
Jiri Drbalek
fd19c754f3 visual tests: command line switches for renderers 2015-09-17 08:22:10 +00:00
artemp
e452a03c09 update test data 2015-09-16 18:30:37 +01:00
artemp
d54eca9dca image - fix copy/move implementation and update/improve tests 2015-09-16 14:28:55 +01:00
artemp
60c79d6614 image unit test - make test image 16x16 + add more checks 2015-09-16 11:47:36 +01:00
artemp
c1301fa142 image unit test - add copy (deep/shallow) + move tests 2015-09-16 11:37:46 +01:00
artemp
8c8ea74a63 update unit test 2015-09-16 10:15:21 +01:00
Artem Pavlenko
c4e0516ba6 Merge pull request #3061 from mapycz/colorize-alpha
colorize-alpha: add support for transparent colors
2015-09-15 16:11:28 +01:00
Dane Springmeyer
b2d08ea4ea re-enable zero allocation image interface - refs #3069 2015-09-14 16:45:58 -07:00
Jiri Drbalek
6f0b4d438c colorize-alpha: add support for transparent colors 2015-09-11 11:31:08 +00:00
artemp
a5bba97192 update data 2015-09-08 13:10:41 +02:00
Artem Pavlenko
282bdf178c Merge pull request #3058 from mapycz/colorize-alpha-fix-color-value-normalization
colorize-alpha: fix normalization of color components
2015-09-08 12:50:46 +02:00
Jiri Drbalek
79f4e3ac8f colorize-alpha: fix normalization of color components 2015-09-08 10:14:20 +00:00
Jiri Drbalek
72222efad7 scale-hsla image filter: unlimit parameters 2015-09-03 11:33:53 +00:00
artemp
1080d92a79 add missing geometry type check 2015-08-27 13:07:51 +02:00
artemp
10e6128035 test/data -> track master 2015-08-26 11:23:22 +02:00
Artem Pavlenko
26d100f3d9 Merge pull request #2996 from mapycz/improve-visual-test-11
visual tests: limit number of failures
2015-08-26 10:33:57 +02:00
Artem Pavlenko
85eebaaf57 Merge pull request #3038 from zerebubuth/fix/deadlock-in-recursive-datasource-registration
Fix deadlock in recursive datasource registration.
2015-08-25 15:07:00 +02:00
Matt Amos
3d7b84a598 Fix deadlock in recursive datasource registration.
The datasource cache was taking an exclusive lock on the simple
mutex used to protect the singleton's data pointer. This works
okay when everyone always calls it non-recursively, but when the
recursive flag is true then it will always deadlock when called
on any directory with subdirectories.

Additionally, many methods which accessed private data members of
the cache were not protected by any locks.

Since the call pattern of registering datasources is strictly
tree-shaped then it's a good candidate for a recursive mutex. This
has a slightly higher overhead than a simple mutex, so rather than
change the singleton's mutex to be recursive, I've added a new
instance mutex to the datasource cache.

Also, added a very basic test which reproduces the problem and
shows that it's fixed with this patch.
2015-08-23 20:25:35 +01:00
artemp
4babec802a CSV - implement spatial index access to features on disk + preserve support for inline data (work-in-progress) 2015-08-21 13:52:42 +02:00
artemp
d7e2f63f89 remove debug stderr + update data 2015-08-19 12:40:01 +02:00
artemp
710ec057e5 formatting 2015-08-19 12:04:45 +02:00
artemp
153c93d345 Merge branch 'master' into large_csv 2015-08-19 12:02:50 +02:00