Update tests

This commit is contained in:
Jitka Plesnikova 2021-05-04 07:52:51 +02:00
parent fca0b72f49
commit 2f18d06ec9

View File

@ -9,7 +9,7 @@
Name: perl-DBD-MariaDB
Version: 1.21
Release: 11%{?dist}
Release: 12%{?dist}
Summary: MariaDB and MySQL driver for the Perl5 Database Interface (DBI)
License: GPL+ or Artistic
URL: https://metacpan.org/release/DBD-MariaDB/
@ -110,11 +110,7 @@ cp %{SOURCE1} %{SOURCE2} t/
# Help file to recognise the Perl scripts and normalize shebangs
for F in t/*.t t/*.pl; do
if head -1 "$F" | grep -q -e '^#!.*perl\b' ; then
perl -MConfig -pi -e 's|^#!.*perl\b|$Config{startperl}|' "$F"
else
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F"
fi
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
@ -174,6 +170,9 @@ make test %{?with_perl_DBD_MariaDB_enables_leak_test:EXTENDED_TESTING=1}
%{_libexecdir}/%{name}
%changelog
* Tue May 04 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.21-12
- Update tests
* Fri Mar 12 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.21-11
- Package tests