Use diff(1) instead of cmp(1) to compare files

This commit is contained in:
Pierre Pronchery 2016-08-23 03:09:19 +02:00
parent febcb13fd3
commit f441e4243f

View File

@ -17,10 +17,9 @@
#variables #variables
DEVNULL="/dev/null"
PROGNAME="appbroker.sh" PROGNAME="appbroker.sh"
#executables #executables
CMP="cmp" DIFF="diff"
DEBUG="_debug" DEBUG="_debug"
MKTEMP="mktemp" MKTEMP="mktemp"
RM="rm -f" RM="rm -f"
@ -35,7 +34,7 @@ expected="${interface%.interface}.expected"
$OBJDIR../tools/AppBroker$EXEEXT -o "$tmpfile" "$interface" $OBJDIR../tools/AppBroker$EXEEXT -o "$tmpfile" "$interface"
ret=$? ret=$?
if [ $ret -eq 0 ]; then if [ $ret -eq 0 ]; then
$CMP -- "$tmpfile" "$expected" #> "$DEVNULL" $DIFF -- "$tmpfile" "$expected"
ret=$? ret=$?
fi fi
$RM -- "$tmpfile" $RM -- "$tmpfile"