Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 637a934

Browse files
committed
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>
1 parent 62a1657 commit 637a934

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

contrib/passwordcheck/Makefile

-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ PGFILEDESC = "passwordcheck - strengthen user password checks"
88
# PG_CPPFLAGS = -DUSE_CRACKLIB '-DCRACKLIB_DICTPATH="/usr/lib/cracklib_dict"'
99
# SHLIB_LINK = -lcrack
1010

11-
REGRESS_OPTS = --temp-config $(srcdir)/passwordcheck.conf
1211
REGRESS = passwordcheck
13-
# disabled because these tests require setting shared_preload_libraries
14-
NO_INSTALLCHECK = 1
1512

1613
ifdef USE_PGXS
1714
PG_CONFIG = pg_config

contrib/passwordcheck/expected/passwordcheck.out

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
LOAD 'passwordcheck';
12
CREATE USER regress_user1;
23
-- ok
34
ALTER USER regress_user1 PASSWORD 'a_nice_long_password';

contrib/passwordcheck/passwordcheck.conf

-1
This file was deleted.

contrib/passwordcheck/sql/passwordcheck.sql

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
LOAD 'passwordcheck';
2+
13
CREATE USER regress_user1;
24

35
-- ok

0 commit comments

Comments
 (0)