summaryrefslogtreecommitdiff
path: root/test/windows/all
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-06-03 18:39:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-06-03 18:39:12 +0200
commitbf2cfa77a1003319b4c0b768f724d1481ec866aa (patch)
tree7a03926ddd11f3c4d6e06f5bb3f7075cb6305227 /test/windows/all
parent829051104d5544c56b49ebfa181b092cc5e698f3 (diff)
Remove unnecessary sub-directory
Diffstat (limited to 'test/windows/all')
-rwxr-xr-xtest/windows/all67
1 files changed, 67 insertions, 0 deletions
diff --git a/test/windows/all b/test/windows/all
new file mode 100755
index 0000000..9b91ca3
--- /dev/null
+++ b/test/windows/all
@@ -0,0 +1,67 @@
+#! /usr/bin/env bash
+
+trap 'exit 1' ERR
+
+function error ()
+{
+ echo "$*" 1>&2
+}
+
+function usage ()
+{
+ error "usage: $0 qt-version 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"
+}
+
+if [ "$1" = "" ]; then
+ error qt version expected
+ usage
+ exit 1
+fi
+
+if [ "$2" = "" ]; then
+ error vc version expected
+ usage
+ exit 1
+fi
+
+if [ "$3" = "" ]; then
+ error database expected
+ usage
+ exit 1
+else
+ if [ "$3" = "all" ]; then
+ databases="mssql oracle pgsql sqlite mysql"
+ else
+ databases=$3
+ fi
+fi
+
+if [ "$4" = "" ]; then
+ error configuration expected
+ usage
+ exit 1
+fi
+
+if [ "$5" = "" ]; then
+ error platform expected
+ usage
+ exit 1
+fi
+
+action=$6
+if [ "$action" == "" ]; then
+ action=/Build
+fi
+
+for d in $databases; do
+ cmd.exe /C setenv.bat "$2" build.bat "$d" "$1" "$2" "$4" "$5" "$action"
+ cd odb-tests-$d
+ cmd.exe /C ..\\setenv.bat "$2" test.bat "$d"
+ cd ..
+ cd odb-examples-$d
+ cmd.exe /C ..\\setenv.bat "$2" test.bat "$d"
+ cd ..
+done