Sha256: 1e16e2d4be4bc5ff6d4d71524ac7147117c43c7049f6b10a839f3a5452b36e0a

Contents?: true

Size: 1.5 KB

Versions: 5

Compression:

Stored size: 1.5 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
  if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
    make memcheck
  fi
fi

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mathematical-1.6.20 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.18 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.14 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.13 ext/mathematical/mtex2MML/script/cibuild
mathematical-1.6.12 ext/mathematical/mtex2MML/script/cibuild