Browse Source

tests: Fix --codecov cases to find correct wpa_cli/hostapd_cli

It was possible for the separate builds to not include
wpa_cli/hostapd_cli in the default location. Make sure hostapd_cli gets
built for --codecov cases and update both WPACLI and HAPDCLI paths to
match the alternative location.

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen 10 years ago
parent
commit
6532a84ed3
2 changed files with 4 additions and 2 deletions
  1. 2 0
      tests/hwsim/start.sh
  2. 2 2
      tests/hwsim/vm/build-codecov.sh

+ 2 - 0
tests/hwsim/start.sh

@@ -16,6 +16,7 @@ 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
+	WPACLI=$LOGDIR/alt-wpa_supplicant/wpa_supplicant/wpa_cli
 	# extra code coverage
 	$WPAS > /dev/null 2>&1
 	$WPAS -efoo -Ifoo -mfoo -ofoo -Ofoo -pfoo -Pfoo -h > /dev/null 2>&1
@@ -25,6 +26,7 @@ else
     fi
     if [ -e $LOGDIR/alt-hostapd/hostapd/hostapd ]; then
 	HAPD=$LOGDIR/alt-hostapd/hostapd/hostapd
+	HAPDCLI=$LOGDIR/alt-hostapd/hostapd/hostapd_cli
 	# extra code coverage
 	$HAPD > /dev/null 2>&1
 	$HAPD -v > /dev/null 2>&1

+ 2 - 2
tests/hwsim/vm/build-codecov.sh

@@ -39,11 +39,11 @@ make -j8 > /dev/null
 
 cd $TMPDIR/alt-hostapd/hostapd
 echo "Building hostapd"
-make -j8 hostapd > /dev/null
+make -j8 hostapd hostapd_cli > /dev/null
 
 cd $TMPDIR/alt-hostapd-as/hostapd
 echo "Building hostapd (AS)"
-make -j8 hostapd > /dev/null
+make -j8 hostapd hostapd_cli > /dev/null
 
 cd $TMPDIR/alt-hlr_auc_gw/hostapd
 echo "Building hlr_auc_gw"