mirror of
https://github.com/libyal/libexe
synced 2026-06-08 15:29:55 +00:00
24 lines
658 B
PowerShell
24 lines
658 B
PowerShell
# Script that synchronizes the local test data
|
|
#
|
|
# Version: 20230709
|
|
|
|
$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://github.com/libyal/testdata/blob/main/pe_coff/${TestFile}?raw=true"
|
|
|
|
Invoke-WebRequest -Uri ${Url} -OutFile "${TestInputDirectory}\${TestSet}\${TestFile}"
|
|
}
|
|
|