Files
2026-06-01 21:59:03 +02:00

26 lines
734 B
PowerShell

# Script that synchronizes the local test data
#
# Version: 20260531
$Repository = "libyal/testdata"
$TestDataPath = "pe_coff"
$TestSet = "public"
$TestInputDirectory = "tests\input"
$TestFiles = "nowrc_test.dll wrc_test.dll"
If (-Not (Test-Path ${TestInputDirectory}))
{
New-Item -Name ${TestInputDirectory} -ItemType "directory" | Out-Null
}
If (-Not (Test-Path "${TestInputDirectory}\${TestSet}"))
{
New-Item -Name "${TestInputDirectory}\${TestSet}" -ItemType "directory" | Out-Null
}
ForEach ($TestFile in ${TestFiles} -split " ")
{
$Url = "https://raw.githubusercontent.com/${Repository}/refs/heads/main/${TestDataPath}/${TestFile}"
Invoke-WebRequest -Uri ${Url} -OutFile "${TestInputDirectory}\${TestSet}\${TestFile}"
}