]> git.pld-linux.org Git - packages/tcl.git/commitdiff
- make test for tcl
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 20 Oct 2007 21:39:13 +0000 (21:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    tcl.spec -> 1.121

tcl.spec

index ee4ea221681f79dc91ca7f4d8e2d1ea9f0cce1d5..885595779e4f6820553035e89a96a61230e3046f 100644 (file)
--- a/tcl.spec
+++ b/tcl.spec
@@ -1,3 +1,4 @@
+%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
@@ -129,6 +130,15 @@ sed -i -e "s/^CFLAGS_OPTIMIZE.*/CFLAGS_OPTIMIZE=%{rpmcflags} -D__NO_STRING_INLIN
 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}
This page took 0.125857 seconds and 4 git commands to generate.