From 3142b7827e1ef14fe0c0792ae58d30d4b083d6b0bc7acb08182c25906d61c0f2 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 1 Mar 2019 19:01:46 +0000 Subject: [PATCH] - Enable tests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nss?expand=0&rev=7 --- python-nss.changes | 5 +++++ python-nss.spec | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/python-nss.changes b/python-nss.changes index 20c497b..003fc96 100644 --- a/python-nss.changes +++ b/python-nss.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 1 20:01:07 CET 2019 - Matej Cepl + +- Enable tests. + ------------------------------------------------------------------- Wed May 2 12:05:56 UTC 2018 - tchvatal@suse.com diff --git a/python-nss.spec b/python-nss.spec index a197959..45196ac 100644 --- a/python-nss.spec +++ b/python-nss.spec @@ -1,7 +1,7 @@ # # spec file for package python-nss # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -29,6 +29,8 @@ BuildRequires: %{python_module docutils} BuildRequires: %{python_module setuptools} BuildRequires: mozilla-nspr-devel BuildRequires: mozilla-nss-devel +# Required for tests +BuildRequires: mozilla-nss-tools %python_subpackages %description @@ -47,6 +49,11 @@ projects. NSS is FIPS-140 certified. %install %python_install +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} +$python test/run_tests -i +} + %files %{python_files} %license LICENSE.mpl LICENSE.lgpl LICENSE.gpl %doc README doc/ChangeLog