From e9026725f7bddbe29a75fff00311f773e0078c34 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 14 Dec 2014 12:24:15 +0200 Subject: [PATCH] tests: Extra coverage for command line arguments The results for these are not currently verified, but this allows --codecov runs to get more coverage for the command line argument parsers. Signed-off-by: Jouni Malinen --- tests/hwsim/start.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh index 3c18ef391..c7b815d30 100755 --- a/tests/hwsim/start.sh +++ b/tests/hwsim/start.sh @@ -15,15 +15,35 @@ if [ -z "$LOGDIR" ] ; then else if [ -e $LOGDIR/alt-wpa_supplicant/wpa_supplicant/wpa_supplicant ]; then WPAS=$LOGDIR/alt-wpa_supplicant/wpa_supplicant/wpa_supplicant + # extra code coverage + $WPAS > /dev/null 2>&1 + $WPAS -efoo -Ifoo -mfoo -ofoo -Ofoo -pfoo -Pfoo -h > /dev/null 2>&1 + $WPAS -bfoo -B -Cfoo -q -W -N -L > /dev/null 2>&1 + $WPAS -T -v > /dev/null 2>&1 + $WPAS -u -z > /dev/null 2>&1 fi if [ -e $LOGDIR/alt-hostapd/hostapd/hostapd ]; then HAPD=$LOGDIR/alt-hostapd/hostapd/hostapd + # extra code coverage + $HAPD > /dev/null 2>&1 + $HAPD -v > /dev/null 2>&1 + $HAPD -B -efoo -Pfoo -T -bfoo -h > /dev/null 2>&1 + $HAPD -ufoo > /dev/null 2>&1 + $HAPD -u00:11:22:33:44:55 > /dev/null 2>&1 + $HAPD -gfoo > /dev/null 2>&1 + $HAPD -Gfoo-not-exists > /dev/null 2>&1 + $HAPD -z > /dev/null 2>&1 fi if [ -e $LOGDIR/alt-hostapd-as/hostapd/hostapd ]; then HAPD_AS=$LOGDIR/alt-hostapd-as/hostapd/hostapd fi if [ -e $LOGDIR/alt-hlr_auc_gw/hostapd/hlr_auc_gw ]; then HLR_AUC_GW=$LOGDIR/alt-hlr_auc_gw/hostapd/hlr_auc_gw + # extra code coverage + $HLR_AUC_GW > /dev/null 2>&1 + $HLR_AUC_GW -Dfoo -i7 -sfoo -h > /dev/null 2>&1 + $HLR_AUC_GW -i100 > /dev/null 2>&1 + $HLR_AUC_GW -z > /dev/null 2>&1 fi fi