Author: arekm                        Date: Sat Oct 20 21:39:18 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- make test for tcl

---- Files affected:
SPECS:
   tcl.spec (1.120 -> 1.121) 

---- Diffs:

================================================================
Index: SPECS/tcl.spec
diff -u SPECS/tcl.spec:1.120 SPECS/tcl.spec:1.121
--- SPECS/tcl.spec:1.120        Thu Oct 18 08:27:00 2007
+++ SPECS/tcl.spec      Sat Oct 20 23:39:13 2007
@@ -1,4 +1,5 @@
 # $Revision$, $Date$
+%bcond_without tests
 Summary:       Tool Command Language embeddable scripting language, with 
shared libraries
 Summary(fr.UTF-8):     Tool Command Language, langage de script avec 
bibliothèques partagées
 Summary(pl.UTF-8):     Tool Command Language - język skryptowy z bibliotekami 
dynamicznymi
@@ -130,6 +131,15 @@
 sed -i -e "s#%{_builddir}/%{name}%{version}%{rel}/unix#%{_libdir}#; \
        s#%{_builddir}/%{name}%{version}%{rel}#%{_includedir}/tcl-private#" 
tclConfig.sh
 
+%if %{with tests}
+%{__make} test 2>&1 | tee make-test.log
+FAILED=$(grep 'Files with failing tests:' make-test.log | sed -e 's#Files with 
failing tests: ##g' | sort | xargs)
+if [ -n "$FAILED" -a "$FAILED" != "httpold.test" ]; then
+       echo "Files with failing tests: $FAILED"
+       exit 1
+fi
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_prefix},%{_mandir}/man1}
@@ -324,6 +334,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.121  2007/10/20 21:39:13  arekm
+- make test for tcl
+
 Revision 1.120  2007/10/18 06:27:00  arekm
 - up to 8.5 b1
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/tcl.spec?r1=1.120&r2=1.121&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to