mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-04 20:18:35 +00:00
0aecf2ab10
* Currently the regression test only tests if all formulae that passed the test before still pass the test * This change also compares the output Change-Id: Ib667de2e7e512cf7d045e28a19c6a5f7d994dfc6
23 lines
1.1 KiB
Bash
Executable file
23 lines
1.1 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# Downloads files which contain input and supposed output for some tests of TexVC within this extension.
|
|
|
|
# The tests are deactivated by default. They can be found and activated with a flag in:
|
|
# - EnWikiFormulaeTest.php
|
|
# - ChemRegressionTest.php
|
|
|
|
# Downloads the file containing all english wikipedia formula to the testfolder
|
|
FILEPATH=../tests/phpunit/unit/TexVC/en-wiki-formulae-good.json
|
|
URL=https://raw.githubusercontent.com/wikimedia/mediawiki-services-texvcjs/ca9b33d3b5081ae78829af4c65322becb4f4a216/test/en-wiki-formulae-good.json
|
|
curl $URL -o $FILEPATH
|
|
|
|
# Downloads the file containing for chem-regression tests to the testfolder
|
|
FILEPATH=../tests/phpunit/unit/TexVC/chem-regression.json
|
|
URL=https://raw.githubusercontent.com/wikimedia/mediawiki-services-texvcjs/fb56991251b8889b554fc42ef9fe4825bc35d0ed/test/chem-regression.json
|
|
curl $URL -o $FILEPATH
|
|
|
|
# Downloads the file containing reference renderings for all english wikipedia chem-regression tests to the testfolder
|
|
FILEPATH=../tests/phpunit/unit/TexVC/en-wiki-formulae-good-reference.json
|
|
URL=https://zenodo.org/record/7494266/files/normalized.json?download=1
|
|
curl $URL -o $FILEPATH
|