t/aggregate-results: accomodate systems with small max argument list length
authorBrandon Casey <drafnel@gmail.com>
Wed, 2 Jun 2010 00:13:44 +0000 (19:13 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jun 2010 16:36:49 +0000 (09:36 -0700)
IRIX 6.5 has a default maximum argument list length of 20480.  The file
glob that is passed to aggregate-results currently exceeds this length, and
so the script cannot run successfully.  Work around this issue by passing
the file names in via the standard input rather than the argument list.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/Makefile
t/aggregate-results.sh

index 25c559bb49d04586c69242cd7ef03713f0939e9d..cd008a3c0fdf503d7775a649eb6abdba2397fabe 100644 (file)
@@ -35,7 +35,9 @@ aggregate-results-and-cleanup: $(T)
        $(MAKE) clean
 
 aggregate-results:
-       '$(SHELL_PATH_SQ)' ./aggregate-results.sh test-results/t*-*
+       for f in test-results/t*-*; do \
+               echo "$$f"; \
+       done | '$(SHELL_PATH_SQ)' ./aggregate-results.sh
 
 # we can test NO_OPTIMIZE_COMMITS independently of LC_ALL
 full-svn-test:
index d5bab75d7da49ebb53e368d67f6b867f5417a125..d206b7c4cfa4f7d61d151cebc35a0f296fbe4c6b 100755 (executable)
@@ -6,7 +6,7 @@ failed=0
 broken=0
 total=0
 
-for file
+while read file
 do
        while read type value
        do