Ticket #33673: libpqxx-test.diff
File libpqxx-test.diff, 948 bytes (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
Portfile
66 81 test.target check 67 82 68 83 pre-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" 71 86 # test for existence of ${worksrcdir}/test_libpqxx/postmaster.pid to indicate success 72 87 73 88 # PGDATABASE (name of database; defaults to your user name) … … 83 98 } 84 99 85 100 post-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 88 103 } 89