2010-06-03 21:24:43 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
#X="-x"
|
|
|
|
#grind="checkleaks"
|
|
|
|
|
|
|
|
# if this is part of a distcheck action, then this script
|
|
|
|
# will be executed in a different directory
|
|
|
|
# than the one containing it; so capture the path to this script
|
|
|
|
# as the location of the source directory.
|
|
|
|
srcdir=`dirname $0`
|
2012-06-15 01:24:55 +08:00
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
# compute the build directory
|
|
|
|
# Do a hack to remove e.g. c: for CYGWIN
|
2012-06-15 01:24:55 +08:00
|
|
|
cd `pwd`
|
2010-06-03 21:24:43 +08:00
|
|
|
builddir=`pwd`/..
|
2012-06-07 05:57:29 +08:00
|
|
|
|
2012-06-15 01:24:55 +08:00
|
|
|
# Hack for CYGWIN
|
|
|
|
cd $srcdir
|
|
|
|
srcdir=`pwd`
|
2012-06-07 05:57:29 +08:00
|
|
|
if [ `uname | cut -d "_" -f 1` == "MINGW32" ]; then
|
|
|
|
srcdir=`pwd | sed 's/\/c\//c:\//g'`
|
2012-06-15 01:24:55 +08:00
|
|
|
builddir=`echo $builddir | sed 's/\/c\//c:\//g'`
|
2012-06-07 05:57:29 +08:00
|
|
|
fi
|
|
|
|
|
2012-06-15 01:24:55 +08:00
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
cd ${builddir}/ncdap_test
|
|
|
|
|
2012-06-07 05:57:29 +08:00
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
exec sh $X ${srcdir}/tst_ncdap.sh "$srcdir" "$builddir" "file3" $grind
|
|
|
|
|