xref: /third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ci/check_undefined
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ci/
1e5c31af7Sopenharmony_ci#!/bin/bash
2e5c31af7Sopenharmony_ci
3e5c31af7Sopenharmony_ci# Copyright 2020-2024 The Khronos Group Inc.
4e5c31af7Sopenharmony_ci# SPDX-License-Identifier: Apache-2.0
5e5c31af7Sopenharmony_ci
6e5c31af7Sopenharmony_ci# scripts/ci/check_undefined
7e5c31af7Sopenharmony_ci# Check for non-tagged 'undefined' in spec sources.
8e5c31af7Sopenharmony_ci# Skip appendices/VK* files, which are non-normative.
9e5c31af7Sopenharmony_ci# Ideally we would skip NOTES too, but that would require parsing.
10e5c31af7Sopenharmony_ci
11e5c31af7Sopenharmony_ciundefined=/tmp/undefined
12e5c31af7Sopenharmony_cils chapters/*.adoc chapters/*/*.adoc appendices/[A-UW-Za-z]*.adoc | \
13e5c31af7Sopenharmony_ci    xargs egrep -E '(^|[[:space:]])undefined($|[^:])' > $undefined
14e5c31af7Sopenharmony_ciif test `cat $undefined | wc -l` -gt 0 ; then
15e5c31af7Sopenharmony_ci    echo "*** Found un-tagged uses of 'undefined'"
16e5c31af7Sopenharmony_ci    cat $undefined
17e5c31af7Sopenharmony_ci    rm $undefined
18e5c31af7Sopenharmony_ci    exit 1
19e5c31af7Sopenharmony_cielse
20e5c31af7Sopenharmony_ci    rm $undefined
21e5c31af7Sopenharmony_ci    exit 0
22e5c31af7Sopenharmony_cifi
23

Indexes created Thu Nov 07 10:32:03 CST 2024