Skip to content

MatrixRegressionTestingSetupMac

TJTrimble edited this page Sep 17, 2017 · 4 revisions

Matrix Regression Testing Setup

This page describes setting up a the Grammar Matrix Regression Testing suite on a Mac (~ Mac OS 10.12) (See MatrixDevTop, MatrixRegressionTesting). This page is under development and should not be considered useable. For instructions on the stable setup for Ubuntu, see MatrixRegressionTestingSetup

Mac setup instructions (under development)

NOTE: This probably won't work and may not be needed 1. Get necessary additions for the LOGON tree (including 32-bit compatibility modules):

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libjpeg62 libx11-6:i386 libxext6:i386 libfontconfig1:i386
sudo apt-get install libxpm4 libxt6 libxmu6 libxft2 libjpeg62 libpng12-0
sudo apt-get install subversion
sudo apt-get install emacs
sudo apt-get install gcc

NOTE: Probably need to replace this with Woodley's code 1. Download the LOGON tree (typically into ~/delphin/):

cd ~/delphin/
svn checkout http://svn.emmtee.net/trunk logon

1. Download ACE (AceTop)

1. Download the matrix:

cd ~/delphin/
svn co svn://lemur.ling.washington.edu/shared/matrix/(trunk|branches/my_branch)

NOTE: Probably don't need LOGON variables here 1. Set the proper variables in ~/.bashrc (Make sure to customize the variable values to the location where these packages are actually stored on your system, and the proper branch if applicable) (also, make sure to reload your ~/.bashrc by either logging out/in, restarting your terminal, or source ~/.bashrc:

export CUSTOMIZATIONROOT=~/delphin/matrix/trunk/gmcs # gmcs for the branch you’re working on
export ACEROOT=~/delphin/ace/ # directory containing ACE binary
export DELPHINHOME=~/delphin # installation location for DELPHIN stuff
# include LOGON-specific settings
export LOGONROOT=~/delphin/logon # installation location for LOGON
if [ -f ${LOGONROOT}/dot.bashrc ]; then
    . ${LOGONROOT}/dot.bashrc
fi
# Add ACE to PATH # Not necessary, but nice
export PATH=$PATH:$ACEROOT

1. reload .bashrc, using either source ~/.bashrc, quitting and re-opening the terminal, or logging out and back in.

1. Download the latest ISO table from SIL to your Grammar Matrix root directory (e.g. ~/delphin/matrix/trunk/ )

wget http://www-01.sil.org/iso639-3/iso-639-3_20120206.tab -O iso.tab

1. You should now be able to run the regression tests (MatrixRegressionTesting):

cd ~/delphin/matrix/trunk/
python matrix.py -C gmcs/ r
Clone this wiki locally