Compare commits

...

No commits in common. "imports/c9/pcm-202211-3.el9" and "c8s" have entirely different histories.

8 changed files with 55 additions and 3 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
SOURCES/pcm-202211.tar.gz /pcm-202107.tar.gz
/pcm-202211.tar.gz

View File

@ -1 +0,0 @@
d22461c61423ffa55d8c8a69be311bf2bb0a00e0 SOURCES/pcm-202211.tar.gz

11
gating.yaml Normal file
View File

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

View File

@ -1,6 +1,6 @@
Name: pcm Name: pcm
Version: 202211 Version: 202211
Release: 3%{?dist} Release: 0%{?dist}
Summary: Intel(r) Performance Counter Monitor Summary: Intel(r) Performance Counter Monitor
License: BSD License: BSD
Url: https://github.com/intel/pcm Url: https://github.com/intel/pcm
@ -58,6 +58,9 @@ rm -rf %{buildroot}/usr/share/doc/PCM/*.txt
%{_datadir}/%{name}/ %{_datadir}/%{name}/
%changelog %changelog
* Wed Jan 11 2023 Prarit Bhargava <prarit@redhat.com> 202211-0
- Import into RHEL8
* Thu Nov 24 2022 Roman Dementiev <roman.dementiev@intel.com> 0.1-10 * Thu Nov 24 2022 Roman Dementiev <roman.dementiev@intel.com> 0.1-10
- Update to new upstream repository location and the name - Update to new upstream repository location and the name
- Update to version 202211 - Update to version 202211

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (pcm-202211.tar.gz) = 7c45b322222c936641a4da7db8ebb00253d6500b68232b511c141031e33b0a74e18907c7914b03eab3ef14910ed3e548755c60c92f0c86e80ea022270defd570

12
tests/run_tests.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# fail the whole test set if any of the command pipelines fail
set -ex
# when running this in 1minutetip the PATH must be specified to execute
# in the local directory.
echo "Setting path to local directory"
PATH=$PATH:$(pwd)
# simple version test
version.sh

9
tests/tests.yml Normal file
View File

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: . # switch to subfolder. This parameter is REQUIRED, use `dir: .` for current folder
run: ./run_tests.sh # this is your test command, its exit code is the outcome of the test

16
tests/version.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
#
# Thermald is a systemd unit file that requires specific hardware and
# firmware. As such it is difficult to test in an automated fashion.
# fail the whole test if any of the command pipelines below fails
set -ex
rpmversion=$(rpm -q --queryformat '%{VERSION}' pcm)
if [ "$rpmversion" == "package pcm is not installed" ]; then
echo "pcm package not installed"
exit 1
fi
# if we get here, it's OK