Ticket #33673: libpqxx-test.diff

File libpqxx-test.diff, 948 bytes (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)
  • Portfile

     
    6681test.target     check
    6782
    6883pre-test {
    69     system "initdb -D ${worksrcdir}/test_libpqxx"
    70     system "pg_ctl -w -D ${worksrcdir}/test_libpqxx -l ${worksrcdir}/test_libpqxx/logfile -o \"-p 5455\" start"
     84    system "${prefix}/lib/${server}/bin/initdb -D ${worksrcdir}/test_libpqxx"
     85    system "${prefix}/lib/${server}/bin/pg_ctl -w -D ${worksrcdir}/test_libpqxx -l ${worksrcdir}/test_libpqxx/logfile -o \"-p 5455\" start"
    7186    # test for existence of ${worksrcdir}/test_libpqxx/postmaster.pid to indicate success
    7287
    7388    # PGDATABASE    (name of database; defaults to your user name)
     
    8398}
    8499
    85100post-test {
    86     system "pg_ctl -w -D ${worksrcdir}/test_libpqxx stop -m fast"
    87     system "rm -rf ${worksrcdir}/test_libpqxx"
     101    system "${prefix}/lib/${server}/bin/pg_ctl -w -D ${worksrcdir}/test_libpqxx stop -m fast"
     102    delete ${worksrcdir}/test_libpqxx
    88103}
    89