25 echo "error: unknown performance test option '$1'" >&2; exit 1 ;;
28 . ../test/test-lib-common.sh
32 if ! test -x ../notmuch
34 echo >&2 'You do not seem to have built notmuch yet.'
44 arg="mail/enron/bailey-s"
47 arg="mail/notmuch-archive"
53 if command -v pixz > /dev/null; then
59 printf "Unpacking corpus\n"
60 tar --checkpoint=.5000 --extract --strip-components=1 \
61 --directory ${TMP_DIRECTORY} \
62 --use-compress-program ${XZ} \
63 --file ../download/notmuch-email-corpus-${PERFTEST_VERSION}.tar.xz \
64 notmuch-email-corpus/"$arg"
70 printf "[v%4s %6s] Wall(s)\tUsr(s)\tSys(s)\tRes(K)\tIn/Out(512B)\n" \
71 ${PERFTEST_VERSION} ${corpus_size}
76 if test "$verbose" != "t"; then exec 4>test.output 3>&4; fi
77 if ! eval >&3 "/usr/bin/time -f '%e\t%U\t%S\t%M\t%I/%O' $2" ; then
78 test_failure=$(($test_failure + 1))
85 if [ "$test_failure" = "0" ]; then
93 cd -P "$test" || error "Cannot setup test environment"