You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/04/01 06:04:48 UTC

[incubator-nuttx] branch master updated: testbuild.sh: Add an option to show the list of configs

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 0371574  testbuild.sh: Add an option to show the list of configs
0371574 is described below

commit 03715743a3999729433351873f89af0b3a643919
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Apr 1 13:19:07 2020 +0900

    testbuild.sh: Add an option to show the list of configs
    
    This was useful for me when tweaking testlists.
---
 tools/README.txt   | 1 +
 tools/testbuild.sh | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/tools/README.txt b/tools/README.txt
index c5aa36e..3433783 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 <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
diff --git a/tools/testbuild.sh b/tools/testbuild.sh
index 82b210a..a5b0221 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 <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 ""
@@ -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