SPECS (AC-branch): php.spec - make tests in %check (--define check...

glen glen at pld-linux.org
Mon Apr 2 10:32:39 CEST 2007


Author: glen                         Date: Mon Apr  2 08:32:39 2007 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- make tests in %check (--define check exit 0 to skip)

---- Files affected:
SPECS:
   php.spec (1.631.2.26 -> 1.631.2.27) 

---- Diffs:

================================================================
Index: SPECS/php.spec
diff -u SPECS/php.spec:1.631.2.26 SPECS/php.spec:1.631.2.27
--- SPECS/php.spec:1.631.2.26	Sun Mar 18 16:33:57 2007
+++ SPECS/php.spec	Mon Apr  2 10:32:34 2007
@@ -1820,6 +1820,22 @@
 cp -af php_config.h.cli main/php_config.h
 %{__make} sapi/cli/php -f Makefile.cli LDFLAGS=-lpthread
 
+%check
+# Run tests, using the CLI SAPI
+export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
+unset TZ LANG LC_ALL || :
+if ! %{__make} test; then
+	set +x
+	for f in $(find . -name '*.diff' -type f -print); do
+		echo "TEST FAILURE: $f --"
+		cat "$f"
+		echo "-- $f result ends."
+	done
+	set -x
+	exit 1
+fi
+unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{php_sysconfdir}/{apache,cgi}} \
@@ -2715,6 +2731,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.631.2.27  2007/04/02 08:32:34  glen
+- make tests in %check (--define check exit 0 to skip)
+
 Revision 1.631.2.26  2007/03/18 15:33:57  glen
 - rel 6 (curl)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php.spec?r1=1.631.2.26&r2=1.631.2.27&f=u



More information about the pld-cvs-commit mailing list