Compare commits

..

No commits in common. "c10" and "c10s" have entirely different histories.
c10 ... c10s

6 changed files with 51 additions and 17 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

6
gating.yaml Normal file
View 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}

7
plans/main.fmf Normal file
View File

@ -0,0 +1,7 @@
summary: qemu tests
description:
Test qemu
discover:
how: fmf
execute:
how: tmt

View File

@ -1,13 +1,3 @@
## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 3;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
Name: sgx-rpm-macros
Version: 1
Release: %autorelease
@ -34,10 +24,4 @@ cp %{SOURCE0} %{buildroot}/%{_rpmmacrodir}/
%{_rpmmacrodir}/macros.sgx
%changelog
## START: Generated by rpmautospec
* Fri Mar 14 2025 Daniel P. Berrangé <berrange@redhat.com> - 1-2
- Add basic gating smoke test
* Thu Mar 13 2025 Daniel P. Berrangé <berrange@redhat.com> - 1-1
- Initial import
## END: Generated by rpmautospec
%autochangelog

8
tests/main.fmf Normal file
View File

@ -0,0 +1,8 @@
summary: Basic smoke test
require:
- rpm-build
- sgx-rpm-macros
/smoke:
test: ./smoke.sh

28
tests/smoke.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/sh
set -e
function evalmacro {
name=$1
dir=$(rpmbuild --eval "%$name")
if test "$dir" == "%$name"
then
echo "FAIL: $name is undefined"
exit 1
fi
if test -z "$dir"
then
echo "FAIL: $name is empty"
exit 1
fi
echo "PASS: $name is $dir"
}
evalmacro sgx_prefix
evalmacro sgx_libdir
evalmacro sgx_includedir
exit 0