compare_jobs.sh: Can now handle -compr <fmt> option for compare_test

Change-Id: Ifc537e67d45581301e07b6dde402d2bb392ef63b
diff --git a/compare_jobs.sh b/compare_jobs.sh
index 97176cd..4725510 100755
--- a/compare_jobs.sh
+++ b/compare_jobs.sh
@@ -3,11 +3,26 @@
 mydir="`dirname $0`"
 status=0
 
-[ x"$1" = x"-pass-thresh" ] && pass_thresh=$2 && shift 2
+while true
+do
+    case "x$1" in
+       "x-pass-thresh")
+           pass_thresh=$2
+           shift 2
+           ;;
+       "x-compr")
+           compr=$2
+           shift 2
+           ;;
+       *)
+           break
+           ;;
+    esac
+done
 
 if [ $# -lt 2 ]
 then
-    echo "Usage: $0 [-pass-thresh pass-ratio-threshold] ref_logs new_logs [target ...]"
+    echo "Usage: $0 [-pass-thresh pass-ratio-threshold] [-compr compression-scheme] ref_logs new_logs [target ...]"
     echo "  If no target name is provided, detect which targets have been built and compare their results"
     exit 1
 fi
@@ -148,6 +163,7 @@
 	printf "# Running on `hostname` in `pwd`\n" >> ${mylog}
 	${mydir}/compare_tests -target ${target} \
 		${pass_thresh:+-pass-thresh ${pass_thresh}} \
+		${compr:+-compr ${compr}} \
 	    ${ref} ${build} >> ${mylog}
 	ret=$?
     fi