aboutsummaryrefslogtreecommitdiff
path: root/src/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/reflow-tests/update-expectations
blob: ebfcf247785a2a5f19119b88fbbf89f65138a62c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/bash
#
# Copyright 2023 The Khronos Group Inc.
#
# SPDX-License-Identifier: Apache-2.0

echo "Note: Run 'pytest test_reflow.py' first to generate results/"

for result_file in results/*/src-*.adoc; do
  src_file=$(basename $result_file)
  test_name=${src_file%.adoc}
  test_name=${test_name#src-}
  tag=$(basename $(dirname $result_file))

  cp -f "$result_file" "expect-$test_name-$tag.adoc"
done