From fbcdb663f9bc7e52a3dbe2d50528f6732b9bc114 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 22 Jul 2015 13:20:35 -0600 Subject: [PATCH] tools/testbuild.sh: Skip lines in test list that begin with # --- Documentation | 2 +- tools/testbuild.sh | 29 +++++++++++++++++------------ 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/Documentation b/Documentation index 43c6dd3026..7c8ccb29d2 160000 --- a/Documentation +++ b/Documentation @@ -1 +1 @@ -Subproject commit 43c6dd3026b656983a4012c683a9be1e0dadf40c +Subproject commit 7c8ccb29d28c128d70fa052c5d71e507de583feb diff --git a/tools/testbuild.sh b/tools/testbuild.sh index 6f1a3b095a..a441196e81 100755 --- a/tools/testbuild.sh +++ b/tools/testbuild.sh @@ -216,27 +216,32 @@ testlist=`cat $testfile` #while read -r line || [[ -n $line ]]; do for line in $testlist; do echo "====================================================================================" - echo "Configuration/Tool Config: $line" + firstch=${line:0:1} + if [ "X$firstch" == "X#" ]; then + echo "Skipping: $line" + else + echo "Configuration/Tool: $line" - # Parse the next line + # Parse the next line - config=`echo $line | cut -d',' -f1` + config=`echo $line | cut -d',' -f1` - path=$nuttx/configs/$config - if [ ! -r "$path/defconfig" ]; then + path=$nuttx/configs/$config + if [ ! -r "$path/defconfig" ]; then echo "ERROR: no configuration found at $path" showusage - fi + fi - toolchain=`echo $line | cut -d',' -f2` - if [ -z "$toolchain" ]; then + toolchain=`echo $line | cut -d',' -f2` + if [ -z "$toolchain" ]; then echo "ERROR no tool configuration" showusage + fi + + # Perform the build test + + dotest fi - - # Perform the build test - - dotest cd $WD || { echo "ERROR: Failed to CD to $WD"; exit 1; } done # < $testfile