From 76c39aa45c5b159ae69e56ef8072b899ffb31cdd607ce2ca8a7d73c4a897a9d0 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 14 Apr 2008 03:10:51 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tcl?expand=0&rev=6 --- tcl.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tcl.spec b/tcl.spec index d4c4b8b..2e33571 100644 --- a/tcl.spec +++ b/tcl.spec @@ -91,6 +91,20 @@ eval $MAKE # Some of the regressioin tests write to $HOME, so better redirect them mkdir home export HOME=$PWD/home +# Run the testsuite to gather some data for the profile-based +# optimisation and let rpmbuild fail on unexpected test failures. +cat > known-failures <&1 | tee testresults +grep FAILED testresults | grep -Fqvf known-failures && exit 1 +# If we don't do profile based optimisation, we are done at this point. +test -z "$PFLAGS" && exit 0 +# Rebuild and use the profiling results +make clean +PFLAGS="%cflags_profile_feedback" +eval $MAKE %install make -C unix install install-private-headers \