Add self-tests and an OSCI harness
Resolves: RHEL-30639 Signed-off-by: Vladis Dronov <vdronov@redhat.com>
This commit is contained in:
parent
5695621ad8
commit
9ae0d6e181
@ -1,7 +1,7 @@
|
|||||||
Summary: C source code tree search and browse tool
|
Summary: C source code tree search and browse tool
|
||||||
Name: cscope
|
Name: cscope
|
||||||
Version: 15.9
|
Version: 15.9
|
||||||
Release: 22%{?dist}
|
Release: 23%{?dist}
|
||||||
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/v%{version}/%{name}-%{version}.tar.gz
|
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/v%{version}/%{name}-%{version}.tar.gz
|
||||||
URL: http://cscope.sourceforge.net
|
URL: http://cscope.sourceforge.net
|
||||||
License: BSD-3-Clause AND GPL-2.0-or-later
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
||||||
@ -109,6 +109,10 @@ rm -f %{emacs_lisp_path}/xcscope.el
|
|||||||
rm -f %{vim_plugin_path}/cctree.vim
|
rm -f %{vim_plugin_path}/cctree.vim
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 01 2024 Vladis Dronov <vdronov@redhat.com> - 15.9-23
|
||||||
|
- Add OSCI harness
|
||||||
|
- Add self-tests
|
||||||
|
|
||||||
* Thu Feb 01 2024 Vladis Dronov <vdronov@redhat.com> - 15.9-22
|
* Thu Feb 01 2024 Vladis Dronov <vdronov@redhat.com> - 15.9-22
|
||||||
- Use proper SPDX license identifiers (RHEL-30639)
|
- Use proper SPDX license identifiers (RHEL-30639)
|
||||||
|
|
||||||
|
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}
|
2
tests/README
Normal file
2
tests/README
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
initial tests:
|
||||||
|
run make check in src, which runs any selftests in the upstream source tarball
|
8
tests/smoke/runtest.sh
Executable file
8
tests/smoke/runtest.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd ../source
|
||||||
|
aclocal
|
||||||
|
autoheader
|
||||||
|
autoconf
|
||||||
|
automake --add-missing
|
||||||
|
export CSCOPE_BINARY=/usr/bin/cscope
|
||||||
|
./configure && make check
|
52
tests/tests.yml
Normal file
52
tests/tests.yml
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
tasks:
|
||||||
|
- name: Add executor host
|
||||||
|
add_host:
|
||||||
|
name: executor
|
||||||
|
ansible_connection: local
|
||||||
|
ansible_host: 127.0.0.1
|
||||||
|
ansible_ssh_connection: local
|
||||||
|
|
||||||
|
- name: Install build requires
|
||||||
|
delegate_to: executor
|
||||||
|
shell: dnf -y install autoconf automake
|
||||||
|
|
||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
roles:
|
||||||
|
- role: standard-test-source
|
||||||
|
|
||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
tasks:
|
||||||
|
- name: Copy spec file to remote machine
|
||||||
|
copy:
|
||||||
|
src: "{{ playbook_dir }}/../cscope.spec"
|
||||||
|
dest: /tmp/cscope.spec
|
||||||
|
|
||||||
|
- name: Install build deps
|
||||||
|
shell: dnf -y build-dep /tmp/cscope.spec
|
||||||
|
|
||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tests:
|
||||||
|
- smoke
|
||||||
|
required_packages:
|
||||||
|
- autoconf
|
||||||
|
- automake
|
||||||
|
- pkgconf-pkg-config
|
||||||
|
- ncurses-devel
|
||||||
|
- flex
|
||||||
|
- bison
|
||||||
|
- m4
|
||||||
|
- gcc
|
||||||
|
- sed
|
||||||
|
- make
|
Loading…
Reference in New Issue
Block a user