summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-04-11 12:26:21 +0100
committerCarl Worth <cworth@cworth.org>2007-04-11 13:07:06 -0700
commitb745126a04c126acc695e8abb6372c1890b03f07 (patch)
treee82389fb66cb96f431fe15032446b9e0a2372717 /test
parent61b8e346135f8b61b22257541c97b9f262c17826 (diff)
Use find | xargs to overcome shell command line limit.
Once again we have hit the command line limit with the sheer volume of generated test output. So replace the glob with a find which has the additional advantage of only needing to walk the tree once to generate the file lists - this begins to be noticeable with such large directories.
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 74ead621e..d43f77402 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -523,14 +523,16 @@ CLEANFILES = \
$(EXTRA_LTLIBRARIES) \
$(EXTRA_PROGRAMS)
-# some systems cannot handle all of our clean files together
+# most systems cannot handle all of our clean files together
clean-local:
- -$(RM) *.ps
- -$(RM) *.pdf
- -$(RM) *.svg
- -$(RM) *-out.png
- -$(RM) *-diff.png
- -$(RM) *.log
+ -find . \
+ \( -name '*.ps' -print0 \) , \
+ \( -name '*.pdf' -print0 \) , \
+ \( -name '*.svg' -print0 \) , \
+ \( -name '*-out.png' -print0 \) , \
+ \( -name '*-diff.png' -print0 \) , \
+ \( -name '*.log' -print0 \) \
+ | xargs -0 rm -f
# Check tests under valgrind
# Saves log to valgrind-log