]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Do not override existing .config from build.sh
authorJouni Malinen <j@w1.fi>
Sat, 9 Nov 2013 13:40:06 +0000 (15:40 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 9 Nov 2013 13:40:06 +0000 (15:40 +0200)
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>

tests/hwsim/build.sh

index 042af75325b8374dca1628bf55faf478b7f5708f..a65ff593e0f2f735c9dff788844f6d42140e5648 100755 (executable)
@@ -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