Restrict test summary to first-level subfolders (#1797)
authorAndres Noetzli <andres.noetzli@gmail.com>
Fri, 20 Apr 2018 12:53:32 +0000 (05:53 -0700)
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>
Fri, 20 Apr 2018 12:53:32 +0000 (07:53 -0500)
test/Makefile.am

index e87427dc6c87e8196058243b683eeb2b052b581b..372f42bb0edc025feaaddc54c62f5ade29480e39 100644 (file)
@@ -85,8 +85,12 @@ check-local:
                        fi; \
                fi; \
        done; \
-       for dir in `find regress -not -empty -type d`; do \
-               status_info=`grep -d skip ":test-result: " $$dir/*`; \
+       for dir in `find regress -maxdepth 2 -not -empty -type d | sort`; do \
+               if [[ "$$dir" =~ .*regress[0-4]$$ ]]; then \
+                       status_info=`grep -d skip ":test-result: " $$dir/*`; \
+               else \
+                       status_info=`grep -r ":test-result: " $$dir`; \
+               fi; \
                total=`echo "$$status_info" | grep ":test-result: " | wc -l`; \
                if [ $$total -ne 0 ]; then \
                        status="$${std}$$total TOTAL"; \