]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add usage() to build.sh
authorIlan Peer <ilan.peer@intel.com>
Sun, 26 Oct 2014 07:06:30 +0000 (03:06 -0400)
committerJouni Malinen <j@w1.fi>
Sun, 26 Oct 2014 17:21:04 +0000 (19:21 +0200)
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
tests/hwsim/build.sh

index bacbf751e0fc7eb40299dea106c624465e6986ad..89a031256e1568a65e0d8ba60ec3481e4b56a270 100755 (executable)
@@ -4,6 +4,12 @@ set -e
 
 cd $(dirname $0)
 
+usage()
+{
+       echo "$0 [-c | --codecov] [-f | --force-config]"
+       exit 1
+}
+
 use_lcov=0
 force_config=0
 while [ "$1" != "" ]; do
@@ -16,7 +22,7 @@ while [ "$1" != "" ]; do
                        force_config=1
                        echo "$0: force copy config specified"
                        ;;
-               * ) exit 1
+               * ) usage
        esac
 done