PARALLEL=9 make test -> runs prove in parallel
would prefer to pass/reuse make's -j down to prove, but don't want to spend
the time on it.
makes tests run in ~30s instead of several minutes. can use a fair amount of
RAM so be wary with automated builders.
@@ -83,7 +83,11 @@ MOSTLYCLEANFILES = *.gcov *.gcno *.gcda *.tcov
test: memcached-debug sizes testapp
$(srcdir)/sizes
$(srcdir)/testapp
- prove $(srcdir)/t
+ @if test -n "${PARALLEL}"; then \
+ prove $(srcdir)/t -j ${PARALLEL}; \
+ else \
+ prove $(srcdir)/t; \
+ fi
@if test `basename $(PROFILER)` = "gcov"; then \
for file in memcached_debug-*.gc??; do \
mv -f $$file `echo $$file | sed 's/memcached_debug-//'`; \
