view run-test.sh @ 12611:16a541057e88

lib-storage: Moved setting "wanted fields/headers" fields for sort program from imap-specific code. Also separate between fields that are actually wanted to be fetched from the fields that sorting wants to temporarily use.
author Timo Sirainen <tss@iki.fi>
date Mon, 31 Jan 2011 02:13:06 +0200
parents 892d28020605
children 22e39b6bef32
line wrap: on
line source

#!/bin/sh

trap "rm -f test.out.$$" 0 1 2 3 15

if valgrind --version | grep '^valgrind-3.[012]'; then
  # RHEL 5.4 still has Valgrind v3.2
  valgrind -q --log-file-exactly=test.out.$$ $*
else
  # v3.3+
  valgrind -q --log-file=test.out.$$ $*
fi
if [ -s test.out.$$ ]; then
  cat test.out.$$
  exit 1
fi