summaryrefslogtreecommitdiffstats
path: root/generate_membench.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-29 09:15:04 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-29 16:45:46 +0200
commitaa6a1f46102ccf67359be53d9fcbf6b50f6deb30 (patch)
tree8a2d1bb34473fc9759d0ccd07f0a3f6ef0cf2bf6 /generate_membench.py
parentspec: Link general glossary to to root requirement (diff)
downloadrtems-central-aa6a1f46102ccf67359be53d9fcbf6b50f6deb30.tar.bz2
spec: Add test suite name attribute
Diffstat (limited to 'generate_membench.py')
-rwxr-xr-xgenerate_membench.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/generate_membench.py b/generate_membench.py
index b7ac1889..a80fc654 100755
--- a/generate_membench.py
+++ b/generate_membench.py
@@ -32,6 +32,7 @@ import sys
import textwrap
from typing import NamedTuple, List, Optional
+from rtemsspec.content import to_camel_case
from rtemsspec.items import ItemCache
from rtemsspec.membench import generate
from rtemsspec.sphinxcontent import SphinxContent, SphinxMapper
@@ -487,6 +488,7 @@ type: requirement
""")
val_spec = f"spec/{test.path}/val/mem-{test.name}.yml"
brief = _text(f"{_TEST} {test.topic}.")
+ test_suite_name = to_camel_case(f"Mem {test.name}")
with open(val_spec, "w") as out:
out.write(f"""SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
@@ -514,6 +516,7 @@ test-description: {_block(test.desc)}
test-includes:
- rtems.h
test-local-includes: []
+test-suite-name: {test_suite_name}
test-target: {source}
type: test-suite
""")