diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-02-23 13:47:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-02-23 13:47:34 +0200 |
commit | 3278c862abfc4a6cb9c27cd9dcfce2b8f2b73910 (patch) | |
tree | 70fbfe7dbb27250cdad3ead628ce6b7c4ab7287e /test/windows/odb/all | |
parent | afc81e5cb09219770a8a5b8cd2855b45ece0a42a (diff) |
Add Windows test scripts
Diffstat (limited to 'test/windows/odb/all')
-rwxr-xr-x | test/windows/odb/all | 31 |
1 files changed, 31 insertions, 0 deletions
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 + |