Skip to content

Commit c2b4e5e

Browse files
committed
scripts:Update doc validation scripts
Migrate doc validation scripts to use the stats script based on the database file instead of the old details doc.
1 parent 4ca2b06 commit c2b4e5e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/_vkvalidatelayerdoc.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Powershell script for running the layer validation details doc validator
1+
# Powershell script for running validating the layer database file
22
# To run this test:
33
# From a Windows powershell:
44
# cd C:\src\Vulkan-LoaderAndValidationLayers\build\tests
@@ -13,18 +13,18 @@ if ($args[0] -eq "-Debug") {
1313
write-host -background black -foreground green "[ RUN ] " -nonewline
1414
write-host "vkvalidatelayerdoc.ps1: Validate layer documentation"
1515

16-
# Run doc validation from project root dir
17-
push-location ..\..
16+
# Run doc validation from project layers dir
17+
push-location ..\..\layers
1818

1919
# Validate that layer documentation matches source contents
20-
python scripts\vk_layer_documentation_generate.py --validate
20+
python vk_validation_stats.py
2121

2222
# Report result based on exit code
2323
if (!$LASTEXITCODE) {
2424
write-host -background black -foreground green "[ PASSED ] " -nonewline;
2525
$exitstatus = 0
2626
} else {
27-
echo 'Validation of vk_validation_layer_details.md failed'
27+
echo 'Validation of vk_validation_error_database.txt failed'
2828
write-host -background black -foreground red "[ FAILED ] " -nonewline;
2929
echo '1 FAILED TEST'
3030
$exitstatus = 1

tests/vkvalidatelayerdoc.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ fi
1212

1313
printf "$GREEN[ RUN ]$NC $0\n"
1414

15-
# Run doc validation from project root dir
16-
pushd ../..
15+
# Run doc validation from project layers dir
16+
pushd ../../layers
1717

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
2020

2121
RES=$?
2222

@@ -25,7 +25,7 @@ if [ $RES -eq 0 ] ; then
2525
printf "$GREEN[ PASSED ]$NC 1 test\n"
2626
exit 0
2727
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"
2929
printf "$RED[ FAILED ]$NC 1 test\n"
3030
printf "1 TEST FAILED\n"
3131
exit 1

0 commit comments

Comments
 (0)