tests: Fix --codecov cases to find correct wpa_cli/hostapd_cli
authorJouni Malinen <j@w1.fi>
Mon, 29 Dec 2014 13:47:08 +0000 (15:47 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 29 Dec 2014 13:49:04 +0000 (15:49 +0200)
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>
tests/hwsim/start.sh
tests/hwsim/vm/build-codecov.sh

index d0015fa..602e4b8 100755 (executable)
@@ -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
index 676a24d..e67ef2e 100755 (executable)
@@ -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"