diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml index eb7c84f..805e877 100644 --- a/gating.yaml +++ b/gating.yaml @@ -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} diff --git a/perl-Convert-ASN1.spec b/perl-Convert-ASN1.spec index cdf205d..ce3ee09 100644 --- a/perl-Convert-ASN1.spec +++ b/perl-Convert-ASN1.spec @@ -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 diff --git a/plans/sanity.fmf b/plans/sanity.fmf new file mode 100644 index 0000000..a72ded4 --- /dev/null +++ b/plans/sanity.fmf @@ -0,0 +1,5 @@ +summary: Sanity tests +discover: + how: fmf +execute: + how: tmt diff --git a/tests/upstream-tests.fmf b/tests/upstream-tests.fmf new file mode 100644 index 0000000..7c9ebb6 --- /dev/null +++ b/tests/upstream-tests.fmf @@ -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'