File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ New in 7.0 version:
6
6
7
7
* Simplified build against SCLs with --with-scl option.
8
8
9
+ * New test macro %postgresql_tests_run.
10
+
11
+ Incompatible changes in 7.0 version
12
+
9
13
* The %pgtest_init && %pgtest_start renamed to %postgresql_tests_init and
10
14
%postgresql_tests_start.
11
15
Original file line number Diff line number Diff line change 8
8
9
9
%@NAME_SERVICE_VARNAME@_module_requires Requires: @NAME_SERVICE_VARNAME@-server(:MODULE_COMPAT_@PGMAJORVERSION@)
10
10
11
- %_@NAME_SERVICE_VARNAME@_tests_lib "@PKG_TESTS_LIB@"
12
-
13
11
# Initialize the PostgreSQL tests environment. This is supposed to be invoked
14
12
# in prep/build/install (where you plan to run the testsuite), while it defines
15
13
# several useful shell variables and provies useful commands. Effect of this
16
14
# command end with shell exit.
17
- %@NAME_SERVICE_VARNAME@_tests_init %_@NAME_SERVICE_VARNAME@_tests_lib
15
+ %@NAME_SERVICE_VARNAME@_tests_init . "@PKG_TESTS_LIB@"
18
16
19
17
# Start the testing postgresql server, setting the actual unix user to be the
20
18
# PostgreSQL admin. The $PGHOST/$PGPORT are set appropriately, so psql is able
21
19
# to run without passwords. This also sets shell exit trap callback so that if
22
20
# something goes wrong and package build fails, the temporary database is
23
21
# automatically cleaned up.
24
22
%@NAME_SERVICE_VARNAME@_tests_start pgtests_start
23
+
24
+ # Initialize database and run server in one step, if this works well-enough.
25
+ %@NAME_SERVICE_VARNAME@_tests_run %@NAME_SERVICE_VARNAME@_tests_init ; %@NAME_SERVICE_VARNAME@_tests_start
You can’t perform that action at this time.
0 commit comments