Move rolenames test out of the core regression tests.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Jun 2019 16:51:08 +0000 (12:51 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Jun 2019 16:51:12 +0000 (12:51 -0400)
commitc91504b958e1647f87ffb7168e61db75ca09b928
treee66bc02986ecbf90557639c1c56e952d35fca1d6
parent2e810508f6b0d89621094445620a1bea3ceff3f1
Move rolenames test out of the core regression tests.

This test script is unsafe to run in "make installcheck" mode for
(at least) two reasons: it creates and destroys some role names
that don't follow the "regress_xxx" naming convention, and it
sets and then resets the application_name GUC attached to every
existing role.  While we've not had complaints, these surely are
not good things to do within a production installation, and
regress.sgml pretty clearly implies that we won't do them.

Rather than lose test coverage altogether, let's just move this
script somewhere where it will get run by "make check" but not
"make installcheck".  src/test/modules/ already has that property.

Since it seems likely that we'll want other regression tests in
future that also exceed the constraints of "make installcheck",
create a generically-named src/test/modules/unsafe_tests/
directory to hold them.

Discussion: https://postgr.es/m/16638.1468620817@sss.pgh.pa.us
src/test/modules/Makefile
src/test/modules/unsafe_tests/.gitignore [new file with mode: 0644]
src/test/modules/unsafe_tests/Makefile [new file with mode: 0644]
src/test/modules/unsafe_tests/README [new file with mode: 0644]
src/test/modules/unsafe_tests/expected/rolenames.out [moved from src/test/regress/expected/rolenames.out with 100% similarity]
src/test/modules/unsafe_tests/sql/rolenames.sql [moved from src/test/regress/sql/rolenames.sql with 100% similarity]
src/test/regress/parallel_schedule
src/test/regress/serial_schedule