diff --git a/share/Makefile.testing b/share/Makefile.testing index 121f88a0074f636910f7bc073e5104b3108e41fc..189e20969a5399405e628a1939626d1da3fba663 100644 --- a/share/Makefile.testing +++ b/share/Makefile.testing @@ -180,9 +180,10 @@ endif .PHONY: tests tests:: run-tests - echo "Number of *.{err,res}.log files:" - find $(addprefix _build/default/,$(PTEST_DIRS)) -name \*.err.log -or -name \*.res.log \ - | $(GREP) -c "^" + @echo "Number of *.{err,res}.log files:" + @find $(addprefix _build/default/,$(PTEST_DIRS)) \ + -name \*.err.log -or -name \*.res.log \ + | wc -l ifneq ($(PTEST_USE_WP_CACHE),no) ifeq ($(FRAMAC_WP_CACHEDIR),) @@ -200,9 +201,10 @@ endif # PTEST_USE_WP_CACHE .PHONY: count-tests count-tests: - echo "Number of *.{err,res}.log files:" - find $(addprefix _build/default/,$(PTEST_DIRS)) -name \*.res.log -or -name \*.err.log \ - | $(GREP) -c "^" + @echo "Number of *.{err,res}.log files:" + @find $(addprefix _build/default/,$(PTEST_DIRS)) \ + -name \*.res.log -or -name \*.err.log \ + | wc -l ############################################################################### # Local Variables: