Add gating
This commit is contained in:
parent
701441997c
commit
ba71800217
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-*
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||||
39
plan.fmf
Normal file
39
plan.fmf
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
|
||||||
|
environment:
|
||||||
|
pybasever: '3.14'
|
||||||
|
|
||||||
|
prepare+:
|
||||||
|
- how: shell
|
||||||
|
script: useradd testuser
|
||||||
|
- how: shell
|
||||||
|
script: dnf module enable -y postgresql:16
|
||||||
|
|
||||||
|
discover:
|
||||||
|
how: shell
|
||||||
|
dist-git-source: true
|
||||||
|
dist-git-type: local
|
||||||
|
tests:
|
||||||
|
- name: bundled tests
|
||||||
|
test: |
|
||||||
|
chmod a+Xw -R $TMT_SOURCE_DIR &&
|
||||||
|
runuser testuser --preserve-environment -c '
|
||||||
|
cd $(dirname $TMT_SOURCE_DIR/psycopg2-*/tests) &&
|
||||||
|
|
||||||
|
export PGTESTS_LOCALE=C.UTF-8 &&
|
||||||
|
. "/usr/share/postgresql-setup/postgresql_pkg_tests.sh" &&
|
||||||
|
pgtests_start &&
|
||||||
|
|
||||||
|
export PSYCOPG2_TESTDB=${PGTESTS_DATABASES##*:} &&
|
||||||
|
export PSYCOPG2_TESTDB_HOST=$PGHOST &&
|
||||||
|
export PSYCOPG2_TESTDB_PORT=$PGPORT &&
|
||||||
|
|
||||||
|
python${pybasever} -c "import tests; tests.unittest.main(defaultTest=\"tests.test_suite\")" --verbose
|
||||||
|
' &&
|
||||||
|
chmod a+Xw -R $TMT_SOURCE_DIR
|
||||||
|
|
||||||
|
require:
|
||||||
|
- python${pybasever}-psycopg2
|
||||||
|
- python${pybasever}
|
||||||
|
- postgresql-test-rpm-macros # present in module
|
||||||
Loading…
Reference in New Issue
Block a user