summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/t
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2022-05-04 14:15:25 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2022-05-04 14:15:25 +0200
commit0432490d290f679cad773ce4735e8769e2c4db75 (patch)
tree67fd6659b4650c7a3b707e99b745c8d0e45f83d0 /src/interfaces/libpq/t
parent2e77180d4572ddb892f9c2e253ee95dc0fa26b5f (diff)
downloadpostgresql-0432490d290f679cad773ce4735e8769e2c4db75.tar.gz
Rename libpq test programs with libpq_ prefix
The testclient and uri-regress programs in the libpq test suite had quite generic names which didn't convey much meaning. Since they are installed as part of the MSVC test runs, ensure that their purpose is a little bit clearer by renaming with a libpq_ prefix. While at it rename uri-regress to uri_regress to avoid mixing dash and under- score in the same filename. Reported-by: Noah Misch <noah@leadboat.com> Discussion: https://postgr.es/m/20220501080706.GA1542365@rfd.leadboat.com
Diffstat (limited to 'src/interfaces/libpq/t')
-rw-r--r--src/interfaces/libpq/t/001_uri.pl30
-rw-r--r--src/interfaces/libpq/t/002_api.pl2
2 files changed, 16 insertions, 16 deletions
diff --git a/src/interfaces/libpq/t/001_uri.pl b/src/interfaces/libpq/t/001_uri.pl
index 1d595c0529..beaf13b49c 100644
--- a/src/interfaces/libpq/t/001_uri.pl
+++ b/src/interfaces/libpq/t/001_uri.pl
@@ -72,7 +72,7 @@ my @tests = (
],
[
q{postgresql://host/db?u%7aer=someotheruser&port=12345}, q{},
- q{uri-regress: invalid URI query parameter: "uzer"},
+ q{libpq_uri_regress: invalid URI query parameter: "uzer"},
],
[
q{postgresql://host:12345?user=uri-user},
@@ -114,63 +114,63 @@ my @tests = (
],
[
q{postgresql://host?uzer=}, q{},
- q{uri-regress: invalid URI query parameter: "uzer"},
+ q{libpq_uri_regress: invalid URI query parameter: "uzer"},
],
[
q{postgre://},
q{},
- q{uri-regress: missing "=" after "postgre://" in connection info string},
+ q{libpq_uri_regress: missing "=" after "postgre://" in connection info string},
],
[
q{postgres://[::1},
q{},
- q{uri-regress: end of string reached when looking for matching "]" in IPv6 host address in URI: "postgres://[::1"},
+ q{libpq_uri_regress: end of string reached when looking for matching "]" in IPv6 host address in URI: "postgres://[::1"},
],
[
q{postgres://[]},
q{},
- q{uri-regress: IPv6 host address may not be empty in URI: "postgres://[]"},
+ q{libpq_uri_regress: IPv6 host address may not be empty in URI: "postgres://[]"},
],
[
q{postgres://[::1]z},
q{},
- q{uri-regress: unexpected character "z" at position 17 in URI (expected ":" or "/"): "postgres://[::1]z"},
+ q{libpq_uri_regress: unexpected character "z" at position 17 in URI (expected ":" or "/"): "postgres://[::1]z"},
],
[
q{postgresql://host?zzz},
q{},
- q{uri-regress: missing key/value separator "=" in URI query parameter: "zzz"},
+ q{libpq_uri_regress: missing key/value separator "=" in URI query parameter: "zzz"},
],
[
q{postgresql://host?value1&value2},
q{},
- q{uri-regress: missing key/value separator "=" in URI query parameter: "value1"},
+ q{libpq_uri_regress: missing key/value separator "=" in URI query parameter: "value1"},
],
[
q{postgresql://host?key=key=value},
q{},
- q{uri-regress: extra key/value separator "=" in URI query parameter: "key"},
+ q{libpq_uri_regress: extra key/value separator "=" in URI query parameter: "key"},
],
[
q{postgres://host?dbname=%XXfoo}, q{},
- q{uri-regress: invalid percent-encoded token: "%XXfoo"},
+ q{libpq_uri_regress: invalid percent-encoded token: "%XXfoo"},
],
[
q{postgresql://a%00b},
q{},
- q{uri-regress: forbidden value %00 in percent-encoded value: "a%00b"},
+ q{libpq_uri_regress: forbidden value %00 in percent-encoded value: "a%00b"},
],
[
q{postgresql://%zz}, q{},
- q{uri-regress: invalid percent-encoded token: "%zz"},
+ q{libpq_uri_regress: invalid percent-encoded token: "%zz"},
],
[
q{postgresql://%1}, q{},
- q{uri-regress: invalid percent-encoded token: "%1"},
+ q{libpq_uri_regress: invalid percent-encoded token: "%1"},
],
[
q{postgresql://%}, q{},
- q{uri-regress: invalid percent-encoded token: "%"},
+ q{libpq_uri_regress: invalid percent-encoded token: "%"},
],
[ q{postgres://@host}, q{host='host' (inet)}, q{}, ],
[ q{postgres://host:/}, q{host='host' (inet)}, q{}, ],
@@ -224,7 +224,7 @@ sub test_uri
$expect{'exit'} = $expect{stderr} eq '';
- my $cmd = [ 'uri-regress', $uri ];
+ my $cmd = [ 'libpq_uri_regress', $uri ];
$result{exit} = IPC::Run::run $cmd, '>', \$result{stdout}, '2>',
\$result{stderr};
diff --git a/src/interfaces/libpq/t/002_api.pl b/src/interfaces/libpq/t/002_api.pl
index 7c6c5788a0..8b3355e6dd 100644
--- a/src/interfaces/libpq/t/002_api.pl
+++ b/src/interfaces/libpq/t/002_api.pl
@@ -6,7 +6,7 @@ use PostgreSQL::Test::Utils;
use Test::More;
# Test PQsslAttribute(NULL, "library")
-my ($out, $err) = run_command(['testclient', '--ssl']);
+my ($out, $err) = run_command(['libpq_testclient', '--ssl']);
if ($ENV{with_ssl} eq 'openssl')
{