Parcourir la source

tests: Do not override existing .config from build.sh

This allows the build.sh script to be used to rebuild binaries based on
existing configuration in addition to the initial case of preparing
suitable build configuration.

Signed-hostap: Jouni Malinen <j@w1.fi>
Jouni Malinen il y a 11 ans
Parent
commit
0c9057970b
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 6 2
      tests/hwsim/build.sh

+ 6 - 2
tests/hwsim/build.sh

@@ -5,11 +5,15 @@ set -e
 cd $(dirname $0)
 
 cd ../../wpa_supplicant
-cp ../tests/hwsim/example-wpa_supplicant.config .config
+if [ ! -e .config ]; then
+    cp ../tests/hwsim/example-wpa_supplicant.config .config
+fi
 make clean
 make -j8
 cd ../hostapd
-cp ../tests/hwsim/example-hostapd.config .config
+if [ ! -e .config ]; then
+    cp ../tests/hwsim/example-hostapd.config .config
+fi
 make clean
 make -j8 hostapd hlr_auc_gw
 cd ../wlantest