#! /bin/sh # # $Id: at_wrap.in,v 1.1 2004/11/22 13:06:26 asuraparaju Exp $ # # tests/at_wrap. Generated from at_wrap.in by configure. # Wrapper around programs to be tested by autotest. # Facilitates testing with valgrind and wine. case "host_alias:i386-unknown-gnu" in *-x-mingw32*) # Check for cross-compilation to mingw32 and run wine for the tests exe=$1.exe shift exec wine -- '/mnt/gmirror/ports/multimedia/dirac/work/dirac-0.7.0'/$exe ${1+"$@"} ;; *) # E.g. To test using valgrind ... # env AT_EXEC_OPTS='valgrind -q --tool=memcheck --leak-check=yes' make check exec $AT_EXEC_OPTS ${1+"$@"} ;; esac