Skip to content

Execution of all tests ensured even if one fails

Makefile for tests is modified, not to stop on tests that throw an execution error while executing the latex compilation command (pdflatex, xelatex or lualatex). The tests throwing and non-zero code error are printed as "FAILED" with an extended message "(execution error)" Some optional variables are defined in Makefile, to ignore the tests that hang without throwing an exception. This way, all the tests, except those ignored because they hang, are executed and the result is properly printed onto the console. I think this is better than stopping at the first test that fails to execute.

I also modified slightly some test ".tex" files and related reference ".ref" files, to:

  • make them compatible with the xmoodle2latex tool.
  • make them compatible with newer versions of image management tools (ImageMagick and GhostScript) that produced some tests to fail even if the result was ok after importing the xml into moodle. I'm using Ubuntu 22.04 and the default packages.

Merge request reports