2022-10-20 19:07:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-11-24 09:30:05 +00:00
|
|
|
# Downloads files which contain input and supposed output for some tests of WikiTexVC within this extension.
|
2022-10-20 19:07:58 +00:00
|
|
|
|
|
|
|
# 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
|
2023-11-24 09:30:05 +00:00
|
|
|
FILEPATH=../tests/phpunit/unit/WikiTexVC/en-wiki-formulae-good.json
|
2022-12-06 07:56:37 +00:00
|
|
|
URL=https://raw.githubusercontent.com/wikimedia/mediawiki-services-texvcjs/ca9b33d3b5081ae78829af4c65322becb4f4a216/test/en-wiki-formulae-good.json
|
2022-10-20 19:07:58 +00:00
|
|
|
curl $URL -o $FILEPATH
|
|
|
|
|
|
|
|
# Downloads the file containing for chem-regression tests to the testfolder
|
2023-11-24 09:30:05 +00:00
|
|
|
FILEPATH=../tests/phpunit/unit/WikiTexVC/chem-regression.json
|
2022-10-20 19:07:58 +00:00
|
|
|
URL=https://raw.githubusercontent.com/wikimedia/mediawiki-services-texvcjs/fb56991251b8889b554fc42ef9fe4825bc35d0ed/test/chem-regression.json
|
|
|
|
curl $URL -o $FILEPATH
|
2022-12-30 12:25:34 +00:00
|
|
|
|
|
|
|
# Downloads the file containing reference renderings for all english wikipedia chem-regression tests to the testfolder
|
2023-11-24 09:30:05 +00:00
|
|
|
FILEPATH=../tests/phpunit/unit/WikiTexVC/en-wiki-formulae-good-reference.json
|
2024-11-23 12:59:54 +00:00
|
|
|
URL=https://zenodo.org/records/14209690/files/normalized.json
|
2022-12-30 12:25:34 +00:00
|
|
|
curl $URL -o $FILEPATH
|