tools/testbuild.sh: Support regular expression in blacklist
and prepend 'uname -s' to config for filtering config by host Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
079737dd0c
commit
7901ad6959
@ -1040,7 +1040,10 @@ testbuild.sh
|
||||
configured board.
|
||||
|
||||
The prefix '-' can be used to skip a configuration:
|
||||
-stm32f429i-disco/nsh,CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIL
|
||||
-stm32f429i-disco/nsh
|
||||
|
||||
or skip a configuration on a specific host(e.g. Darwin):
|
||||
-Darwin,sim:rpserver
|
||||
|
||||
uncrustify.cfg
|
||||
--------------
|
||||
|
@ -47,6 +47,23 @@ unset JOPTION
|
||||
PRINTLISTONLY=0
|
||||
GITCLEAN=0
|
||||
|
||||
case $(uname -s) in
|
||||
Darwin*)
|
||||
HOST=Darwin
|
||||
;;
|
||||
CYGWIN*)
|
||||
HOST=Cygwin
|
||||
;;
|
||||
MINGW32*)
|
||||
HOST=MinGw
|
||||
;;
|
||||
*)
|
||||
|
||||
# Assume linux as a fallback
|
||||
HOST=Linux
|
||||
;;
|
||||
esac
|
||||
|
||||
function showusage {
|
||||
echo ""
|
||||
echo "USAGE: $progname [-l|m|c|g|n] [-d] [-e <extraflags>] [-x] [-j <ncpus>] [-a <appsdir>] [-t <topdir>] [-p] [-G] <testlist-file>"
|
||||
@ -258,10 +275,15 @@ function build {
|
||||
function dotest {
|
||||
echo "===================================================================================="
|
||||
config=`echo $1 | cut -d',' -f1`
|
||||
re="-${config/\//:}[[:space:]]"
|
||||
if [[ "${blacklist} " =~ $re ]]; then
|
||||
check=${HOST},${config/\//:}
|
||||
|
||||
for re in $blacklist; do
|
||||
if [[ "${check}" =~ ${re:1}$ ]]; then
|
||||
echo "Skipping: $1"
|
||||
else
|
||||
return
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Configuration/Tool: $1"
|
||||
if [ ${PRINTLISTONLY} -eq 1 ]; then
|
||||
return
|
||||
@ -302,7 +324,6 @@ function dotest {
|
||||
distclean
|
||||
configure
|
||||
build
|
||||
fi
|
||||
}
|
||||
|
||||
# Perform the build test for each entry in the test list file
|
||||
|
Loading…
x
Reference in New Issue
Block a user