Use diff(1) instead of cmp(1) to compare files
This commit is contained in:
parent
febcb13fd3
commit
f441e4243f
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user