Skip to content

Commit

Permalink
testbuild.sh: Add an option to show the list of configs
Browse files Browse the repository at this point in the history
This was useful for me when tweaking testlists.
  • Loading branch information
yamt authored and xiaoxiang781216 committed Apr 1, 2020
1 parent f26dda8 commit 0371574
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@ testbuild.sh
Ubuntu under Windows 10 (u), or Windows native (n). Default Linux
-a <appsdir> provides the relative path to the apps/ directory. Default ../apps
-t <topdir> provides the absolute path to top nuttx/ directory. Default $PWD/../nuttx
-p only print the list of configs without running any builds
-j <ncpus> passed on to make. Default: No -j make option
-d enables script debug output
-x exit on build failures
Expand Down
8 changes: 8 additions & 0 deletions tools/testbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ MAKE=make
unset testfile
unset HOPTION
unset JOPTION
PRINTLISTONLY=0

function showusage {
echo ""
Expand All @@ -57,6 +58,7 @@ function showusage {
echo " -j <ncpus> passed on to make. Default: No -j make option."
echo " -a <appsdir> provides the relative path to the apps/ directory. Default ../apps"
echo " -t <topdir> 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 " <testlist-file> selects the list of configurations to test. No default"
echo ""
Expand Down Expand Up @@ -92,6 +94,9 @@ while [ ! -z "$1" ]; do
shift
nuttx="$1"
;;
-p )
PRINTLISTONLY=1
;;
-h )
showusage
;;
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 0371574

Please sign in to comment.