Enable more tests

This commit is contained in:
Mamoru TASAKA 2019-09-11 14:54:49 +09:00
parent 6301e5169d
commit ba30adbfac

View File

@ -3,7 +3,7 @@
Name: rubygem-%{gem_name}
Version: 1.17.0
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Fast, pure-Ruby Markdown-superset converter
License: MIT
@ -16,6 +16,24 @@ BuildRequires: rubygem(prawn)
BuildRequires: rubygem(prawn-table)
BuildRequires: rubygem(rake)
BuildRequires: rubygem(rouge)
# FIXME
# Add the below when available
# BuildRequires: rubygem(stringex)
# Recommends: rubygem(stringex)
# Some additional dependency for check
BuildRequires: tidy
BuildRequires: tex
BuildRequires: tex(acronym.sty)
BuildRequires: tex(amssymb.sty)
BuildRequires: tex(amsmath.sty)
BuildRequires: tex(amsthm.sty)
BuildRequires: tex(amsfonts.sty)
BuildRequires: tex(utf8x.def)
BuildRequires: tex-ec
# And currently:
# Skipping MathjaxNode tests as MathjaxNode is not available
# Skipping SsKaTeX tests as SsKaTeX is not available.
# Looks like some npm related packages are needed to enable more tests, not doing for now
Requires: ruby(release)
Requires: ruby(rubygems)
BuildArch: noarch
@ -71,6 +89,15 @@ LANG=C.UTF-8
pushd .%{gem_instdir}
STRINGEX_STATUS="$(ruby -e "begin ; require 'stringex' ; puts 1 ; rescue LoadError ; puts 0 ; end")"
if [ $STRINGEX_STATUS == 0 ] ; then
sed -i test/testcases/block/04_header/with_auto_ids.options \
-e '\@transliterated_header_ids@s|true|false|'
sed -i \
test/testcases/block/04_header/with_auto_ids.* \
-e '\@[Tr]ransliterated@d'
fi
# Some tests seem to be failing, need investigating
rake test || true
popd
@ -94,6 +121,9 @@ popd
%doc %{gem_instdir}/doc/
%changelog
* Wed Sep 11 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.0-6
- Enable more tests
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild