aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2014-10-26 07:06:29 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-26 17:19:39 (GMT)
commit2593aadb3b117c768e4f247a72aa7f5b5d7f9966 (patch)
treee67a1bc0ceda82ad70bf529313fd7586d3123099 /tests
parent102c2bf46185d334a046682d30d40f783856ac3e (diff)
downloadhostap-2593aadb3b117c768e4f247a72aa7f5b5d7f9966.zip
hostap-2593aadb3b117c768e4f247a72aa7f5b5d7f9966.tar.gz
hostap-2593aadb3b117c768e4f247a72aa7f5b5d7f9966.tar.bz2
tests: Add an option to force copy config files
"./build.sh --force-config" can be used to force copying configuration files before building. This will overwrite any changes in .config files. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/hwsim/build.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/hwsim/build.sh b/tests/hwsim/build.sh
index 4feea7a..bacbf75 100755
--- a/tests/hwsim/build.sh
+++ b/tests/hwsim/build.sh
@@ -5,18 +5,23 @@ set -e
cd $(dirname $0)
use_lcov=0
+force_config=0
while [ "$1" != "" ]; do
case $1 in
-c | --codecov ) shift
echo "$0: use code coverage specified"
use_lcov=1
;;
+ -f | --force-config ) shift
+ force_config=1
+ echo "$0: force copy config specified"
+ ;;
* ) exit 1
esac
done
cd ../../wpa_supplicant
-if [ ! -e .config ]; then
+if [ ! -e .config -o $force_config -eq 1 ]; then
cp ../tests/hwsim/example-wpa_supplicant.config .config
else
echo "wpa_supplicant config file exists"
@@ -34,7 +39,7 @@ make clean
make -j8
cd ../hostapd
-if [ ! -e .config ]; then
+if [ ! -e .config -o $force_config -eq 1 ]; then
cp ../tests/hwsim/example-hostapd.config .config
else
echo "hostapd config file exists"