],
[
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},
],
[
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{}, ],
$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};
/*
- * uri-regress.c
+ * libpq_uri_regress.c
* A test program for libpq URI format
*
* This is a helper for libpq conninfo regression testing. It takes a single
* Portions Copyright (c) 2012-2022, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * src/interfaces/libpq/test/uri-regress.c
+ * src/interfaces/libpq/test/libpq_uri_regress.c
*/
#include "postgres_fe.h"
opts = PQconninfoParse(argv[1], &errmsg);
if (opts == NULL)
{
- fprintf(stderr, "uri-regress: %s", errmsg);
+ fprintf(stderr, "libpq_uri_regress: %s", errmsg);
return 1;
}
defs = PQconndefaults();
if (defs == NULL)
{
- fprintf(stderr, "uri-regress: cannot fetch default options\n");
+ fprintf(stderr, "libpq_uri_regress: cannot fetch default options\n");
return 1;
}
$libpqwalreceiver->AddReference($postgres, $libpq);
my $libpq_testclient =
- $solution->AddProject('testclient', 'exe', 'misc',
+ $solution->AddProject('libpq_testclient', 'exe', 'misc',
'src/interfaces/libpq/test');
- $libpq_testclient->AddFile('src/interfaces/libpq/test/testclient.c');
+ $libpq_testclient->AddFile('src/interfaces/libpq/test/libpq_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',
+ $solution->AddProject('libpq_uri_regress', 'exe', 'misc',
'src/interfaces/libpq/test');
- $libpq_uri_regress->AddFile('src/interfaces/libpq/test/uri-regress.c');
+ $libpq_uri_regress->AddFile('src/interfaces/libpq/test/libpq_uri_regress.c');
$libpq_uri_regress->AddIncludeDir('src/interfaces/libpq');
$libpq_uri_regress->AddReference($libpgport, $libpq);
$libpq_uri_regress->AddLibrary('ws2_32.lib');