Added tests and gating.yaml for gssproxy
Signed-off-by: Sudhir Menon <sumenon@redhat.com>
This commit is contained in:
parent
1efc278814
commit
96a36d1194
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-10
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
24
tests/driver/runtest.sh
Normal file
24
tests/driver/runtest.sh
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/sh -ex
|
||||||
|
|
||||||
|
# We operate on a (patched) source checkout
|
||||||
|
cd ../source
|
||||||
|
|
||||||
|
# Write out the makefiles etc..
|
||||||
|
autoreconf -fi
|
||||||
|
./configure || (cat config.log; exit -1)
|
||||||
|
|
||||||
|
# Fake a build
|
||||||
|
mkdir -p .libs
|
||||||
|
cp /usr/lib64/gssproxy/proxymech.so .libs
|
||||||
|
make test_proxymech
|
||||||
|
make interposetest
|
||||||
|
make -C tests
|
||||||
|
cp $(which gssproxy) .
|
||||||
|
|
||||||
|
# Do something awful
|
||||||
|
rm -f /usr/bin/valgrind
|
||||||
|
touch /usr/bin/valgrind
|
||||||
|
chmod +x /usr/bin/valgrind
|
||||||
|
|
||||||
|
# And run the tests
|
||||||
|
exec ./tests/runtests.py --valgrind-cmd=''
|
53
tests/tests.yml
Normal file
53
tests/tests.yml
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- atomic
|
||||||
|
- classic
|
||||||
|
vars:
|
||||||
|
# standard-test-basic directory for tests are relative to {{ tenv_workdir }}
|
||||||
|
tenv_workdir: /var/test
|
||||||
|
pre_tasks:
|
||||||
|
- import_role:
|
||||||
|
name: standard-test-source
|
||||||
|
vars:
|
||||||
|
fetch_only: True
|
||||||
|
- name: Copy files including source to test environment
|
||||||
|
synchronize:
|
||||||
|
src: "{{ playbook_dir }}/.."
|
||||||
|
dest: "{{ tenv_workdir }}"
|
||||||
|
mode: push
|
||||||
|
ssh_args: "-o UserKnownHostsFile=/dev/null"
|
||||||
|
- name: Add EPEL repo
|
||||||
|
yum_repository:
|
||||||
|
name: epel
|
||||||
|
file: epel
|
||||||
|
description: Extra Packages for Enterprise Linux $releasever - $basearch
|
||||||
|
baseurl: https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/
|
||||||
|
enabled: yes
|
||||||
|
gpgcheck: no
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
required_packages:
|
||||||
|
- autoconf
|
||||||
|
- automake
|
||||||
|
- git
|
||||||
|
- gssproxy
|
||||||
|
- krb5-server-ldap
|
||||||
|
- krb5-workstation
|
||||||
|
- make
|
||||||
|
- nss_wrapper
|
||||||
|
- openldap-clients
|
||||||
|
- openldap-servers
|
||||||
|
- rpm-build
|
||||||
|
- socket_wrapper
|
||||||
|
tests:
|
||||||
|
- prepare-source:
|
||||||
|
dir: ./
|
||||||
|
run: rpmbuild -bp {{tenv_workdir}}/*.spec --nodeps --define "_sourcedir {{tenv_workdir}}" --define "_builddir {{tenv_workdir}}/source"
|
||||||
|
- flatten-source:
|
||||||
|
dir: ./
|
||||||
|
run: shopt -s dotglob; mv {{tenv_workdir}}/source/*/* {{tenv_workdir}}/source
|
||||||
|
- install-builddep:
|
||||||
|
dir: ./
|
||||||
|
run: dnf -y --nogpgcheck build-dep {{tenv_workdir}}/*.spec
|
||||||
|
- driver:
|
Loading…
Reference in New Issue
Block a user