diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-30 16:12:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-30 16:12:06 +0200 |
commit | 6a9aeb7eed00b1f03039b73f72015e65bbea48b4 (patch) | |
tree | fb0f77bdf6e7c7c7dc970025669d56a49fbbd7ca /test/windows/odb/all | |
parent | 457b2c78ff3b6da7856c6d336de6e1b2dc3a4d60 (diff) |
Update with multi-database build and SQLite support
Diffstat (limited to 'test/windows/odb/all')
-rwxr-xr-x | test/windows/odb/all | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/test/windows/odb/all b/test/windows/odb/all index d9ecc16..f81218d 100755 --- a/test/windows/odb/all +++ b/test/windows/odb/all @@ -9,7 +9,7 @@ function error () function usage () { - error "usage: $0 vc-version conf plat [action]" + error "usage: $0 vc-version database conf plat [action]" error " valid configurations are: {Debug,Release}|all" error " valid platforms are: {Win32,x64}|all" error " valid actions are: /Build (default), /Clean, and /Rebuild" @@ -22,30 +22,40 @@ if [ "$1" = "" ]; then fi if [ "$2" = "" ]; then - error configuration expected + error database expected usage exit 1 +else + if [ "$2" = "all" ]; then + databases="sqlite mysql" + else + databases=$2 + fi fi if [ "$3" = "" ]; then + error configuration expected + usage + exit 1 +fi + +if [ "$4" = "" ]; then error platform expected usage exit 1 fi -action=$4 +action=$5 if [ "$action" == "" ]; then action=/Build fi -databases="mysql" - for d in $databases; do - cmd.exe /C setenv.bat build.bat "$d" "$1" "$2" "$3" "$action" - cd odb-tests + cmd.exe /C setenv.bat build.bat "$d" "$1" "$3" "$4" "$action" + cd odb-tests-$d cmd.exe /C ..\\setenv.bat test.bat "$d" cd .. - cd odb-examples + cd odb-examples-$d cmd.exe /C ..\\setenv.bat test.bat "$d" cd .. done |