From 3278c862abfc4a6cb9c27cd9dcfce2b8f2b73910 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 23 Feb 2011 13:47:34 +0200 Subject: Add Windows test scripts --- test/windows/odb/all | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 test/windows/odb/all (limited to 'test/windows/odb/all') diff --git a/test/windows/odb/all b/test/windows/odb/all new file mode 100755 index 0000000..cef5a67 --- /dev/null +++ b/test/windows/odb/all @@ -0,0 +1,31 @@ +#! /usr/bin/env bash + +trap 'exit 1' ERR + +function error () +{ + echo "$*" 1>&2 +} + +if [ "$1" = "" ]; then + echo vc++ version expected + exit 1 +fi + +action=$2 +if [ "$action" == "" ]; then + action=/Build +fi + +databases="mysql" + +for d in $databases; do + cmd.exe /C "setenv.bat build.bat $d $1 $action" + cd odb-tests + cmd.exe /C "..\setenv.bat test.bat $d" + cd .. + cd odb-examples + cmd.exe /C "..\setenv.bat test.bat $d" + cd .. +done + -- cgit v1.1