Description of problem: The gmake check functionality in rh-postgresql-test does not work due to improper paths in the makefiles. This is the error I get when I go to the regress test directory installed by the test package. .qa.[root@isqa3 regress]# gmake check GNUmakefile:16: ../../../src/Makefile.global: No such file or directory gmake: *** No rule to make target `../../../src/Makefile.global'. Stop. After some more playing I was able to get the gmake checks to work by doing the following with the actual rh-postgresql source rpm after performing a rpmbuild -bc: rpm -ivh rh-postgresql-7.3.6-1.src.rpm rpmbuild -bc rh-postgresql.spec cd ../BUILD/postgresql-7.3.6/src/test chown -R postgres.postgres regress/* cd regress su - postgres gmake check Version-Release number of selected component (if applicable): rh-postgresql-7.3.6-1
I think the real problem here is that you are not performing the regression tests in the intended way. The BUILD tree cannot be used for this because it is typically root-owned. The recommended way to run the regression tests with an RPM build is to install and start the postmaster, then use the installed regression test tree. See the REGRESSION TESTING notes in the README.rpm-dist file.
Closing as pilot error. (It *would* be nice if the standard PG regression test procedure worked for the RPMs, but I think it'll take upstream changes to make that workable at all.)