summaryrefslogtreecommitdiff
path: root/odb-tests/common/changelog/testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-04-25 19:49:33 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-05-03 14:33:32 +0300
commit68ff3d1fa1c8eb86bf89b7b9cbad78a45f362672 (patch)
treecdaaf84ceeb7f5c4ee7e06f84fed383a18d40350 /odb-tests/common/changelog/testscript
parent6fad72ea59dca2f2cc9e431bcc5a026bda17fdf2 (diff)
Add support for testing of libodb-mssql to odb-tests
Diffstat (limited to 'odb-tests/common/changelog/testscript')
-rw-r--r--odb-tests/common/changelog/testscript19
1 files changed, 19 insertions, 0 deletions
diff --git a/odb-tests/common/changelog/testscript b/odb-tests/common/changelog/testscript
index 9368938..af8dcf5 100644
--- a/odb-tests/common/changelog/testscript
+++ b/odb-tests/common/changelog/testscript
@@ -64,3 +64,22 @@ if $pgsql
diff $src_base/$n-pgsql-patch.xml $(n).xml
end
}
+
+: mssql
+:
+if $mssql
+{
+ odb_options += --database 'mssql' --changelog-dir $~
+
+ for h: $headers
+ n = $base($leaf($h))
+
+ $* $odb_options -DBVER=1 -DCVER=1 --init-changelog $h &$(n).xml &$(n).sql
+
+ $* $odb_options -DBVER=1 -DCVER=2 $h
+ diff $src_base/$n-mssql-diff.xml $(n).xml
+
+ $* $odb_options -DBVER=2 -DCVER=3 $h
+ diff $src_base/$n-mssql-patch.xml $(n).xml
+ end
+}