diff --git a/tools/README.txt b/tools/README.txt index c5aa36e9c7..3433783143 100644 --- a/tools/README.txt +++ b/tools/README.txt @@ -1002,6 +1002,7 @@ testbuild.sh Ubuntu under Windows 10 (u), or Windows native (n). Default Linux -a provides the relative path to the apps/ directory. Default ../apps -t provides the absolute path to top nuttx/ directory. Default $PWD/../nuttx + -p only print the list of configs without running any builds -j passed on to make. Default: No -j make option -d enables script debug output -x exit on build failures diff --git a/tools/testbuild.sh b/tools/testbuild.sh index 82b210a89b..a5b0221db9 100755 --- a/tools/testbuild.sh +++ b/tools/testbuild.sh @@ -43,6 +43,7 @@ MAKE=make unset testfile unset HOPTION unset JOPTION +PRINTLISTONLY=0 function showusage { echo "" @@ -57,6 +58,7 @@ function showusage { echo " -j passed on to make. Default: No -j make option." echo " -a provides the relative path to the apps/ directory. Default ../apps" echo " -t provides the absolute path to top nuttx/ directory. Default $PWD/../nuttx" + echo " -p only print the list of configs without running any builds" echo " -h will show this help test and terminate" echo " selects the list of configurations to test. No default" echo "" @@ -92,6 +94,9 @@ while [ ! -z "$1" ]; do shift nuttx="$1" ;; + -p ) + PRINTLISTONLY=1 + ;; -h ) showusage ;; @@ -203,6 +208,9 @@ function dotest { echo "Skipping: $1" else echo "Configuration/Tool: $1" + if [ ${PRINTLISTONLY} -eq 1 ]; then + return + fi # Parse the next line