Update of /cvsroot/monetdb/geom
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12202/geom
Modified Files:
RunMtest.in
Log Message:
cleaned-up, simplified and "normalized" the RunMtest.in scripts
(Unix shell script version, only; Windows batch script version still to be
done...)
Index: RunMtest.in
===================================================================
RCS file: /cvsroot/monetdb/geom/RunMtest.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- RunMtest.in 23 Aug 2007 21:50:38 -0000 1.5
+++ RunMtest.in 8 Sep 2007 10:02:31 -0000 1.6
@@ -16,63 +16,72 @@
# Portions created by CWI are Copyright (C) 1997-2007 CWI.
# All Rights Reserved.
+pkg=monetdb-geom
builddir=`pwd`
# make sure srcdir contains absolute path name
srcdir=`cd '@srcdir@'; pwd`
uname=`uname`
-# default is MonetDB4
+# default back-end is MonetDB4
V=4
-conffile=MonetDB.conf
-
for arg
do
case "$arg" in
- -4)
- V=4
- conffile=MonetDB.conf;;
- -5)
- V=5
- conffile=monetdb5.conf;;
+ -4) V=4;;
+ -5) V=5;;
esac
done
# where compiled modules are to be found
-MOD_PATH="${builddir}/src/monetdb$V/.libs:${builddir}/src/monetdb$V:${srcdir}/src/monetdb$V:`monetdb$V-config
--modpath`:`monetdb-sql-config --modpath$V`"
+for d in src/monetdb$V
+do
+ MOD_PATH="${MOD_PATH}${builddir}/$d/.libs:${builddir}/$d:${srcdir}/$d:"
+done
+MOD_PATH="${MOD_PATH}`monetdb$V-config --modpath`"
+MOD_PATH="${MOD_PATH}:`monetdb-sql-config --modpath$V`"
+
+# make sure scripts are executable
+for x in "${builddir}/conf/${pkg}-config"
+do
+ if [ -s $x ] ; then
+ chmod +x $x
+ fi
+done
+
+# enhance various paths to find our stuff
+binpath="${builddir}/conf"
+libpath="${MOD_PATH}"
+
+PATH="${binpath}:$PATH"
+export PATH
if [ "${LD_LIBRARY_PATH}" ] ; then
LD_LIBRARY_PATH=":${LD_LIBRARY_PATH}"
fi
-if [ "${uname}" = "Darwin" -a "${DYLD_LIBRARY_PATH}" ] ; then
- DYLD_LIBRARY_PATH=":${DYLD_LIBRARY_PATH}"
-fi
-if [ "${uname}" = "AIX" -a "${LIBPATH}" ] ; then
- LIBPATH=":${LIBPATH}"
-fi
-
-# enhance PATH with Msql and MonetDB binaries
-if [ -s "${builddir}/conf/monetdb-geom-config" ] ; then
- chmod +x "${builddir}/conf/monetdb-geom-config"
-fi
-PATH="${builddir}/conf:$PATH"
-libpath="${MOD_PATH}"
LD_LIBRARY_PATH="${libpath}${LD_LIBRARY_PATH}"
+export LD_LIBRARY_PATH
+
if [ "${uname}" = "Darwin" ] ; then
+ if [ "${DYLD_LIBRARY_PATH}" ] ; then
+ DYLD_LIBRARY_PATH=":${DYLD_LIBRARY_PATH}"
+ fi
DYLD_LIBRARY_PATH="${libpath}${DYLD_LIBRARY_PATH}"
export DYLD_LIBRARY_PATH
fi
if [ "${uname}" = "AIX" ] ; then
+ if [ "${LIBPATH}" ] ; then
+ LIBPATH=":${LIBPATH}"
+ fi
LIBPATH="${libpath}${LIBPATH}"
export LIBPATH
fi
-export PATH LD_LIBRARY_PATH
# execute Mtest.py in the source directory
cd "$srcdir"
-# execute the script
-# if no arguments, do a recursive test (Mtest.py -r), else pass on the
arguments
-# if the environment variable MTEST_AT is set (value does not matter),
-# pass the --at flag to Mtest.py so that it uses the at command as a
-# watchdog.
-exec Mtest.py --config="`monetdb$V-config --sysconfdir`/$conffile"
--monet_mod_path="$MOD_PATH" --dbfarm="${builddir}/dbfarm"
--sql_logdir="${builddir}/sql_logs" --xquery_logdir="${builddir}/xquery_logs"
--TSTSRCBASE="$srcdir" --TSTBLDBASE="$builddir" --TSTTRGBASE="${builddir}"
${MTEST_AT+--at} "[EMAIL PROTECTED]"
+# execute the script.
+# if no arguments, do a recursive test (Mtest.py -r), else pass on the
+# arguments.
+# if the environment variable MTEST_AT is set (value does not matter), pass
+# the --at flag to Mtest.py so that it uses the at command as a watchdog.
+exec Mtest.py -$V --package=${pkg} --monet_mod_path="${MOD_PATH}"
--dbfarm="${builddir}/dbfarm" --sql_logdir="${builddir}/sql_logs"
--xquery_logdir="${builddir}/xquery_logs" --TSTTRGBASE="${builddir}"
${MTEST_AT+--at} "[EMAIL PROTECTED]"
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins