-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathtest.ps1
More file actions
27 lines (22 loc) · 789 Bytes
/
Copy pathtest.ps1
File metadata and controls
27 lines (22 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$cfdgs = Get-ChildItem -Path '.\input\tests\*.cfdg'
$cfdgs += Get-ChildItem -Path '.\input\*.cfdg'
if ( -Not (Test-Path "output"))
{
New-Item -Path "output" -ItemType Directory
}
foreach ($cfdg in $cfdgs) {
Write-Host -NoNewLine -foregroundcolor white $cfdg.Name
.\Release\ARM64\ContextFreeCLI.exe /q /P $cfdg .\output\test.png
if ($LastExitCode) {
Write-Host -foregroundcolor red " fail"
} else {
Write-Host -foregroundcolor green " pass"
}
}
Write-Host -NoNewLine -foregroundcolor white "mtree.cfdg movie"
.\Release\ARM64\ContextFreeCLI.exe /a150 /s640x480 //quicktime /vffgh input\mtree.cfdg output\mtree.mov
if ($LastExitCode) {
Write-Host -foregroundcolor red " fail"
} else {
Write-Host -foregroundcolor green " pass"
}