Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 4c964485 rédigé par R's avatar R
Parcourir les fichiers

Test script path corrections.

parent 908dd36a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -22,6 +22,13 @@ then ...@@ -22,6 +22,13 @@ then
exit 0 exit 0
fi fi
# RZ: Debug
#echo ""
#echo "[ lg2mml ]"
#echo " LgEvalDir $LgEvalDir"
#echo " PATH $PATH"
#echo " PYTHONPATH $PYTHONPATH"
BNAME=`basename $1 .lg` BNAME=`basename $1 .lg`
python $LgEvalDir/src/lg2txt.py $1 $LgEvalDir/translate/mathMLMap.csv $LgEvalDir/translate/infty_to_crohme.csv > $BNAME.mml python $LgEvalDir/src/lg2txt.py $1 $LgEvalDir/translate/mathMLMap.csv $LgEvalDir/translate/infty_to_crohme.csv > $BNAME.mml
#!/bin/bash #!/bin/bash
echo "Running test for issue 2 (inside relationship mapping)..."
pip install beautifulsoup4==4.9.2 pip install beautifulsoup4==4.9.2
# RZ -- need to set LgEvalDir and PYTHONPATH for
# this to work.
#
# NOTE: These definitions are lost after the
# script ends (they are associated only with the
# invoked process that the shell program runs in)
#
# NOTE 2: You *must* use export to define a variable
# that you want to be visible in child processes
# (e.g., where lg2mml is called below)
export LgEvalDir=`cd ../..; pwd`
export PYTHONPATH=`cd ../../../; pwd`/
export PATH=$LgEvalDir/bin:$PATH
echo " LgEvalDir $LgEvalDir"
echo " PYTHONPATH $PYTHONPATH"
echo " PATH $PATH"
TEST_FILES=`ls ../../tests/sqrt_lg/*.lg` TEST_FILES=`ls ../../tests/sqrt_lg/*.lg`
for file in $TEST_FILES for file in $TEST_FILES
do do
../lg2mml ../../tests/sqrt_lg/$file lg2mml ../../tests/sqrt_lg/$file
filename=`basename $file .lg` filename=`basename $file .lg`
echo "MathML generated: "$filename".mml" echo MathML generated: "$filename".mml
done done
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter