[tests] rename no_ft_funcs to NO_FT_FUNCS

This commit is contained in:
Ebrahim Byagowi 2020-07-04 15:02:19 +04:30
parent 6a2b0ba78a
commit 4db1b4f1a2
2 changed files with 2 additions and 4 deletions

View File

@ -6,9 +6,7 @@ subdir('data/text-rendering-tests') # text_rendering_tests
shaping_run_tests_py = find_program('run-tests.py')
env = environment()
if conf.get('HAVE_FREETYPE', 0) == 0
env.set('no_ft_funcs', '1')
endif
env.set('NO_FT_FUNCS', conf.get('HAVE_FREETYPE', 0) == 1 ? '0' : '1')
foreach file_name : in_house_tests
test_name = file_name.split('.')[0].underscorify()

View File

@ -15,7 +15,7 @@ if len (args) and args[0] == "--reference":
reference = True
args = args[1:]
no_ft_funcs = bool(int(os.getenv('no_ft_funcs', '0')))
no_ft_funcs = bool(int(os.getenv ('NO_FT_FUNCS', '0')))
if not args or args[0].find('hb-shape') == -1 or not os.path.exists (args[0]):
sys.exit ("""First argument does not seem to point to usable hb-shape.""")