From 45aa7cf034103c97dc692d688958998cd43c0be2 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Fri, 8 May 2020 16:10:21 +0530 Subject: [PATCH] enable tests --- fonttools.spec | 14 +++++++++++++- tests/smoke/runtest.sh | 3 +++ tests/tests.yml | 26 ++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 tests/smoke/runtest.sh create mode 100644 tests/tests.yml diff --git a/fonttools.spec b/fonttools.spec index 3c8a1df..31ea7dd 100644 --- a/fonttools.spec +++ b/fonttools.spec @@ -7,7 +7,7 @@ OpenType, AFM and to an extent Type 1 and some Mac-specific formats. Name: fonttools Version: 4.9.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Tools to manipulate font files License: MIT URL: https://github.com/fonttools/fonttools/ @@ -26,6 +26,12 @@ Summary: Python 3 fonttools library %{?python_provide:%python_provide python3-%{name}} BuildRequires: python3-devel BuildRequires: python3-setuptools_scm +BuildRequires: python3-pytest +BuildRequires: python3-brotli +BuildRequires: python3-munkres +BuildRequires: python3-scipy +BuildRequires: python3-fs + BuildArch: noarch Requires: python3-brotli @@ -50,6 +56,9 @@ sed -i '1d' Lib/fontTools/mtiLib/__init__.py %install %{__python3} setup.py install --skip-build --root %{buildroot} +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m pytest --ignore Tests/misc/plistlib_test.py + %files %{_bindir}/pyftmerge %{_bindir}/pyftsubset @@ -64,6 +73,9 @@ sed -i '1d' Lib/fontTools/mtiLib/__init__.py %{python3_sitelib}/%{name}-%{version}-py3.?.egg-info %changelog +* Fri May 08 2020 Parag Nemade - 4.9.0-3 +- enable tests + * Thu May 07 2020 Parag Nemade - 4.9.0-2 - Fix source tarball diff --git a/tests/smoke/runtest.sh b/tests/smoke/runtest.sh new file mode 100644 index 0000000..c6ced7c --- /dev/null +++ b/tests/smoke/runtest.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd ../source +python3 -m pytest --ignore Tests/misc/plistlib_test.py diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..56f2b99 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,26 @@ +--- +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-source + +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-basic + tests: + - smoke + required_packages: + - python3-pytest + - python3-brotli + - python3-scipy + - python3-pluggy + - python3-packaging + - python3-attrs + - python3-pyparsing + - python3-gobject + - atk-devel + - pango-devel + - gtk3-devel