Sha256: b0d8d715f280ef97803e162ed1605b5f5c27a396a74cf60ef934e93798d0a599

Contents?: true

Size: 1.43 KB

Versions: 12

Compression:

Stored size: 1.43 KB

Contents

#!/bin/sh

mkdir -p build
cd build
cmake ..
make
ctest -V

echo 'inline'
echo '\sin y'     | ./mtex2MML --inline | grep "display='inline'" || exit 1
echo ''

echo 'display'
echo '\sin y'     | ./mtex2MML --display | grep "display='block'" || exit 1
echo ''

echo 'inline print-mtex'
echo '\sin y'     | ./mtex2MML --inline --print-mtex | grep '$\\sin y\$'|| exit 1
echo ''

echo 'display print-mtex'
echo '\sin y'     | ./mtex2MML --display --print-mtex | grep '$$\\sin y\$\$' || exit 1
echo ''

echo 'dollar'
echo '$\sin y$'   | ./mtex2MML | grep "display='inline'" || exit 1

echo 'double dollar'
echo '$$\sin y$$' | ./mtex2MML | grep "display='block'" || exit 1

echo 'parens'
echo '\(\sin y\)' | ./mtex2MML | grep "display='inline'" || exit 1

echo 'brackets'
echo '\[\sin y\]' | ./mtex2MML | grep "display='block'" || exit 1

echo 'dollar use-dollar'
echo '$\sin y$'   | ./mtex2MML --use-dollar | grep "display='inline'" || exit 1

echo 'double dollar use-double'
echo '$$\sin y$$' | ./mtex2MML --use-double | grep "display='block'" || exit 1

echo 'parens use-parens'
echo '\(\sin y\)' | ./mtex2MML --use-parens | grep "display='inline'" || exit 1

echo 'brackets use-brackets'
echo '\[\sin y\]' | ./mtex2MML --use-brackets | grep "display='block'" || exit 1

echo 'env use-env'
echo '\\begin{align}3x + 9y &=  -12\\end{align}' | ./mtex2MML --use-env | grep "display='block'" || exit 1

echo 'DONE with command check'

if [ -n "$CI" ]
then
  make memcheck
fi

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mathematical-1.6.11 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.10 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.9 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.8 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.7 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.6 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.5 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.4 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.3 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.2 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.1 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.0 ext/mathematical/mtex2MML/script/cibuild