summaryrefslogtreecommitdiffstats
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/test.sh b/test.sh
index 2c184c7..c4fbb5e 100755
--- a/test.sh
+++ b/test.sh
@@ -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}