From d331319a385e53bf739e2d9c3a7a82b0656cde32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 13 Sep 2013 19:20:37 +0200 Subject: [PATCH] Check -m option in compat.sh --- tests/compat.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/compat.sh b/tests/compat.sh index ef6b0e0d3..ddb2cf960 100755 --- a/tests/compat.sh +++ b/tests/compat.sh @@ -103,6 +103,16 @@ fi for MODE in $MODES; do + +# avoid an avalanche of errors due to typos +case $MODE in + ssl3|tls1|tls1_1|tls1_2) + ;; + *) + echo "error: invalid mode: $MODE" >&2 + exit 1; +esac + echo "-----------" echo "Running for $MODE (Verify: $VERIFY)" echo "-----------"