blob: cdd7150d7993fdecd2aa8334625cb879c4459b19 [file] [log] [blame]
Tobin Ehlis12d4c6a2015-08-31 12:42:38 -06001# Powershell script for running the vktrace trace/replay auto test
2# To run this test:
3# cd <this-dir>
Jon Ashburn49ba27b2016-01-31 10:22:36 -07004# powershell C:\src\LoaderAndTools\vktracereplay.ps1 [-Debug]
Tobin Ehlis12d4c6a2015-08-31 12:42:38 -06005
6if ($args[0] -eq "-Debug") {
7 $dPath = "Debug"
8} else {
9 $dPath = "Release"
10}
11
12write-host -background black -foreground green "[ RUN ] " -nonewline
13write-host "vkvalidatelayerdoc.ps1: Validate layer documentation"
14
15# Run doc validation from project root dir
16push-location ..\..
17
18# Validate that layer documentation matches source contents
19python vk_layer_documentation_generate.py --validate
20
21# Report result based on exit code
22if (!$LASTEXITCODE) {
23 write-host -background black -foreground green "[ PASSED ] " -nonewline;
24 $exitstatus = 0
25} else {
26 echo 'Validation of vk_validation_layer_details.md failed'
27 write-host -background black -foreground red "[ FAILED ] " -nonewline;
28 echo '1 FAILED TEST'
29 $exitstatus = 1
30}
31
32pop-location
33exit $exitstatus