tests: Use QUIET=1 option to make build.sh output much shorter
Report only fatal errors when building binaries for hwsim testing. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
010fa245bd
commit
185275228d
2 changed files with 27 additions and 9 deletions
|
@ -26,6 +26,7 @@ while [ "$1" != "" ]; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "Building wpa_supplicant"
|
||||||
cd ../../wpa_supplicant
|
cd ../../wpa_supplicant
|
||||||
if [ ! -e .config -o $force_config -eq 1 ]; then
|
if [ ! -e .config -o $force_config -eq 1 ]; then
|
||||||
cp ../tests/hwsim/example-wpa_supplicant.config .config
|
cp ../tests/hwsim/example-wpa_supplicant.config .config
|
||||||
|
@ -41,9 +42,10 @@ if [ $use_lcov -eq 1 ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make clean
|
make clean > /dev/null
|
||||||
make -j8
|
make QUIET=1 -j8
|
||||||
|
|
||||||
|
echo "Building hostapd"
|
||||||
cd ../hostapd
|
cd ../hostapd
|
||||||
if [ ! -e .config -o $force_config -eq 1 ]; then
|
if [ ! -e .config -o $force_config -eq 1 ]; then
|
||||||
cp ../tests/hwsim/example-hostapd.config .config
|
cp ../tests/hwsim/example-hostapd.config .config
|
||||||
|
@ -59,12 +61,16 @@ if [ $use_lcov -eq 1 ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make clean
|
make clean > /dev/null
|
||||||
make -j8 hostapd hostapd_cli hlr_auc_gw
|
make QUIET=1 -j8 hostapd hostapd_cli hlr_auc_gw
|
||||||
|
|
||||||
|
echo "Building wlantest"
|
||||||
cd ../wlantest
|
cd ../wlantest
|
||||||
make clean
|
make clean > /dev/null
|
||||||
make -j8
|
make QUIET=1 -j8 > /dev/null
|
||||||
|
|
||||||
|
echo "Building TNC testing tools"
|
||||||
cd ../tests/hwsim/tnc
|
cd ../tests/hwsim/tnc
|
||||||
make clean
|
make clean > /dev/null
|
||||||
make -j8
|
make QUIET=1 -j8
|
||||||
cd ..
|
cd ..
|
||||||
|
|
|
@ -4,8 +4,20 @@ CFLAGS += -I$(abspath ../../../src/utils)
|
||||||
ALL=libhostap_imc.so libhostap_imv.so libhostap2_imc.so libhostap2_imv.so
|
ALL=libhostap_imc.so libhostap_imv.so libhostap2_imc.so libhostap2_imv.so
|
||||||
all: $(ALL)
|
all: $(ALL)
|
||||||
|
|
||||||
|
Q=@
|
||||||
|
E=echo
|
||||||
|
ifeq ($(V), 1)
|
||||||
|
Q=
|
||||||
|
E=true
|
||||||
|
endif
|
||||||
|
ifeq ($(QUIET), 1)
|
||||||
|
Q=@
|
||||||
|
E=true
|
||||||
|
endif
|
||||||
|
|
||||||
lib%.so: %.c
|
lib%.so: %.c
|
||||||
$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $<
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $<
|
||||||
|
@$(E) " CC " $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(ALL)
|
rm -f $(ALL)
|
||||||
|
|
Loading…
Reference in a new issue