Allow to define "notest: all" to completely exclude some testcases from the nightly...
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Mar 2010 13:32:05 +0000 (13:32 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Mar 2010 13:32:05 +0000 (13:32 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3246 38d2e660-2303-0410-9eaa-f027e97ec537

test/get_source_list.sh

index c17fe74aa627e8be054fa291eeed0222bbb7377b..cb244570635438ab6d48db1f7dec9f20cd5bd497 100755 (executable)
@@ -66,7 +66,10 @@ TRG_SRC=`find ${CPU_DIR}/$CPU_TARGET -name \.svn -prune -o -name *.${2} -print |
 SRC_ALL=${GEN_SRC}" "${TRG_SRC}
 
 # Find the files that contain the string
-# NOTEST <cpu target> and put it in a list
+# NOTEST <cpu target>
+# or
+# NOTEST all
+# and put them in a list
 
 NOTEST="notest:"
 for src in $SRC_ALL ;
@@ -74,7 +77,11 @@ do
        grep -P "$NOTEST\s*$CPU_TARGET" $src 2>&1 > /dev/null
        if [ $? -eq 0 ] ; then
                EXCLUDE_LIST="$EXCLUDE_LIST $src"
-       fi      
+       fi
+       grep -P "$NOTEST\s*all" $src 2>&1 > /dev/null
+       if [ $? -eq 0 ] ; then
+               EXCLUDE_LIST="$EXCLUDE_LIST $src"
+       fi
 done
 
 # Remove the exclude list files from the sources to be