From 20a1c48a91f870e6a13fc15edb466cf905a5ef43 Mon Sep 17 00:00:00 2001 From: Thomas Nilefalk Date: Thu, 23 Jan 2025 15:45:29 +0100 Subject: [PATCH] [tests] Add the magic script for generate_cxrefs test --- tests/test_generate_cxrefs/extract_vApplClass.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tests/test_generate_cxrefs/extract_vApplClass.sh diff --git a/tests/test_generate_cxrefs/extract_vApplClass.sh b/tests/test_generate_cxrefs/extract_vApplClass.sh new file mode 100755 index 00000000..71b7c6ea --- /dev/null +++ b/tests/test_generate_cxrefs/extract_vApplClass.sh @@ -0,0 +1,13 @@ +#!/bin/bash +awk ' + /^\S/ { + if (section ~ /vApplClass/) { + printf "%s", section + exit + } + section = "" # Börja en ny sektion + } + { + section = section $0 "\n" + } +' $1