Add gating tests

resolves: rhbz#1962812
This commit is contained in:
Andreas Schneider 2021-05-25 14:46:27 +02:00
parent 337b17b141
commit 269922171b
6 changed files with 4599 additions and 1 deletions

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -25,7 +25,7 @@
Name: libldb Name: libldb
Version: 2.3.0 Version: 2.3.0
Release: 4%{?dist} Release: 5%{?dist}
Summary: A schema-less, ldap like, API and database Summary: A schema-less, ldap like, API and database
Requires: libtalloc%{?_isa} >= %{talloc_version} Requires: libtalloc%{?_isa} >= %{talloc_version}
Requires: libtdb%{?_isa} >= %{tdb_version} Requires: libtdb%{?_isa} >= %{tdb_version}
@ -230,6 +230,9 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_*
%endif %endif
%changelog %changelog
* Tue May 25 2021 Andreas Schneider <asn@redhat.com> - 2.4.0-5
- resolves rhbz#1962812 - Added gating tests
* Thu May 20 2021 Andreas Schneider <asn@redhat.com> - 2.3.0-4 * Thu May 20 2021 Andreas Schneider <asn@redhat.com> - 2.3.0-4
- related: #1951285 - Enable lmdb support on ppc64le again - related: #1951285 - Enable lmdb support on ppc64le again

10
tests/sanity/Makefile Normal file
View File

@ -0,0 +1,10 @@
ldb_mod_op-test: ldb_mod_op_test.c
gcc ldb_mod_op_test.c -lldb -ltevent -ltalloc -lcmocka -o ldb_mod_op-test
run: ldb_mod_op-test
@echo "Running ldb_mod_op-test"
./ldb_mod_op-test
clean:
rm -f ldb_mod_op-test

File diff suppressed because it is too large Load Diff

4
tests/sanity/ldbtest.sh Executable file
View File

@ -0,0 +1,4 @@
#/bin/bash
make run || exit 1
make clean || exit 2

20
tests/tests.yml Normal file
View File

@ -0,0 +1,20 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- sanity:
dir: sanity
run: ./ldbtest.sh
required_packages:
- make
- gcc
- libldb
- libldb-devel
- libtevent
- libtevent-devel
- libtalloc
- libtalloc-devel
- libcmocka
- libcmocka-devel