@@ -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 exits"
@@ -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 exits"
Add an option to force copying configuration files before building. Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- tests/hwsim/build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)