Skip to content

Commit

Permalink
Create Windows BAT script to download URL web-platform-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev committed May 9, 2019
1 parent c02a1c9 commit 3aca431
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/download-wpt.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@echo off

REM the directory path of this file
set p=%~dp0

REM Commit hash of web-platform-tests (wpt)
REM
REM 1. Go to https://github.com/web-platform-tests/wpt/tree/master/url
REM 2. Find "Latest commit" text and click link next to it.
REM 3. Copy hash from URL
set HASH=8553d30dd590715a63273e90da1951b8b0b37672

for %%f in (setters_tests.json toascii.json urltestdata.json) do (
curl -o %p%\wpt\%%f https://raw.githubusercontent.com/web-platform-tests/wpt/%HASH%/url/resources/%%f
)

0 comments on commit 3aca431

Please sign in to comment.