File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
- # Powershell script for running the layer validation details doc validator
1
+ # Powershell script for running validating the layer database file
2
2
# To run this test:
3
3
# From a Windows powershell:
4
4
# cd C:\src\Vulkan-LoaderAndValidationLayers\build\tests
@@ -13,18 +13,18 @@ if ($args[0] -eq "-Debug") {
13
13
write-host - background black - foreground green " [ RUN ] " - nonewline
14
14
write-host " vkvalidatelayerdoc.ps1: Validate layer documentation"
15
15
16
- # Run doc validation from project root dir
17
- push-location ..\..
16
+ # Run doc validation from project layers dir
17
+ push-location ..\..\layers
18
18
19
19
# Validate that layer documentation matches source contents
20
- python scripts\vk_layer_documentation_generate .py -- validate
20
+ python vk_validation_stats .py
21
21
22
22
# Report result based on exit code
23
23
if (! $LASTEXITCODE ) {
24
24
write-host - background black - foreground green " [ PASSED ] " - nonewline;
25
25
$exitstatus = 0
26
26
} else {
27
- echo ' Validation of vk_validation_layer_details.md failed'
27
+ echo ' Validation of vk_validation_error_database.txt failed'
28
28
write-host - background black - foreground red " [ FAILED ] " - nonewline;
29
29
echo ' 1 FAILED TEST'
30
30
$exitstatus = 1
Original file line number Diff line number Diff line change 12
12
13
13
printf " $GREEN [ RUN ]$NC $0 \n"
14
14
15
- # Run doc validation from project root dir
16
- pushd ../..
15
+ # Run doc validation from project layers dir
16
+ pushd ../../layers
17
17
18
- # Validate that layer documentation matches source contents
19
- ./scripts/vk_layer_documentation_generate.py --validate
18
+ # Validate that layer database matches source contents
19
+ python vk_validation_stats.py
20
20
21
21
RES=$?
22
22
@@ -25,7 +25,7 @@ if [ $RES -eq 0 ] ; then
25
25
printf " $GREEN [ PASSED ]$NC 1 test\n"
26
26
exit 0
27
27
else
28
- printf " $RED [ FAILED ]$NC Validation of vk_validation_layer_details.md failed\n"
28
+ printf " $RED [ FAILED ]$NC Validation of vk_validation_error_database.txt failed\n"
29
29
printf " $RED [ FAILED ]$NC 1 test\n"
30
30
printf " 1 TEST FAILED\n"
31
31
exit 1
You can’t perform that action at this time.
0 commit comments