Compare commits
No commits in common. "c10" and "c10s" have entirely different histories.
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
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}
|
||||
7
plans/main.fmf
Normal file
7
plans/main.fmf
Normal file
@ -0,0 +1,7 @@
|
||||
summary: qemu tests
|
||||
description:
|
||||
Test qemu
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
@ -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
8
tests/main.fmf
Normal 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
28
tests/smoke.sh
Executable 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
|
||||
Loading…
Reference in New Issue
Block a user