Handle optional tests

Remove them if they are disabled to prevent from an accidental use.
f38
Petr Písař 5 years ago
parent 2e3da71188
commit 9d8104bf95

@ -92,6 +92,11 @@ perl -i -ne 'print $_ unless m{^sqlite}' MANIFEST
# Remove bundled modules # Remove bundled modules
rm -rf inc rm -rf inc
perl -i -ne 'print $_ unless m{^inc/}' MANIFEST perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
# Handle optional tests
%if !%{with perl_DBD_SQLite_enables_optional_test}
rm t/virtual_table/21_perldata_charinfo.t
perl -i -ne 'print $_ unless m{^t/virtual_table/21_perldata_charinfo\.t}' MANIFEST
%endif
%build %build
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1

Loading…
Cancel
Save