defaultbranch / pdal-debian-package

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

PDAL-2.7.2 pgpointcloudtest fails #2

Open defaultbranch opened 2 months ago

defaultbranch commented 2 months ago

When running the configuration step cmake -B build -S . -DCMAKE_BUILD_TYPE=Release, the output contains:

...
-- The following features have been enabled:

 * PostgreSQL PointCloud plugin, read/write PostgreSQL PointCloud objects
...

Then when running the test for PostgreSQL PointCloud objects, it fails:

# ./build/bin/pgpointcloudtest
[==========] Running 7 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 6 tests from PgpointcloudWriterTest
[ RUN      ] PgpointcloudWriterTest.write
unknown file: Failure
C++ exception with description "connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
        Is the server running locally and accepting connections on that socket?
" thrown in SetUp().
[  FAILED  ] PgpointcloudWriterTest.write (0 ms)
...
defaultbranch commented 2 months ago

Running cmake with -LH displays options, one is:

// Choose if PostgreSQL PointCloud tests should be built
BUILD_PGPOINTCLOUD_TESTS:BOOL=ON

So we can disable this by changing our build instructions:

...
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DBUILD_PGPOINTCLOUD_TESTS=OFF
...