Add Adobe AOTS tests (#1395)
Annotated OpenType Specification or aots, https://github.com/adobe-type-tools/aots provides a set of tests for OpenType specification, this change add those tests in addition to modified version of their HarfBuzz test runner for generating harfbuzz project specific tests.
This commit is contained in:
parent
ae96c98dfa
commit
24887d1115
|
@ -508,6 +508,7 @@ test/api/Makefile
|
||||||
test/fuzzing/Makefile
|
test/fuzzing/Makefile
|
||||||
test/shaping/Makefile
|
test/shaping/Makefile
|
||||||
test/shaping/data/Makefile
|
test/shaping/data/Makefile
|
||||||
|
test/shaping/data/aots/Makefile
|
||||||
test/shaping/data/in-house/Makefile
|
test/shaping/data/in-house/Makefile
|
||||||
test/shaping/data/text-rendering-tests/Makefile
|
test/shaping/data/text-rendering-tests/Makefile
|
||||||
test/subset/Makefile
|
test/subset/Makefile
|
||||||
|
|
|
@ -5,7 +5,16 @@ if (HB_BUILD_UTILS)
|
||||||
add_test (NAME ${test}
|
add_test (NAME ${test}
|
||||||
COMMAND "${PYTHON_EXECUTABLE}" run-tests.py $<TARGET_FILE:hb-shape> "data/in-house/${test}"
|
COMMAND "${PYTHON_EXECUTABLE}" run-tests.py $<TARGET_FILE:hb-shape> "data/in-house/${test}"
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
set_property(TEST ${test} PROPERTY SKIP_RETURN_CODE 77)
|
set_property (TEST ${test} PROPERTY SKIP_RETURN_CODE 77)
|
||||||
|
endforeach ()
|
||||||
|
|
||||||
|
file (READ "${CMAKE_CURRENT_SOURCE_DIR}/data/aots/Makefile.sources" INHOUSE)
|
||||||
|
extract_make_variable (TESTS ${INHOUSE})
|
||||||
|
foreach (test IN ITEMS ${TESTS})
|
||||||
|
add_test (NAME ${test}
|
||||||
|
COMMAND "${PYTHON_EXECUTABLE}" run-tests.py $<TARGET_FILE:hb-shape> "data/aots/${test}"
|
||||||
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
set_property (TEST ${test} PROPERTY SKIP_RETURN_CODE 77)
|
||||||
endforeach ()
|
endforeach ()
|
||||||
|
|
||||||
file (READ "${CMAKE_CURRENT_SOURCE_DIR}/data/text-rendering-tests/Makefile.sources" TEXTRENDERING)
|
file (READ "${CMAKE_CURRENT_SOURCE_DIR}/data/text-rendering-tests/Makefile.sources" TEXTRENDERING)
|
||||||
|
@ -14,6 +23,6 @@ if (HB_BUILD_UTILS)
|
||||||
add_test (NAME ${test}
|
add_test (NAME ${test}
|
||||||
COMMAND "${PYTHON_EXECUTABLE}" run-tests.py $<TARGET_FILE:hb-shape> "data/text-rendering-tests/${test}"
|
COMMAND "${PYTHON_EXECUTABLE}" run-tests.py $<TARGET_FILE:hb-shape> "data/text-rendering-tests/${test}"
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
set_property(TEST ${test} PROPERTY SKIP_RETURN_CODE 77)
|
set_property (TEST ${test} PROPERTY SKIP_RETURN_CODE 77)
|
||||||
endforeach ()
|
endforeach ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
NULL =
|
NULL =
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
in-house \
|
in-house \
|
||||||
|
aots \
|
||||||
text-rendering-tests \
|
text-rendering-tests \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
Copyright 2000-2016 Adobe Systems Incorporated. All Rights Reserved.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use these files except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
|
@ -0,0 +1,37 @@
|
||||||
|
# Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
|
NULL =
|
||||||
|
|
||||||
|
# Convenience targets:
|
||||||
|
lib:
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/src lib
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
COPYING \
|
||||||
|
fonts \
|
||||||
|
$(TESTS) \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
TEST_EXTENSIONS = .tests
|
||||||
|
TESTS_LOG_COMPILER = $(srcdir)/../../run-tests.py $(top_builddir)/util/hb-shape$(EXEEXT)
|
||||||
|
|
||||||
|
init-aots:
|
||||||
|
git clone https://github.com/adobe-type-tools/aots $(srcdir)/aots
|
||||||
|
make -C$(srcdir)/aots
|
||||||
|
make -C$(srcdir)/aots/harfbuzz
|
||||||
|
touch $(srcdir)/init-aots
|
||||||
|
|
||||||
|
update-tests: init-aots lib
|
||||||
|
cp $(srcdir)/hb-aots-tester.cpp $(srcdir)/aots/harfbuzz/hb-aots-tester.cpp
|
||||||
|
$(CXX) -Wno-narrowing $(srcdir)/aots/harfbuzz/hb-aots-tester.cpp \
|
||||||
|
-I$(top_srcdir)/src/ -o $(srcdir)/aots/harfbuzz/aots \
|
||||||
|
-L$(top_builddir)/src/.libs -lharfbuzz
|
||||||
|
rm -rf $(srcdir)/tests/
|
||||||
|
mkdir $(srcdir)/tests/
|
||||||
|
export LD_LIBRARY_PATH=$(realpath $(top_builddir)/src/.libs); cd $(srcdir)/aots/harfbuzz; ./aots
|
||||||
|
|
||||||
|
.PHONY: update-tests
|
||||||
|
|
||||||
|
include Makefile.sources
|
||||||
|
|
||||||
|
-include $(top_srcdir)/git.mk
|
|
@ -0,0 +1,126 @@
|
||||||
|
TESTS = \
|
||||||
|
tests/classdef1_single.tests \
|
||||||
|
tests/classdef1.tests \
|
||||||
|
tests/classdef2_empty.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 \
|
||||||
|
tests/gpos_chaining1_next_glyph.tests \
|
||||||
|
tests/gpos_chaining1_simple.tests \
|
||||||
|
tests/gpos_chaining1_successive.tests \
|
||||||
|
tests/gpos_chaining2_boundary.tests \
|
||||||
|
tests/gpos_chaining2_lookupflag.tests \
|
||||||
|
tests/gpos_chaining2_multiple_subrules.tests \
|
||||||
|
tests/gpos_chaining2_next_glyph.tests \
|
||||||
|
tests/gpos_chaining2_simple.tests \
|
||||||
|
tests/gpos_chaining2_successive.tests \
|
||||||
|
tests/gpos_chaining3_boundary.tests \
|
||||||
|
tests/gpos_chaining3_lookupflag.tests \
|
||||||
|
tests/gpos_chaining3_next_glyph.tests \
|
||||||
|
tests/gpos_chaining3_simple.tests \
|
||||||
|
tests/gpos_chaining3_successive.tests \
|
||||||
|
tests/gpos_context1_boundary.tests \
|
||||||
|
tests/gpos_context1_expansion.tests \
|
||||||
|
tests/gpos_context1_lookupflag.tests \
|
||||||
|
tests/gpos_context1_multiple_subrules.tests \
|
||||||
|
tests/gpos_context1_next_glyph.tests \
|
||||||
|
tests/gpos_context1_simple.tests \
|
||||||
|
tests/gpos_context1_successive.tests \
|
||||||
|
tests/gpos_context2_boundary.tests \
|
||||||
|
tests/gpos_context2_classes.tests \
|
||||||
|
tests/gpos_context2_expansion.tests \
|
||||||
|
tests/gpos_context2_lookupflag.tests \
|
||||||
|
tests/gpos_context2_multiple_subrules.tests \
|
||||||
|
tests/gpos_context2_next_glyph.tests \
|
||||||
|
tests/gpos_context2_simple.tests \
|
||||||
|
tests/gpos_context2_successive.tests \
|
||||||
|
tests/gpos_context3_boundary.tests \
|
||||||
|
tests/gpos_context3_lookupflag.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/gsub_chaining1_boundary.tests \
|
||||||
|
tests/gsub_chaining1_lookupflag.tests \
|
||||||
|
tests/gsub_chaining1_multiple_subrules.tests \
|
||||||
|
tests/gsub_chaining1_next_glyph.tests \
|
||||||
|
tests/gsub_chaining1_simple.tests \
|
||||||
|
tests/gsub_chaining1_successive.tests \
|
||||||
|
tests/gsub_chaining2_boundary.tests \
|
||||||
|
tests/gsub_chaining2_lookupflag.tests \
|
||||||
|
tests/gsub_chaining2_multiple_subrules.tests \
|
||||||
|
tests/gsub_chaining2_next_glyph.tests \
|
||||||
|
tests/gsub_chaining2_simple.tests \
|
||||||
|
tests/gsub_chaining2_successive.tests \
|
||||||
|
tests/gsub_chaining3_boundary.tests \
|
||||||
|
tests/gsub_chaining3_lookupflag.tests \
|
||||||
|
tests/gsub_chaining3_next_glyph.tests \
|
||||||
|
tests/gsub_chaining3_simple.tests \
|
||||||
|
tests/gsub_chaining3_successive.tests \
|
||||||
|
tests/gsub_context1_boundary.tests \
|
||||||
|
tests/gsub_context1_expansion.tests \
|
||||||
|
tests/gsub_context1_lookupflag.tests \
|
||||||
|
tests/gsub_context1_multiple_subrules.tests \
|
||||||
|
tests/gsub_context1_next_glyph.tests \
|
||||||
|
tests/gsub_context1_simple.tests \
|
||||||
|
tests/gsub_context1_successive.tests \
|
||||||
|
tests/gsub_context2_boundary.tests \
|
||||||
|
tests/gsub_context2_classes.tests \
|
||||||
|
tests/gsub_context2_expansion.tests \
|
||||||
|
tests/gsub_context2_lookupflag.tests \
|
||||||
|
tests/gsub_context2_multiple_subrules.tests \
|
||||||
|
tests/gsub_context2_next_glyph.tests \
|
||||||
|
tests/gsub_context2_simple.tests \
|
||||||
|
tests/gsub_context2_successive.tests \
|
||||||
|
tests/gsub_context3_boundary.tests \
|
||||||
|
tests/gsub_context3_lookupflag.tests \
|
||||||
|
tests/gsub_context3_next_glyph.tests \
|
||||||
|
tests/gsub_context3_simple.tests \
|
||||||
|
tests/gsub_context3_successive.tests \
|
||||||
|
tests/lookupflag_ignore_base.tests \
|
||||||
|
tests/lookupflag_ignore_combination.tests \
|
||||||
|
tests/lookupflag_ignore_ligatures.tests \
|
||||||
|
tests/lookupflag_ignore_marks.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)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue