]> granicus.if.org Git - postgresql/commit
Install kludges to fix check-world for src/test/modules
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 3 Dec 2014 02:43:53 +0000 (23:43 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 3 Dec 2014 02:43:53 +0000 (23:43 -0300)
commitda34731bd3c805ab77d6e5914d02b1f011e9479d
tree54322128f3a7f55a5b3479ba0cc1083d0868004f
parent475aedd1ef0c0f9fc9d675dd2286380d14804975
Install kludges to fix check-world for src/test/modules

check-world failed in a completely clean tree, because src/test/modules
fail to build unless errcodes.h is generated first.  To fix this,
install a dependency in src/test/modules' Makefile so that the necessary
file is generated.  Even with this, running "make check" within
individual module subdirs will still fail because the dependency is not
considered there, but this case is less interesting and would be messier
to fix.

check-world still failed with the above fix in place, this time because
dummy_seclabel used LOAD to load the dynamic library, which doesn't work
because the @libdir@ (expanded by the makefile) is expanded to the final
install path, not the temporary installation directory used by make
check.  To fix, tweak things so that CREATE EXTENSION can be used
instead, which solves the problem because the library path is expanded
by the backend, which is aware of the true libdir.
src/test/modules/Makefile
src/test/modules/dummy_seclabel/Makefile
src/test/modules/dummy_seclabel/dummy_seclabel--1.0.sql [new file with mode: 0644]
src/test/modules/dummy_seclabel/dummy_seclabel.c
src/test/modules/dummy_seclabel/dummy_seclabel.control [new file with mode: 0644]
src/test/modules/dummy_seclabel/expected/.gitignore [deleted file]
src/test/modules/dummy_seclabel/expected/dummy_seclabel.out [moved from src/test/modules/dummy_seclabel/output/dummy_seclabel.source with 99% similarity]
src/test/modules/dummy_seclabel/sql/.gitignore [deleted file]
src/test/modules/dummy_seclabel/sql/dummy_seclabel.sql [moved from src/test/modules/dummy_seclabel/input/dummy_seclabel.source with 98% similarity]