mediawiki-extensions-Math/maintenance/downloadMoreTexVCtests.sh
Moritz Schubotz (physikerwelt) cbd67195f5
Update positive regression tests
Adapt test running structure to the new structure for good tests
coming from texvcjs.

Change-Id: I330bb3f8f0c6f379d624986827f96946af1d4c12
2022-12-06 10:59:39 +01:00

18 lines
878 B
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