Add 'make postgres' Makefile target.

That would build postgres and install it into REPO_ROOT/tmp_install where pageserver
integration tests would be able to find it.
This commit is contained in:
Stas Kelvich
2021-03-22 17:56:00 +03:00
parent 22a0da114f
commit efe9fdbbe6
4 changed files with 78 additions and 3 deletions

View File

@@ -45,10 +45,10 @@ impl ComputeControlPlane {
pub fn local() -> ComputeControlPlane {
// postgres configure and `make temp-install` are using this path
let pg_install_dir = Path::new(env!("CARGO_MANIFEST_DIR"))
.join("../build/tmp_install/usr/local/pgsql");
.join("../tmp_install/");
let work_dir = Path::new(env!("CARGO_MANIFEST_DIR"))
.join("../tmp_check/zenith");
.join("tmp_install/");
ComputeControlPlane {
pg_install_dir: pg_install_dir,
@@ -190,7 +190,6 @@ impl PostgresNode {
}
impl Drop for PostgresNode {
// destructor to clean up state after test is done
// TODO: leave everything in place if test is failed
// TODO: put logs to a separate location to run `tail -F` on them