pg_regress needs the option dlpath for postgres tests to find regress.so (#6416)

When you run vanilla tests in your local environment, some of the tests
tries to find path for regress.so which is not in default lib path. That
is why we need to specify regress.so path as dlpath option.

Example failure:
```
LOAD :'regresslib';
+ERROR:  could not access file "/home/aykutbozkurt/.pgenv/pgsql-15beta4/lib/regress.so": No such file or directory
```

It is actually in
`~/.pgenv/src/postgresql-15beta4/src/test/regress/regress.so` which is
found by `$regresslibdir`.
pull/6419/head^2
aykut-bozkurt 2022-10-11 14:43:06 +03:00 committed by GitHub
parent 4f8d6f6558
commit 442cdb2ea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1098,7 +1098,10 @@ sub RunVanillaTests
system("mkdir", ("-p", "$pgregressOutputdir/sql")) == 0
or die "Could not create vanilla sql dir.";
# we need to add regress.so path to dlpath because some tests need to find that lib
my $regresslibdir = $pgregressdir;
$exitcode = system("$plainRegress",
("--dlpath", $regresslibdir),
("--inputdir", $pgregressdir),
("--outputdir", $pgregressOutputdir),
("--schedule", catfile("$pgregressdir", "parallel_schedule")),