From 2bfcc74b5af5343fac0c81c454e56d0c96efe60a Mon Sep 17 00:00:00 2001 From: "Brock A. Martin" Date: Sat, 23 Jul 2016 15:01:34 -0500 Subject: [PATCH] Adding test script --- test.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 test.sh diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..d85c9a1 --- /dev/null +++ b/test.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +if [ $# -eq 0 ]; then + echo "usage: $(basename ${0}) " + exit 1 +fi + +set -x + +asc_key="$1" + +./asc2qr.sh "${asc_key}" + +./qr2asc.sh QR*.png + +diff "${asc_key}" "./mykey.asc" +if [ $? -eq 0 ]; then + echo "Diff Test: PASS" +else + echo "Diff Test: FAIL" +fi + +rm ./QR*.png +rm ./mykey.asc