[nspr] - The tests must pass for the build to succeed

Elio Maldonado emaldonado at fedoraproject.org
Mon Jul 18 17:19:24 UTC 2011


commit 00f5565a20142b5aec996863bb17f8795938768b
Author: Elio Maldonado <emaldona at redhat.com>
Date:   Mon Jul 18 10:18:00 2011 -0700

    - The tests must pass for the build to succeed

 nspr.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/nspr.spec b/nspr.spec
index c8d0718..9bf664b 100644
--- a/nspr.spec
+++ b/nspr.spec
@@ -1,7 +1,7 @@
 Summary:        Netscape Portable Runtime
 Name:           nspr
 Version:        4.8.8
-Release:        3%{?dist}
+Release:        4%{?dist}
 License:        MPLv1.1 or GPLv2+ or LGPLv2+
 URL:            http://www.mozilla.org/projects/nspr/
 Group:          System Environment/Libraries
@@ -69,6 +69,12 @@ make
 # Run test suite.
 perl ./mozilla/nsprpub/pr/tests/runtests.pl 2>&1 | tee output.log
 
+TEST_FAILURES=`grep -c FAILED ./output.log` || :
+if [ $TEST_FAILURES -ne 0 ]; then
+  echo "error: test suite returned failure(s)"
+  exit 1
+fi
+echo "test suite completed"
 
 %install
 
@@ -140,6 +146,9 @@ done
 %{_bindir}/nspr-config
 
 %changelog
+* Mon Jul 18 2011 Elio Maldonado <emaldona at redhat.com> - 4.8.8-4
+- The tests must pass for the build to succeed
+
 * Mon Jul 18 2011 Elio Maldonado <emaldona at redhat.com> - 4.8.8-3
 - Run the nspr test suite in the %%check section
 


More information about the scm-commits mailing list