diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-07-04 06:33:44 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-07-04 06:33:44 +0200 |
commit | a583bb24fb23728c9c4ed6c6c573d526ab654c49 (patch) | |
tree | ecea1f2c3b5cf6eb2138cf2e4f0bb275456b320f /test.sh | |
parent | 6c027b4de25a529908be895e7ff19236f4002a57 (diff) | |
download | crypto-a583bb24fb23728c9c4ed6c6c573d526ab654c49.zip crypto-a583bb24fb23728c9c4ed6c6c573d526ab654c49.tar.gz |
test.sh: use cmp instead of diff
Diffstat (limited to 'test.sh')
-rwxr-xr-x | test.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -35,19 +35,19 @@ dist (){ ${BIN} -x ${ARGS2} ${ARGSS} ${KEY} > DEC & PID=$! sleep 2 - cat ${FILE} | ${BIN} ${ARGS1} ${ARGSD} ${KEY} || ( echo "error !!"; exit 1 ) + cat ${FILE} | ${BIN} ${ARGS1} ${ARGSD} ${KEY} || ( echo "error !!"; kill ${PID} exit 1 ) wait ${PID} } local -echo "running diff" -diff ${FILE} DEC || echo "ERROR" +echo "running cmp" +cmp ${FILE} DEC || echo "ERROR" echo "OK." rm DEC dist -echo "running diff" -diff ${FILE} DEC || echo "ERROR" +echo "running cmp" +cmp ${FILE} DEC || echo "ERROR" echo "OK." rm DEC ${FILE} |