mediawiki-extensions-Math/maintenance/downloadMoreTexVCtests.sh
physikerwelt c89f8ad142 Add space after operatorname to extended tests
* in Ie374524dbdf6a753063172fb88e6f60e91b9212e parsing
  of operatorname was simplified. However, in this
  process a space after operatorname was introduced.
* This adjusts the reference files pointing to the
  latest release on zendo
https://doi.org/10.5281/zenodo.14209690

Bug: T375274
Change-Id: I29a797cdf16088d704c343dd66cc7bfafc519cd9
2024-11-25 12:29:38 +00:00

23 lines
1.1 KiB
Bash
Executable file

#!/bin/bash
# Downloads files which contain input and supposed output for some tests of WikiTexVC 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/WikiTexVC/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/WikiTexVC/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/WikiTexVC/en-wiki-formulae-good-reference.json
URL=https://zenodo.org/records/14209690/files/normalized.json
curl $URL -o $FILEPATH