diff options
author | Ebrahim Byagowi <ebrahim@gnu.org> | 2018-11-24 20:49:21 +0330 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-24 20:49:21 +0330 |
commit | 3cc14e78aeb1c70eb82891ab4513c0e7d0f59928 (patch) | |
tree | be3924195df68a20f64b5edd6bbcd362f12467fb /test | |
parent | 24887d1115ee41cfad70577eb243382f6c23ab6e (diff) |
[test] Enable more of aots tests (#1408)
The ones commented out in this change should've be passed :/
a closer look is needed.
Diffstat (limited to 'test')
-rw-r--r-- | test/shaping/data/aots/Makefile.sources | 76 | ||||
-rw-r--r-- | test/shaping/data/aots/hb-aots-tester.cpp | 1 | ||||
-rw-r--r-- | test/shaping/data/aots/tests/classdef1_empty.tests | 2 | ||||
-rw-r--r-- | test/shaping/data/aots/tests/gsub3_1_simple.tests | 2 | ||||
-rw-r--r-- | test/shaping/data/aots/tests/lookupflag_ignore_attach.tests | 10 |
5 files changed, 46 insertions, 45 deletions
diff --git a/test/shaping/data/aots/Makefile.sources b/test/shaping/data/aots/Makefile.sources index 8340bb6c..93396824 100644 --- a/test/shaping/data/aots/Makefile.sources +++ b/test/shaping/data/aots/Makefile.sources @@ -1,21 +1,12 @@ TESTS = \ + tests/classdef1_empty.tests \ + tests/classdef1_multiple.tests \ tests/classdef1_single.tests \ tests/classdef1.tests \ tests/classdef2_empty.tests \ + tests/classdef2_multiple.tests \ tests/classdef2_single.tests \ tests/classdef2.tests \ - tests/gpos1_1_lookupflag.tests \ - tests/gpos1_1_simple.tests \ - tests/gpos1_2_lookupflag.tests \ - tests/gpos1_2.tests \ - tests/gpos2_1_lookupflag.tests \ - tests/gpos2_1_next_glyph.tests \ - tests/gpos2_1_simple.tests \ - tests/gpos2_1.tests \ - tests/gpos2_2.tests \ - tests/gpos4_lookupflag.tests \ - tests/gpos7_1.tests \ - tests/gpos9.tests \ tests/gpos_chaining1_boundary.tests \ tests/gpos_chaining1_lookupflag.tests \ tests/gpos_chaining1_multiple_subrules.tests \ @@ -53,21 +44,24 @@ TESTS = \ tests/gpos_context3_next_glyph.tests \ tests/gpos_context3_simple.tests \ tests/gpos_context3_successive.tests \ - tests/gsub1_1_lookupflag.tests \ - tests/gsub1_1_modulo.tests \ - tests/gsub1_1_simple.tests \ - tests/gsub1_2_lookupflag.tests \ - tests/gsub1_2_simple.tests \ - tests/gsub2_1_lookupflag.tests \ - tests/gsub2_1_multiple_sequences.tests \ - tests/gsub2_1_simple.tests \ - tests/gsub3_1_lookupflag.tests \ - tests/gsub3_1_multiple.tests \ - tests/gsub4_1_lookupflag.tests \ - tests/gsub4_1_multiple_ligatures.tests \ - tests/gsub4_1_multiple_ligsets.tests \ - tests/gsub4_1_simple.tests \ - tests/gsub7.tests \ + tests/gpos1_1_lookupflag.tests \ + tests/gpos1_1_simple.tests \ + tests/gpos1_2_lookupflag.tests \ + tests/gpos1_2.tests \ + tests/gpos2_1_lookupflag.tests \ + tests/gpos2_1_next_glyph.tests \ + tests/gpos2_1_simple.tests \ + tests/gpos2_1.tests \ + tests/gpos2_2.tests \ + tests/gpos3_lookupflag.tests \ + tests/gpos3.tests \ + tests/gpos4_lookupflag.tests \ + tests/gpos4_multiple_anchors.tests \ + tests/gpos4_simple.tests \ + tests/gpos5.tests \ + tests/gpos6.tests \ + tests/gpos7_1.tests \ + tests/gpos9.tests \ tests/gsub_chaining1_boundary.tests \ tests/gsub_chaining1_lookupflag.tests \ tests/gsub_chaining1_multiple_subrules.tests \ @@ -105,6 +99,23 @@ TESTS = \ tests/gsub_context3_next_glyph.tests \ tests/gsub_context3_simple.tests \ tests/gsub_context3_successive.tests \ + tests/gsub1_1_lookupflag.tests \ + tests/gsub1_1_modulo.tests \ + tests/gsub1_1_simple.tests \ + tests/gsub1_2_lookupflag.tests \ + tests/gsub1_2_simple.tests \ + tests/gsub2_1_lookupflag.tests \ + tests/gsub2_1_multiple_sequences.tests \ + tests/gsub2_1_simple.tests \ + tests/gsub3_1_lookupflag.tests \ + tests/gsub3_1_multiple.tests \ + tests/gsub3_1_simple.tests \ + tests/gsub4_1_lookupflag.tests \ + tests/gsub4_1_multiple_ligatures.tests \ + tests/gsub4_1_multiple_ligsets.tests \ + tests/gsub4_1_simple.tests \ + tests/gsub7.tests \ + tests/lookupflag_ignore_attach.tests \ tests/lookupflag_ignore_base.tests \ tests/lookupflag_ignore_combination.tests \ tests/lookupflag_ignore_ligatures.tests \ @@ -112,15 +123,4 @@ TESTS = \ $(NULL) DISABLED_TESTS = \ - tests/classdef1_empty.tests \ - tests/classdef1_multiple.tests \ - tests/classdef2_multiple.tests \ - tests/gpos3_lookupflag.tests \ - tests/gpos3.tests \ - tests/gpos4_multiple_anchors.tests \ - tests/gpos4_simple.tests \ - tests/gpos5.tests \ - tests/gpos6.tests \ - tests/gsub3_1_simple.tests \ - tests/lookupflag_ignore_attach.tests \ $(NULL) diff --git a/test/shaping/data/aots/hb-aots-tester.cpp b/test/shaping/data/aots/hb-aots-tester.cpp index 81e30076..bd46dec3 100644 --- a/test/shaping/data/aots/hb-aots-tester.cpp +++ b/test/shaping/data/aots/hb-aots-tester.cpp @@ -153,6 +153,7 @@ bool gsub_test(const char *testName, char test_name[255]; sprintf (test_name, "../../tests/%.*s.tests", (int) (strrchr (testName, '_') - testName), testName); FILE *tests_file = fopen (test_name, "a+"); + if (!ok) fprintf (tests_file, "#"); fprintf (tests_file, "../fonts/%s:--features=\"", fontfileName + 9); for (unsigned int i = 0; i < gNbFeatures; i++) { diff --git a/test/shaping/data/aots/tests/classdef1_empty.tests b/test/shaping/data/aots/tests/classdef1_empty.tests index 71d87f1c..76aaecc4 100644 --- a/test/shaping/data/aots/tests/classdef1_empty.tests +++ b/test/shaping/data/aots/tests/classdef1_empty.tests @@ -1 +1 @@ -../fonts/classdef1_font2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0011,U+0012,U+0013,U+0014,U+0015:[17|23|24|25|21] +#../fonts/classdef1_font2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0011,U+0012,U+0013,U+0014,U+0015:[17|23|24|25|21] diff --git a/test/shaping/data/aots/tests/gsub3_1_simple.tests b/test/shaping/data/aots/tests/gsub3_1_simple.tests index 5e65ba05..b8a28d15 100644 --- a/test/shaping/data/aots/tests/gsub3_1_simple.tests +++ b/test/shaping/data/aots/tests/gsub3_1_simple.tests @@ -1 +1 @@ -../fonts/gsub3_1_simple_f1.otf:--features="-test[1],test[3],test[5]=2,test[7]=3,-test[9],test[11]" --no-clusters --no-glyph-names --no-positions:U+0011,U+0012,U+0011,U+0012,U+0011,U+0012,U+0011,U+0012,U+0011,U+0012,U+0011,U+0012,U+0011:[17|18|17|20|17|21|17|22|17|18|17|20|17] +#../fonts/gsub3_1_simple_f1.otf:--features="-test[1],test[3],test[5]=2,test[7]=3,-test[9],test[11]" --no-clusters --no-glyph-names --no-positions:U+0011,U+0012,U+0011,U+0012,U+0011,U+0012,U+0011,U+0012,U+0011,U+0012,U+0011,U+0012,U+0011:[17|18|17|20|17|21|17|22|17|18|17|20|17] diff --git a/test/shaping/data/aots/tests/lookupflag_ignore_attach.tests b/test/shaping/data/aots/tests/lookupflag_ignore_attach.tests index 6534fc09..55ae5385 100644 --- a/test/shaping/data/aots/tests/lookupflag_ignore_attach.tests +++ b/test/shaping/data/aots/tests/lookupflag_ignore_attach.tests @@ -1,5 +1,5 @@ -../fonts/lookupflag_ignore_attach_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+000A,U+000B,U+000D,U+001A,U+000A:[10|15|10] -../fonts/lookupflag_ignore_attach_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+000A,U+000B,U+0015,U+000D,U+0016,U+0017,U+001D,U+001A,U+000A:[10|15|21|22|23|29|10] -../fonts/lookupflag_ignore_attach_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+000A,U+000B,U+0015,U+000D,U+0016,U+001B,U+001A,U+000A:[10|11|21|13|22|27|26|10] -../fonts/lookupflag_ignore_attach_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+000A,U+000B,U+001B,U+000D,U+0016,U+0017,U+001A,U+000A:[10|11|27|13|22|23|26|10] -../fonts/lookupflag_ignore_attach_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+000A,U+000B,U+001B,U+000D,U+000E,U+0017,U+001A,U+000A:[10|11|27|13|14|23|26|10] +#../fonts/lookupflag_ignore_attach_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+000A,U+000B,U+000D,U+001A,U+000A:[10|15|10] +#../fonts/lookupflag_ignore_attach_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+000A,U+000B,U+0015,U+000D,U+0016,U+0017,U+001D,U+001A,U+000A:[10|15|21|22|23|29|10] +#../fonts/lookupflag_ignore_attach_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+000A,U+000B,U+0015,U+000D,U+0016,U+001B,U+001A,U+000A:[10|11|21|13|22|27|26|10] +#../fonts/lookupflag_ignore_attach_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+000A,U+000B,U+001B,U+000D,U+0016,U+0017,U+001A,U+000A:[10|11|27|13|22|23|26|10] +#../fonts/lookupflag_ignore_attach_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+000A,U+000B,U+001B,U+000D,U+000E,U+0017,U+001A,U+000A:[10|11|27|13|14|23|26|10] |