tests: use cmp not md5sum for tx-consistency tests
OS X doesn't provide md5sum. https://github.com/kamalmostafa/minimodem/issues/24#issuecomment-213816836
This commit is contained in:
parent
17e17b784e
commit
d4ce82136d
|
@ -19,32 +19,22 @@ trap "rm -f $TMPF.*" 0
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
$MINIMODEM --tx --file $TMPF.1.wav $minimodem_tx_args < "$textfile"
|
$MINIMODEM --tx --file $TMPF.1.wav $minimodem_tx_args < "$textfile"
|
||||||
sum1=$(md5sum -b < $TMPF.1.wav)
|
|
||||||
echo "$sum1 $TMPF.1.wav"
|
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
$MINIMODEM --tx --file $TMPF.2.wav $minimodem_tx_args < "$textfile"
|
$MINIMODEM --tx --file $TMPF.2.wav $minimodem_tx_args < "$textfile"
|
||||||
sum2=$(md5sum -b < $TMPF.2.wav)
|
|
||||||
echo "$sum2 $TMPF.2.wav"
|
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
$MINIMODEM --tx --file $TMPF.3.wav $minimodem_tx_args < "$textfile"
|
$MINIMODEM --tx --file $TMPF.3.wav $minimodem_tx_args < "$textfile"
|
||||||
sum3=$(md5sum -b < $TMPF.3.wav)
|
|
||||||
echo "$sum3 $TMPF.3.wav"
|
|
||||||
|
|
||||||
[ "$sum1" == "$sum2" ] || {
|
cmp -s $TMPF.1.wav $TMPF.2.wav || {
|
||||||
echo -e "TX-NOT-CONSISTENT"
|
echo -e "TX-NOT-CONSISTENT"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
[ "$sum1" == "$sum3" ] || {
|
cmp -s $TMPF.1.wav $TMPF.3.wav || {
|
||||||
echo -e "TX-NOT-CONSISTENT"
|
echo -e "TX-NOT-CONSISTENT"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
stats="$sum1"
|
stats="three runs of '--tx $minimodem_tx_args' created identical output"
|
||||||
|
|
||||||
result="OK "
|
result="OK "
|
||||||
exitcode=0
|
exitcode=0
|
||||||
|
|
Loading…
Reference in New Issue