test


Log

Author Commit Date CI Message
Behdad Esfahbod f3792342 2015-08-08T18:02:18 [tests] Add test for fallback positioning with cluster_level > 0 For https://github.com/behdad/harfbuzz/pull/123 Currently fails. Fix coming.
Romain Naour 160f6355 2015-07-22T23:26:23 fix static linking with icu-uc When linking test-unicode statically it needs $(ICU_LIBS) which contains all required flags. Especially -lstdc++. Fixes: http://autobuild.buildroot.net/results/210/2107f9dfb39eeb6559fb4271c7af8b39aef521ca/ Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Behdad Esfahbod df6cb844 2015-07-26T19:40:55 Merge branch 'use'
Behdad Esfahbod 786ba458 2015-07-23T13:04:34 [test] Encode Kharoshti text Ouch!
Behdad Esfahbod b4231255 2015-07-23T13:01:55 [test] Add Batak and Buginese test texts
Behdad Esfahbod b8c159ff 2015-07-23T12:59:17 [test] Remove shaper-sea texts under shaper-use
Behdad Esfahbod 67ba7320 2015-07-23T12:58:21 [test] Remove New Tai Lue texts New Tai Lue changed encoding to visual, boring, model.
Behdad Esfahbod c81d957a 2015-07-23T12:50:48 [test] Add tests for improved 'vert' feature
Behdad Esfahbod 8a6a16db 2015-07-23T12:49:09 [test] Add recently added test Ouch.
Behdad Esfahbod 895fb31c 2015-07-23T12:14:03 [test] Support additional options to hb-shape in micro-test suite
Behdad Esfahbod 58206917 2015-07-22T18:44:59 Add test case for deleting default ignorables with positioning
Behdad Esfahbod 14b12f92 2015-07-20T11:57:44 [USE] Add Kharoshti test data from Unicode proposal
Behdad Esfahbod b3a2f6af 2015-06-18T17:15:33 [test] Add test for cluster merging Based on test from https://code.google.com/p/chromium/issues/detail?id=497578 Currently fails. Basically, if there's a default_ignorable at the start of text, and font has no space glyph, we remove the default_ignorable, and that makes the first char in text to correspond to no cluster. Fix coming.
Behdad Esfahbod 8f0a4d67 2015-04-23T14:32:33 [test] Ignor 'n' and 'i' in hb-unicode-encode Allows accepting uniXXXX format.
Behdad Esfahbod eb0bf3ae 2014-08-06T15:36:41 Relax inert checks Previously, when creating an object from inert inputs (eg: "hb_font_create(hb_face_get_empty())") we returned the inert empty object. This is not helpful as there are legitimate usecases to do that. We now never return the inert object unless allocation failed. Tests are revised to reflect.
Behdad Esfahbod 9868749a 2015-04-06T14:51:31 [test] Use /usr/bin/env python instead of /usr/bin/python Bug 76494 - #!/usr/bin/python in testsuite https://bugs.freedesktop.org/show_bug.cgi?id=76494
Ebrahim Byagowi 363ceec3 2015-03-30T03:27:14 Make hb_test_tools.py compatible with python 3 On ArchLinux, /usr/bin/python is linked to python 3 so HarfBuzz `make check` is broken there. This makes hb_test_tools.py compatible with python 3 while no breaking it on python 2.
Behdad Esfahbod 7d5e7613 2014-12-18T18:22:21 Fail blob creation if length overflows or is too large Fail if blob start plus length overflows; or if blob length is greater than 2GB. It takes a while for fonts to get to that size. In the mean time, it protects against bugs like this: http://www.icu-project.org/trac/ticket/11450 Also avoids some weird issues with 32bit vs 64bit systems as we accept length as unsigned int. As such, a length of -1 will cause overflow on 32bit machines, but happily accepted on a 64bit machine. Avoid that.
Behdad Esfahbod e6f80fa1 2014-12-10T12:05:24 [indic] Allow ZWJ/ZWNJ before SM In Oriya, a ZWJ/ZWNJ might be added before candrabindu to encourage or stop ligation of the candrabindu. This is clearly specified in the Unicode section on Oriya. Allow it there. Note that Uniscribe doesn't allow this. Micro tests added using Noto Sans Oriya draft. No changes in numbers. Currently at: BENGALI: 353725 out of 354188 tests passed. 463 failed (0.130722%) DEVANAGARI: 707307 out of 707394 tests passed. 87 failed (0.0122987%) GUJARATI: 366349 out of 366457 tests passed. 108 failed (0.0294714%) GURMUKHI: 60732 out of 60747 tests passed. 15 failed (0.0246926%) KANNADA: 951190 out of 951913 tests passed. 723 failed (0.0759523%) KHMER: 299070 out of 299124 tests passed. 54 failed (0.0180527%) MALAYALAM: 1048147 out of 1048334 tests passed. 187 failed (0.0178378%) ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%) SINHALA: 271662 out of 271847 tests passed. 185 failed (0.068053%) TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%) TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
Behdad Esfahbod a1f27ac3 2014-10-02T16:54:33 Update test expectation for previous commit
Behdad Esfahbod 715f27f8 2014-10-01T16:53:00 [test] Fixup test
Behdad Esfahbod c4308f89 2014-08-13T19:42:01 Minor
Behdad Esfahbod b5fbc3b8 2014-08-11T18:40:01 API: Do not clear buffer-flags in hb_buffer_clear_contents() After 763e5466c0a03a7c27020e1e2598e488612529a7, one doesn't need to set flags for different pieces of text. The flags now are something the client sets up once, depending on how it actually uses the buffer. As such, don't clear it in clear_contents(). Tests updated.
Behdad Esfahbod d5e61470 2014-08-05T14:19:01 [arabic] Fix fallback shaping regression Was broken in 615d00ea252739da57edbd980ff27e573. Fixes https://github.com/behdad/harfbuzz/pull/48 Micro-test added.
Behdad Esfahbod ac53443f 2014-07-31T18:51:37 [hangul] Don't apply 'calt' See comments. Micro-test added.
Behdad Esfahbod 8292f96b 2014-07-31T18:33:11 [test] Fix record-test.sh
Behdad Esfahbod 9e834e29 2014-07-26T20:34:01 [hebrew] Zero mark advance by GDEF late Seems to be what Uniscribe does. At this point I think it's work checking our default... Fixes Bug 76767 - Zeroing of advance of 2nd component of multiple substitution with SBL Hebrew https://bugs.freedesktop.org/show_bug.cgi?id=76767 Micro-test added.
Behdad Esfahbod 6f2d9ba5 2014-07-26T19:17:44 Add old-Myanmar shaper Looks like Unsicribe responds to the 'mymr' tag by zeroing marks GDEF_LATE instead of generic-shaper UNICODE_LATE. Implement that. Fixes Bug 81775 - Incorrect Rendering with harfbuzz-ng myanmar unicode https://bugs.freedesktop.org/show_bug.cgi?id=81775 Micro-test added based on Padauk.
Behdad Esfahbod fc0daafa 2014-07-23T16:48:51 [indic] Handle old-spec Malayalam reordering with final Halant See comment. Micro-tests added.
Behdad Esfahbod d218bdb2 2014-07-22T18:01:46 Fix test runner under Windows
Behdad Esfahbod 00a57eb4 2014-07-18T14:42:50 [test] Remove unused micro-font
Behdad Esfahbod ed29b15f 2014-07-18T14:37:49 [test] Add more Mongolian variation selector tests From https://code.google.com/p/chromium/issues/detail?id=393896
Behdad Esfahbod 615d00ea 2014-07-17T13:36:09 [arabic] Apply init/medi/isol/fini/... in separate stages Follows the order of the Arabic/Syriac specs. Also don't stop between rlig and calt in non-Arabic scripts. Micro-tests for Arabic and Mongolian added for the latter.
Behdad Esfahbod d21e9970 2014-07-17T15:27:46 [test] Make record_test understand cmdline args to hb-shape
Behdad Esfahbod 164c13d7 2014-07-17T14:16:38 Another try to fix Mongolian free variation selectors This reverts bf029281 and fixes it properly. That commit was not enough as it was only inheriting the shaping_action for prev_action, but not curr_action. Micro-test added. https://code.google.com/p/chromium/issues/detail?id=393896
Behdad Esfahbod 976c8f45 2014-07-16T15:34:20 New API: hb_buffer_[sg]et_replacement_codepoint() With this change, we now by default replace broken UTF-8/16/32 bits with U+FFFD. This can be changed by calling new API on the buffer. Previously the replacement value used to be (hb_codepoint_t)-1. Note that hb_buffer_clear_contents() does NOT reset the replacement character. See discussion here: https://github.com/behdad/harfbuzz/commit/6f13b6d62daae4989e3cc2fe4b168e5c59650964 New API: hb_buffer_set_replacement_codepoint() hb_buffer_get_replacement_codepoint()
Behdad Esfahbod e634fed4 2014-07-16T14:17:26 [buffer] Validate UTF-32 input Same as what we do for UTF-8 and UTF-16.
Behdad Esfahbod 844f1a48 2014-07-16T13:32:51 [tests] Add record-test.sh
Behdad Esfahbod 3b861421 2014-07-16T13:22:05 Fix Mongolian Variation Selectors for fonts without GDEF Originally we fixed those in 79d1007a501fd63c0ba4d51038c513e6b8b94740. However, fonts like MongolianWhite don't have GDEF, but have IgnoreMarks in their LigatureSubstitute init/etc features. We were synthesizing a GDEF class of mark for Mongolian Variation Selectors and as such the ligature lookups where not matching. Uniscribe doesn't do that. I tried with more sophisticated fixes, like, if there is no GDEF and a lookup-flag mismatch happens, instead of rejecting a match, try skipping that glyph. That surely produces some interesting behavior, but since we don't want to support fonts missing GDEF more than we have to, I went for this simpler fix which is to always mark default-ignorables as base when synthesizing GDEF. Micro-test added. Fixes rest of https://bugs.freedesktop.org/show_bug.cgi?id=65258
Behdad Esfahbod af2490c0 2014-07-11T16:10:58 Only accept well-formed UTF-8 sequences Enable tests that were disabled before, and adjust one test, and add more tests.
Behdad Esfahbod 24b2ba9d 2014-07-10T19:31:16 [test-buffer] Add test for lonely low-surrogate Currenty fails. Ouch!
Behdad Esfahbod 6334495a 2014-07-10T19:22:07 Use zh-Hans / zh-Hant when converting OT language tag to hb_language_t
Behdad Esfahbod f381e320 2014-07-10T19:20:35 Fix lang matching logic Previous code was broken logically, but harmless.
Behdad Esfahbod ee5350d6 2014-07-10T19:06:45 Accept BCP 47 zh-Hans / zh-Hant language tags
Behdad Esfahbod 6bd5646f 2014-07-09T17:07:06 [tests] Remove bash'ish Apparently on travis-ci, bash is linked to dash, which doesn't understand "let". Failing tests were not being noticed. See eg: https://travis-ci.org/behdad/harfbuzz/jobs/29544211 Don't rely on bash.
Behdad Esfahbod 2b051c60 2014-06-20T14:09:57 Rename HB_VERSION_CHECK and hb_version_check to "atleast" HB_VERSION_CHECK's comparison was originally written wrongly by mistake. When API tests were written, they were also written wrongly to pass given the wrong implementation... Sigh. Given the purpose of this API, there's no point in fixing it without renaming it. As such, rename. API changes: HB_VERSION_CHECK -> HB_VERSION_ATLEAST hb_version_check -> hb_version_atleast
Behdad Esfahbod 1d634cbb 2014-06-06T17:55:02 Fix base-position when 'pref' is NOT formed If pre-base reordering Ra is NOT formed (or formed and then broken up), we should consider that Ra as base. This is observable when there's a left matra or dotreph that positions before base. Now, it might be that we shouldn't do this if the Ra happend to form a below form. We can't quite deduce that right now... Micro test added. Also at: https://code.google.com/a/google.com/p/noto-alpha/issues/detail?id=186#c29
Behdad Esfahbod 0ff74b09 2014-06-05T21:55:23 Add missing test file. Oops
Behdad Esfahbod 832a6f99 2014-06-04T16:57:42 [indic] Don't reorder reph/pref if ligature was expanded Normally if you want to, say, conditionally prevent a 'pref', you would use blocking contextual matching. Some designers instead form the 'pref' form, then undo it in context. To detect that we now also remember glyphs that went through MultipleSubst. In the only place that this is used, Uniscribe seems to only care about the "last" transformation between Ligature and Multiple substitions. Ie. if you ligate, expand, and ligate again, it moves the pref, but if you ligate and expand it doesn't. That's why we clear the MULTIPLIED bit when setting LIGATED. Micro-test added. Test: U+0D2F,0D4D,0D30 with font from: [1] https://code.google.com/a/google.com/p/noto-alpha/issues/detail?id=186#c29
Behdad Esfahbod 7977ca17 2014-05-29T15:34:26 [indic] Allow decimal and Brahmi digits as placeholders Tests: U+0967,0951 U+0031,093F
Behdad Esfahbod e8b5d640 2014-05-29T15:18:27 [indic] Do NOT allow reph formation on placeholders Only allow it on DOTTED CIRCLE. No effect on test numbers. Test: U+0930,094D,00A0
Behdad Esfahbod 0a017ce1 2014-05-14T16:44:16 Add tests for Myanmar Asat+MedialYa and MedialYa+Asat sequences One of them currently produces dotted-circle. Fix and detailed message coming.
Behdad Esfahbod 659cd3c5 2014-04-28T12:43:42 [test] Add test case for Tibetan sign PADMA Currently fails.
Behdad Esfahbod ee703bc3 2014-04-28T12:43:18 Reshuffle test data
Behdad Esfahbod 897c7b80 2014-04-10T16:27:13 Add Khmer test for U+17DD
Behdad Esfahbod 2a473338 2014-03-10T15:04:46 Add Myanmar test case from OpenType Myanmar spec
Behdad Esfahbod 15898590 2014-03-10T14:57:55 Minor
Luis de Bethencourt 1eacde00 2014-02-06T23:20:47 check hb_set_is_emtpy in test-set.c
Behdad Esfahbod 2646aec1 2013-12-05T18:19:35 Drop required automake version back to 1.11.3 Work around broken automake-1.13 changes.
Behdad Esfahbod d913f98d 2013-12-04T19:59:48 Require automake 1.13 Fix tests build. https://bugs.freedesktop.org/show_bug.cgi?id=71353
Behdad Esfahbod 9af91ca8 2013-11-25T17:47:19 Add more Myanmar test cases All three are broken right now according to Roozbeh. https://bugs.freedesktop.org/show_bug.cgi?id=71947 https://bugs.freedesktop.org/show_bug.cgi?id=71948 https://bugs.freedesktop.org/show_bug.cgi?id=71949
Behdad Esfahbod b9d0077a 2013-10-28T20:44:03 Fix win32 testing
Behdad Esfahbod 2e990a3d 2013-10-28T20:23:07 Make "make distcheck" happy
Behdad Esfahbod c77d1ade 2013-10-27T23:52:26 Fix warnings
Behdad Esfahbod 5c558877 2013-10-16T11:14:15 [indic] Allow up to two syllable modifiers Bug 70509 - Candrabindu+Visarga doesn't work in Devanagari https://bugs.freedesktop.org/show_bug.cgi?id=70509 We categorize both bindus and visarga as syllable-modifiers. OT spec doesn't actually say what characters go in the syllable modifier category, and allows one. We just allow up to two now. Test case: U+0930,U+0941,U+0901,U+0903 Uniscribe currently doesn't support that and produces a dotted circle.
Behdad Esfahbod 65a929b1 2013-10-15T18:08:05 [indic] If Malayalam dot-reph formed a ligature, don't move it Rachana-0.6 implements dot-reph by ligation, so we shouldn't move it. Uniscribe doesn't either. Test case: U+0D4E,U+0D1A,U+0D4D,U+0D1A,U+0D4D
Behdad Esfahbod c46f4069 2013-10-15T16:24:21 [tests] Remove Myanmar micro-font and test
Behdad Esfahbod 30145272 2013-10-15T13:47:27 [indic] Don't apply presentation features across syllables More like Uniscribe... We still allow user-defined features to work across syllables, but not pres,blws,abs,psts,etc. This "regressed" Sinhala numbers by 11. These are cases were there's Consonant followed by Ra,Halant,ZWJ at the of text. The Ra,Halant,ZWJ ends up forming reph, which is wrong... But before we were also ligating that reph with the previous consonant. That's even more wrong. That's also what Uniscribe does. Current numbers: BENGALI: 353732 out of 354188 tests passed. 456 failed (0.128745%) DEVANAGARI: 707307 out of 707394 tests passed. 87 failed (0.0122987%) GUJARATI: 366349 out of 366457 tests passed. 108 failed (0.0294714%) GURMUKHI: 60732 out of 60747 tests passed. 15 failed (0.0246926%) KANNADA: 951030 out of 951913 tests passed. 883 failed (0.0927606%) KHMER: 299070 out of 299124 tests passed. 54 failed (0.0180527%) MALAYALAM: 1048140 out of 1048334 tests passed. 194 failed (0.0185056%) ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%) SINHALA: 271655 out of 271847 tests passed. 192 failed (0.070628%) TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%) TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
Behdad Esfahbod 3c7b3641 2013-10-15T11:21:01 [indic] Handle Avagraha It can come either at the end(ish!) of the syllable, or independently. When independent, it accepts a few bits and pieces.
Behdad Esfahbod 2c85a3df 2013-10-14T19:41:52 Fix issue with automake
Behdad Esfahbod 841e20d0 2013-10-14T18:47:51 Add test suite for shaping results The new test suite runs tests included under hb/test/shaping/tests/*.tests, which themselves reference font files stored by sha1sum under hb/test/shaping/fonts/sha1sum. The fonts are produced using a subsetter to only include glyphs needed to run the test. Four initial tests are added for (Chain)Context matching, of which three currently fail.
Behdad Esfahbod e2dab692 2013-10-14T16:44:44 Minor
Behdad Esfahbod 20cbc1f8 2013-09-06T15:29:22 Annotate hb-set a bit; add HB_SET_VALUE_INVALID
Behdad Esfahbod 4dc798de 2013-08-26T20:39:00 Add hb-deprecated.h, and rename a couple enum values Add deprecated alias for old name.
Behdad Esfahbod 54e6f6c5 2013-08-09T14:34:54 Clean up list of Unicode scripts Rename HB_SCRIPT_CANADIAN_ABORIGINAL to HB_SCRIPT_CANADIAN_SYLLABICS and a macro for the old name.
Behdad Esfahbod 7235f33f 2013-06-10T14:39:51 Fix misc warnings reported by cppcheck https://bugs.freedesktop.org/show_bug.cgi?id=65544
Behdad Esfahbod a4446b10 2013-06-03T18:39:14 Fix build for C89 compilers
Behdad Esfahbod 2966d360 2013-05-28T17:34:37 Fix test build
Behdad Esfahbod d9afa111 2013-05-28T15:27:40 Build hb-icu into libharfbuzz-icu.so
Behdad Esfahbod 7d395c2a 2013-05-28T15:25:06 Minor
Behdad Esfahbod dfbd115e 2013-05-14T15:30:17 [test] Add test for hb_set_get_min() bug Failing now. Bug 64476 - Typo in hb_set_t.get_min()
Behdad Esfahbod 0a2b2a50 2013-03-21T16:26:39 Remove gthread leftovers We don't use gthread anymore, remove leftovers.
Behdad Esfahbod cc50bf5b 2013-03-19T06:59:40 Remove Hangul filler characters from Default_Ignorable chars See discussion on mailing list.
Behdad Esfahbod a8cf7b43 2013-03-19T05:53:26 [Indic] Futher adjust ZWJ handling in Indic-like shapers After the Ngapi hackfest work, we were assuming that fonts won't use presentation features to choose specific forms (eg. conjuncts). As such, we were using auto-joiner behavior for such features. It proved to be troublesome as many fonts used presentation forms ('pres') for example to form conjuncts, which need to be disabled when a ZWJ is inserted. Two examples: U+0D2F,U+200D,U+0D4D,U+0D2F with kartika.ttf U+0995,U+09CD,U+200D,U+09B7 with vrinda.ttf What we do now is to never do magic to ZWJ during GSUB's main input match for Indic-style shapers. Note that backtrack/lookahead are still matched liberally, as is GPOS. This seems to be an acceptable compromise. As to the bug that initially started this work, that one needs to be fixed differently: Bug 58714 - Kannada u+0cb0 u+200d u+0ccd u+0c95 u+0cbe does not provide same results as Windows8 https://bugs.freedesktop.org/show_bug.cgi?id=58714 New numbers: BENGALI: 353689 out of 354188 tests passed. 499 failed (0.140886%) DEVANAGARI: 707305 out of 707394 tests passed. 89 failed (0.0125814%) GUJARATI: 366349 out of 366457 tests passed. 108 failed (0.0294714%) GURMUKHI: 60706 out of 60747 tests passed. 41 failed (0.067493%) KANNADA: 951030 out of 951913 tests passed. 883 failed (0.0927606%) KHMER: 299070 out of 299124 tests passed. 54 failed (0.0180527%) LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%) MALAYALAM: 1048102 out of 1048334 tests passed. 232 failed (0.0221304%) ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%) SINHALA: 271666 out of 271847 tests passed. 181 failed (0.0665816%) TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%) TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%) TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
Behdad Esfahbod ea11abfc 2013-03-06T20:21:11 [build] Port to newer automake recommended syntax
Behdad Esfahbod c39def9b 2013-03-06T20:20:45 Move valgrind suppressions to the correct directory
Behdad Esfahbod 6d69a2ce 2013-02-26T19:35:50 [tests] Add Malayalam tests frim cibu
Behdad Esfahbod 9e5ac7b8 2013-02-25T17:54:10 Fix blob test to match c3ba49b6fa1865e8318926eaa6c0f2063d1053bb
Behdad Esfahbod e0486fc1 2013-02-19T00:58:10 [tests] Add Myanmar torture tests from Martin Hosken
Behdad Esfahbod a3df9a7b 2013-02-19T00:50:46 Minor Moving files around
Behdad Esfahbod b1f44075 2013-02-17T12:12:37 [SEA] Fix order of pre-base reordering Ra and left matras The code was confused because it was expecting left matra to have POS_PRE_M, like we do in the Myanmar shaper, but that is not what we were doing in this shaper. Rewrite to rely on category only. Test case: U+AA06,U+AA34,U+AA2F
Behdad Esfahbod 05ac8781 2013-02-15T09:26:41 [tests] Add Syriac Alaph shaping test cases
Behdad Esfahbod 126f39cd 2013-02-13T08:29:21 Add more dot-reph tests
Behdad Esfahbod f22b7e77 2013-02-13T07:32:46 [Indic] Track base position when reordering things Ouch, how did things ever work without this?! The added test that has a dot-reph as well as a pre-base reordering Ra perfectly demonstrates the bug (tested with Nirmala font from Win8 for example). Testing suggests that Win8 shaper has the *exact* same bug / behavior that we used to have. Odd.
Behdad Esfahbod cc5f24cd 2013-02-12T18:17:12 [tests] Add tests for Devanagary Eyelash Ra Currently broken with Sanskrit 2003 font.
Behdad Esfahbod 64bb2ae8 2013-02-12T16:29:25 Didn't mean to push this out Ouch!
Behdad Esfahbod f9b66053 2013-02-12T16:13:56 [Myanmar] Use master Indic table for syllable data
Behdad Esfahbod f60793e8 2013-02-12T15:45:59 [tests] Add Cham sample
Behdad Esfahbod 3a83d33e 2013-02-12T12:14:10 Add South-East Asian shaper Handles Tai Tham, Cham, and New Tai Lue for now.
Behdad Esfahbod fb960212 2013-02-12T10:33:58 Minor test reshufflings