-
Notifications
You must be signed in to change notification settings - Fork 11
/
.appveyor.yml
73 lines (56 loc) · 2.2 KB
/
.appveyor.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
image: Visual Studio 2019
configuration:
- Release
platform:
- x64
build:
project: Project\MSVC2019\RAWcooked.sln
verbosity: quiet
before_test:
- ps: |
git clone https://github.com/MediaArea/RAWCooked-RegressionTestingFiles-Light.git Project/GNU/CLI/test/TestingFiles
Invoke-WebRequest https://www.mediaarea.net/download/snapshots/binary/ffmpeg/latest/FFmpeg_Bin_Latest_Windows_Static_x64.zip -OutFile FFmpeg_Bin_Latest_Windows_Static_x64.zip
Expand-Archive FFmpeg_Bin_Latest_Windows_Static_x64.zip -DestinationPath .
Copy-Item bin/ffmpeg.exe -Destination Project/GNU/CLI/ffmpeg
Copy-Item bin/ffmpeg.exe -Destination Project/GNU/CLI/ffmpeg.exe
Copy-Item Project/MSVC2019/x64/Release/RAWcooked.exe -Destination Project/GNU/CLI/rawcooked
test_script:
- ps: |
$fail = false
function Run-Test {
$name = $args[0]
Write-Host "Running test: $name"
Add-AppveyorTest -Name $name -Framework custom -FileName $name.sh -Outcome Running
$measure = Measure-Command { Invoke-Expression "wsl test/`$name.sh ; `$result = `$?" -OutVariable output -ErrorVariable errors }
Write-Host "StdOut:"
Write-Host ($output | Out-String)
Write-Host "StdErr:"
Write-Host ($errors | Out-String)
if ($result) {
Update-AppveyorTest -Name $name -Framework custom -FileName $name.sh -Duration $measure.TotalMilliseconds -StdOut ($output | Out-String) -StdErr ($errors | Out-String) -Outcome Passed
}
else {
Update-AppveyorTest -Name $name -Framework custom -FileName $name.sh -Duration $measure.TotalMilliseconds -StdOut ($output | Out-String) -StdErr ($errors | Out-String) -Outcome Failed
Set-Variable -scope Script -Name "fail" -Value true
}
return $result
}
Set-Location Project/GNU/CLI
$env:Path += ";$(Get-Location)"
Run-Test test1
Run-Test test1b
Run-Test test2
Run-Test test3
Run-Test pcm
Run-Test paddingbits
Run-Test version
Run-Test notfound
Run-Test check
Run-Test legacy
Run-Test multiple
Run-Test gaps
Run-Test framerate
Run-Test increasingdigitcount
if ($fail -eq $true) {
Exit $fail
}