From 87fcbd47067476e18dddb2a70676da3b7b259c49 Mon Sep 17 00:00:00 2001 From: Elio Maldonado Date: Tue, 15 Feb 2011 20:20:54 -0800 Subject: [PATCH] - Run the test suites in the check section (#677809) --- nss.spec | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/nss.spec b/nss.spec index afcb629..753ee39 100644 --- a/nss.spec +++ b/nss.spec @@ -6,7 +6,7 @@ Summary: Network Security Services Name: nss Version: 3.12.9 -Release: 10%{?dist} +Release: 11%{?dist} License: MPLv1.1 or GPLv2+ or LGPLv2+ URL: http://www.mozilla.org/projects/security/pki/nss/ Group: System Environment/Libraries @@ -210,6 +210,21 @@ chmod 755 ./mozilla/dist/pkgconfig/nss-config %{__cat} %{SOURCE9} > ./mozilla/dist/pkgconfig/setup-nsssysinit.sh chmod 755 ./mozilla/dist/pkgconfig/setup-nsssysinit.sh +%check + +# Begin -- copied from the build section +FREEBL_NO_DEPEND=1 +export FREEBL_NO_DEPEND + +BUILD_OPT=1 +export BUILD_OPT + +%ifarch x86_64 ppc64 ia64 s390x sparc64 +USE_64=1 +export USE_64 +%endif +# End -- copied from the build section + # enable the following line to force a test failure # find ./mozilla -name \*.chk | xargs rm -f @@ -225,7 +240,7 @@ chmod 755 ./mozilla/dist/pkgconfig/setup-nsssysinit.sh # avoid weird quoting we'll require that no spaces are being used. SPACEISBAD=`find ./mozilla/security/nss/tests | grep -c ' '` ||: -if [ SPACEISBAD -ne 0 ]; then +if [ $SPACEISBAD -ne 0 ]; then echo "error: filenames containing space are not supported (xargs)" exit 1 fi @@ -499,6 +514,9 @@ rm -rf $RPM_BUILD_ROOT/%{_includedir}/nss3/nsslowhash.h %{_libdir}/libnssckfw.a %changelog +* Tue Feb 15 2011 Elio Maldonado - 3.12.9-11 +- Run the test suites in the check section (#677809) + * Thu Feb 10 2011 Elio Maldonado - 3.12.9-10 - Fix cms headers to not use c++ reserved words (#676036) - Reenabling Bug 499444 patches