From 3aca4310699e61253dd4644a999792f74d309f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rimas=20Misevi=C4=8Dius?= Date: Tue, 7 May 2019 22:48:24 +0300 Subject: [PATCH] Create Windows BAT script to download URL web-platform-tests --- test/download-wpt.bat | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/download-wpt.bat diff --git a/test/download-wpt.bat b/test/download-wpt.bat new file mode 100644 index 0000000..1bae203 --- /dev/null +++ b/test/download-wpt.bat @@ -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 +)