aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2022-04-16 09:35:15 -0400
committerAndrew Dunstan <andrew@dunslane.net>2022-04-16 09:36:08 -0400
commita17fd67d2f2861ae0ce00d1aeefdf2facc47cd5e (patch)
treef815050c36b6fc4c823b0f45489456fe0db2bc6d
parent5a892c9b154f513a42c4a42cdfdae524ce33c86a (diff)
downloadpostgresql-a17fd67d2f2861ae0ce00d1aeefdf2facc47cd5e.tar.gz
postgresql-a17fd67d2f2861ae0ce00d1aeefdf2facc47cd5e.zip
Build libpq test programs under MSVC
This allows the newly added TAP tests to run.
-rw-r--r--src/tools/msvc/Mkvcbuild.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm
index 46904fee0ec..fc04e1db8e2 100644
--- a/src/tools/msvc/Mkvcbuild.pm
+++ b/src/tools/msvc/Mkvcbuild.pm
@@ -284,6 +284,22 @@ sub mkvcbuild
$libpqwalreceiver->AddIncludeDir('src/interfaces/libpq');
$libpqwalreceiver->AddReference($postgres, $libpq);
+ my $libpq_testclient =
+ $solution->AddProject('testclient', 'exe', 'misc',
+ 'src/interfaces/libpq/test');
+ $libpq_testclient->AddFile('src/interfaces/libpq/test/testclient.c');
+ $libpq_testclient->AddIncludeDir('src/interfaces/libpq');
+ $libpq_testclient->AddReference($libpgport, $libpq);
+ $libpq_testclient->AddLibrary('ws2_32.lib');
+
+ my $libpq_uri_regress =
+ $solution->AddProject('uri-regress', 'exe', 'misc',
+ 'src/interfaces/libpq/test');
+ $libpq_uri_regress->AddFile('src/interfaces/libpq/test/uri-regress.c');
+ $libpq_uri_regress->AddIncludeDir('src/interfaces/libpq');
+ $libpq_uri_regress->AddReference($libpgport, $libpq);
+ $libpq_uri_regress->AddLibrary('ws2_32.lib');
+
my $pgoutput = $solution->AddProject('pgoutput', 'dll', '',
'src/backend/replication/pgoutput');
$pgoutput->AddReference($postgres);