yamerl/testsuite/dialyzer.in
Jean-Sébastien Pédron 78671683ea Import last cleanups from "bones"
Mostly:
    o  updates to autotools files
    o  removal of $Id$ and $Revision
    o  cleanups of Debian package
2011-06-29 17:15:01 +02:00

28 lines
605 B
Bash
Executable File

#!/bin/sh
if [ "@DIALYZER@" = '' ]; then
# Dialyzer not available; skip.
exit 77
fi
if [ "$SKIP_DIALYZER" ]; then
# The caller wants to bypass dialyzer.
exit 77
fi
log=dialyzer.log
@DIALYZER@ -n -r @top_builddir@/ebin | tee $log
ret=$?
if [ "`grep 'dialyzer: Could not read PLT file' $log`" != '' ]; then
# The PLT isn't built; consider the test as skipped.
exit 77
elif [ "`grep 'dialyzer: Old PLT file' $log`" != '' ]; then
# The PLT wasn't updated after Erlang update; consider the test
# as skipped.
exit 77
elif [ "`grep 'warnings were emitted' $log`" != '' ]; then
exit 1
fi
exit $ret