aboutsummaryrefslogtreecommitdiff
path: root/tester.bat
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-14 15:19:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-14 15:19:16 +0200
commit349178ecf6c69be63bd81ce81d310404574cb373 (patch)
treefccbd90c0cae4f43389ec830c9d7924c30c62113 /tester.bat
parent22dd2e8a904d26c18f6e4c634e14b21a8aaddc7d (diff)
Establish base build system
Diffstat (limited to 'tester.bat')
-rw-r--r--tester.bat42
1 files changed, 42 insertions, 0 deletions
diff --git a/tester.bat b/tester.bat
new file mode 100644
index 0000000..28a36de
--- /dev/null
+++ b/tester.bat
@@ -0,0 +1,42 @@
+@echo off
+rem file : tester.bat
+rem author : Boris Kolpackov <boris@codesynthesis.com>
+rem copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+rem license : GNU GPL v2; see accompanying LICENSE file
+
+rem
+rem Run an ODB example. The example directory is the current directory.
+rem
+rem %1 database
+rem %2 configuration, for example, Debug or Release
+rem %3 platform, for example Win32 or x64
+rem topdir variable containing the path to top project directory
+rem
+
+setlocal
+
+if "_%3_" == "_Win32_" (
+ set "dir=%2"
+) else (
+ set "dir=%3\%2"
+)
+
+if exist *.sql (
+ for %%f in (*.sql) do (
+ call %topdir%\%1-driver.bat %%f
+ if errorlevel 1 goto error
+ )
+)
+
+%dir%\driver.exe --options-file %topdir%\%1.options
+if errorlevel 1 goto error
+
+goto end
+
+:error
+endlocal
+exit /b 1
+
+:end
+endlocal
+