• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2#set -x
3if [ -t 1 ] ; then
4    RED='\033[0;31m'
5    GREEN='\033[0;32m'
6    NC='\033[0m' # No Color
7else
8    RED=''
9    GREEN=''
10    NC=''
11fi
12
13printf "$GREEN[ RUN      ]$NC $0\n"
14
15# Run doc validation from project root dir
16pushd ../..
17
18# Validate that layer documentation matches source contents
19./vk_layer_documentation_generate.py --validate
20
21RES=$?
22
23
24if [ $RES -eq 0 ] ; then
25   printf "$GREEN[  PASSED  ]$NC 1 test\n"
26   exit 0
27else
28   printf "$RED[  FAILED  ]$NC Validation of vk_validation_layer_details.md failed\n"
29   printf "$RED[  FAILED  ]$NC 1 test\n"
30   printf "1 TEST FAILED\n"
31   exit 1
32fi
33# Restore original directory
34popd
35