Resolves: RHEL-9512 - Add FMF
This commit is contained in:
parent
5125c6cf8f
commit
9a68f8e0c8
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
@ -3,4 +3,5 @@ product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
||||
|
||||
@ -41,6 +41,7 @@ BuildRequires: perl(bytes)
|
||||
BuildRequires: perl(File::Temp)
|
||||
BuildRequires: perl(IO::Socket)
|
||||
BuildRequires: perl(Math::BigInt) >= 1.997
|
||||
BuildRequires: perl(Test::More) >= 0.90
|
||||
%if %{with perl_Convert_ASN1_enables_optional_test}
|
||||
# Optional tests:
|
||||
BuildRequires: perl(Data::Dumper)
|
||||
@ -78,7 +79,12 @@ with "%{_libexecdir}/%{name}/test".
|
||||
%patch -P0 -p1
|
||||
%patch -P1 -p1
|
||||
%patch -P2 -p1
|
||||
chmod +x t/*.t
|
||||
|
||||
# Help file to recognise the Perl scripts
|
||||
for F in t/*.t; do
|
||||
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
||||
chmod +x "$F"
|
||||
done
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
@ -97,6 +103,7 @@ chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
|
||||
|
||||
%check
|
||||
unset YYDEBUG
|
||||
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
||||
make test
|
||||
|
||||
%files
|
||||
|
||||
5
plans/sanity.fmf
Normal file
5
plans/sanity.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
summary: Sanity tests
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
8
tests/upstream-tests.fmf
Normal file
8
tests/upstream-tests.fmf
Normal file
@ -0,0 +1,8 @@
|
||||
summary: Upstream tests
|
||||
component: perl-Convert-ASN1
|
||||
require: perl-Convert-ASN1-tests
|
||||
test: /usr/libexec/perl-Convert-ASN1/test
|
||||
tag:
|
||||
- Tier1
|
||||
- rhel-buildroot
|
||||
tier: '1'
|
||||
Loading…
Reference in New Issue
Block a user