# rpm-build, with -r
-####
-#### OS-specific setup.
-####
-ldd=ldd
-
####
#### Interpret command arguments.
####
fi
fi
- if $ldd "$mhbin/inc" | grep sasl >/dev/null; then
- config_sasl=y
- fi
-
- if $ldd "$mhbin/inc" | grep ssl >/dev/null; then
- config_tls=y
+ if test -x "$mhbin/mhparam"; then
+ if mhparam sasl >/dev/null; then
+ case `$mhbin/mhparam sasl` in
+ *sasl*) config_sasl=y ;;
+ esac
+
+ case `$mhbin/mhparam tls` in
+ *tls*) config_tls=y ;;
+ esac
+ else
+ echo "$0: -y not supported with currently installed nmh"
+ exit 1
+ fi
fi
fi
fi
[ $verbose -ge 1 ] && echo testing . . .
- checkoutput=`make $check 2>>"$logfile"`
+ checkoutput=`make $check AM_COLOR_TESTS=always 2>>"$logfile"`
status=$?
tests_summary=`echo "$checkoutput" | grep tests`
#### If multiple tests not run, that line will be caught by the
#### "grep tests" above.
test_not_run=`echo "$checkoutput" | grep 'test was not run'`
+ fails=`echo "$checkoutput" | grep FAIL`
if [ "$tests_summary" ]; then
echo '===================' >>"$logfile"
- echo "$tests_summary" >>"$logfile"
[ "$test_not_run" ] && echo "$test_not_run" >>"$logfile"
+ [ "$fails" ] && echo "$fails" >>"$logfile"
+ echo "$tests_summary" >>"$logfile"
echo '===================' >>"$logfile"
[ "$check" = distcheck ] && \
echo "$checkoutput" | tail -n 4 >>"$logfile"
fi
fi
-grep 'Error' "$logfile"
-grep 'warn' "$logfile"
-if [ $status -ne 0 ]; then
+grep Error "$logfile"
+grep warn "$logfile"
+
+if [ $status -eq 0 ]; then
+ [ $verbose -ge 1 ] && echo build completed successfully
+else
echo build failed!
echo build log is in "$logfile"
fi
-[ $status -eq 0 -a $verbose -ge 1 ] && echo build completed successfully
exit $status