| 1 | #!/bin/bash |
| 2 | |
| 3 | # Downloads files which contain input and supposed output for some tests of WikiTexVC within this extension. |
| 4 | |
| 5 | # The tests are deactivated by default. They can be found and activated with a flag in: |
| 6 | # - EnWikiFormulaeTest.php |
| 7 | # - ChemRegressionTest.php |
| 8 | |
| 9 | # Downloads the file containing all english wikipedia formula to the testfolder |
| 10 | FILEPATH=../tests/phpunit/unit/WikiTexVC/en-wiki-formulae-good.json |
| 11 | URL=https://raw.githubusercontent.com/wikimedia/mediawiki-services-texvcjs/ca9b33d3b5081ae78829af4c65322becb4f4a216/test/en-wiki-formulae-good.json |
| 12 | curl $URL -o $FILEPATH |
| 13 | |
| 14 | # Downloads the file containing for chem-regression tests to the testfolder |
| 15 | FILEPATH=../tests/phpunit/unit/WikiTexVC/chem-regression.json |
| 16 | URL=https://raw.githubusercontent.com/wikimedia/mediawiki-services-texvcjs/fb56991251b8889b554fc42ef9fe4825bc35d0ed/test/chem-regression.json |
| 17 | curl $URL -o $FILEPATH |
| 18 | |
| 19 | # Downloads the file containing reference renderings for all english wikipedia chem-regression tests to the testfolder |
| 20 | FILEPATH=../tests/phpunit/unit/WikiTexVC/en-wiki-formulae-good-reference.json |
| 21 | URL=https://zenodo.org/records/14209690/files/normalized.json |
| 22 | curl $URL -o $FILEPATH |