From 792057539bf814cc00447a0a53978e0af3efe270 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 3 Dec 2008 10:52:59 +0000 Subject: [PATCH] [test] Only delete output images beneath output. We were using an overly-liberal find that also deleted copied output for use in CAIRO_REF_DIR if that directory was below test/. So only delete files below output/ (which should only be used by cairo-test). --- test/Makefile.am | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index fb4a9b87b..40a484386 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1251,14 +1251,13 @@ CLEANFILES += \ # most systems cannot handle all of our clean files together. # Then it became a fancy find using many GNU extensions, but then the ugly # reality of portability was raised and it became.... -clean-local: clean-caches +clean-local: rm -rf output - -${FIND} . -name '*.out.*' -print | ${XARGS} ${RM} -${FIND} . -name '*.log' -print | ${XARGS} ${RM} -${FIND} . -name '*.[is]' -print | ${XARGS} ${RM} clean-caches: - -${FIND} . -name '*.pass.*' -print | ${XARGS} ${RM} - -${FIND} . -name '*.fail.*' -print | ${XARGS} ${RM} + -${FIND} output -name '*.fail.*' -print | ${XARGS} ${RM} + -${FIND} output -name '*.pass.*' -print | ${XARGS} ${RM} # The following definitions both should work. #FAILED_TESTS = `grep -l '\' $(test_sources:.c=.log) 2>/dev/null | sed -e 's/[.]log$$//' | xargs echo`