[MacPorts] #33673: libpqxx: tests don't work
MacPorts
noreply at macports.org
Sun Mar 18 03:46:54 PDT 2012
#33673: libpqxx: tests don't work
-------------------------------------+--------------------------------------
Reporter: ryandesign@… | Owner: dweber@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Keywords: | Port: libpqxx
-------------------------------------+--------------------------------------
Comment(by ryandesign@…):
Looking at this further, I see the tests probably never worked since the
portfile says "test.run no".
I think the portfile was making assumptions about the current working
directory. Fixing that and a few other details gets us much further, to
the postgresql server actually starting and the tests being run. But they
all fail with:
{{{
Exception: FATAL: database "test_libpqxx" does not exist
}}}
I haven't read the documentation so I don't know what's expected to
happen, but what I observe to happen is:
1. "initdb" creates a directory in which postgresql can store databases,
and creates the minimal system databases required
2. "pg_ctl start" starts postgresql pointed at that directory for storage
3. "make" check runs tests against a particular database which it expects
to already exist
So it seems like we need a step up there between 2 and 3 to actually
create that database.
--
Ticket URL: <https://trac.macports.org/ticket/33673#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list