mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Simplify new test suite handling of passwordcheck
This changes the use of a custom configuration file to enforce the value
of preload_shared_libraries to simply load the library during the tests.
This removes the restriction of running installcheck on the tests, and
simplifies its makefile contrary to what has been introduced in af7211e
.
Author: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@ -8,10 +8,7 @@ PGFILEDESC = "passwordcheck - strengthen user password checks"
|
||||
# PG_CPPFLAGS = -DUSE_CRACKLIB '-DCRACKLIB_DICTPATH="/usr/lib/cracklib_dict"'
|
||||
# SHLIB_LINK = -lcrack
|
||||
|
||||
REGRESS_OPTS = --temp-config $(srcdir)/passwordcheck.conf
|
||||
REGRESS = passwordcheck
|
||||
# disabled because these tests require setting shared_preload_libraries
|
||||
NO_INSTALLCHECK = 1
|
||||
|
||||
ifdef USE_PGXS
|
||||
PG_CONFIG = pg_config
|
||||
|
@ -1,3 +1,4 @@
|
||||
LOAD 'passwordcheck';
|
||||
CREATE USER regress_user1;
|
||||
-- ok
|
||||
ALTER USER regress_user1 PASSWORD 'a_nice_long_password';
|
||||
|
@ -1 +0,0 @@
|
||||
shared_preload_libraries = 'passwordcheck'
|
@ -1,3 +1,5 @@
|
||||
LOAD 'passwordcheck';
|
||||
|
||||
CREATE USER regress_user1;
|
||||
|
||||
-- ok
|
||||
|
Reference in New Issue
Block a user