3 . ../test/test-lib-common.sh
7 if ! test -x ../notmuch
9 echo >&2 'You do not seem to have built notmuch yet.'
19 arg="mail/enron/bailey-s"
22 arg="mail/notmuch-archive"
28 if command -v pixz > /dev/null; then
34 printf "Unpacking corpus\n"
35 tar --checkpoint=.5000 --extract --strip-components=1 \
36 --directory ${TMP_DIRECTORY} \
37 --use-compress-program ${XZ} \
38 --file ../download/notmuch-email-corpus-${PERFTEST_VERSION}.tar.xz \
39 notmuch-email-corpus/"$arg"
45 printf "[v%4s] Wall(s)\tUsr(s)\tSys(s)\tRes(K)\tIn(512B)\tOut(512B)\n" \
51 if test "$verbose" != "t"; then exec 4>test.output 3>&4; fi
52 if ! eval >&3 "/usr/bin/time -f '%e\t%U\t%S\t%M\t%I\t%O' $2" ; then
53 test_failure=$(($test_failure + 1))
58 if [ "$test_failure" = "0" ]; then
66 cd -P "$test" || error "Cannot setup test environment"