Skip to content

Commit bab8d9c

Browse files
alaricdclaude
andcommitted
ci: take the FB50 security database and config from the infrastructure archive
The official Firebird 5.0.4 Windows release ships an uninitialized SECURITY5.FDB (no SYSDBA account, so every Default-server test fails with "Install incomplete") and a firebird.conf whose wire-crypt defaults reject the CryptDisabled and CryptRequired suites. Keep the official 5.0.4 binaries and overlay SECURITY5.FDB and firebird.conf from the test-infrastructure archive, which the suites were written against. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
1 parent f947ab5 commit bab8d9c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎tests.ps1‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ $FirebirdConfiguration = @{
1717
Executable = '.\firebird.exe'
1818
Args = @('-a')
1919
MinimumVersion = [version]'5.0.4'
20+
# The official release ships an uninitialized security database and a different firebird.conf;
21+
# the test suite needs the prepared SYSDBA account and wire-crypt settings from the infrastructure archive.
22+
ConfigDownload = 'https://github.com/FirebirdSQL/NETProvider-tests-infrastructure/raw/master/fb50.7z'
23+
ConfigFiles = @('SECURITY5.FDB', 'firebird.conf')
2024
}
2125
FB40 = @{
2226
Download = 'https://github.com/FirebirdSQL/NETProvider-tests-infrastructure/raw/master/fb40.7z'
@@ -65,6 +69,11 @@ function Prepare() {
6569
if (!(Test-Path .\fbembed.dll)) {
6670
cp .\fbclient.dll .\fbembed.dll
6771
}
72+
if ($selectedConfiguration.ConfigDownload) {
73+
Invoke-RestMethod -Uri $selectedConfiguration.ConfigDownload -OutFile fb_config.7z
74+
7z x -y -bsp0 -bso0 fb_config.7z $selectedConfiguration.ConfigFiles
75+
rm fb_config.7z
76+
}
6877
cp -Recurse -Force .\* $testsProviderDir
6978

7079
ni firebird.log -ItemType File | Out-Null

0 commit comments

Comments
 (0)