Environment checks prior to regression tests? - Mailing list pgsql-hackers

From Kohei Kaigai
Subject Environment checks prior to regression tests?
Date
Msg-id D0C1A1F8BF513F469926E6C71461D9EC01E341@EX10MBX02.EU.NEC.COM
Whole thread Raw
Responses Re: Environment checks prior to regression tests?
List pgsql-hackers
How about an idea that allows to launch environment checker (typically shell scripts) prior
to regression tests?

The following stuffs should be preconfigured to run sepgsql's regression test.
- SELinux must be run and configured to enforcing mode.
- The sepgsql-regtest policy module must be loaded.
- The boolean of sepgsql_regression_test_mode must be turned on.
- The psql command should be labeled as 'bin_t'

If checkinstall optionally allows to launch an environment checker on regression test,
we may be possible to suggest users to fix up their configuration. It seems to me quite
helpful.

For example, one idea is to inject a dummy variable (mostly, initialized to empty) as
dependency of installcheck, being available to overwrite in Makefile of contrib, as follows:
 # against installed postmaster installcheck: submake $(REGRESS_PRE)         $(pg_regress_installcheck) $(REGRESS_OPTS)
$(REGRESS)

Thanks,
--
NEC Europe Ltd, SAP Global Competence Center
KaiGai Kohei <kohei.kaigai@emea.nec.com>


pgsql-hackers by date:

Previous
From: Kohei Kaigai
Date:
Subject: Re: [v9.1] sepgsql - userspace access vector cache
Next
From: Hannu Krosing
Date:
Subject: Re: Commitfest Status: Sudden Death Overtime