[rtems-central commit] validation: Add group for performance measurements

Sebastian Huber sebh at rtems.org
Tue May 9 13:45:27 UTC 2023


Module:    rtems-central
Branch:    master
Commit:    0f9dd56d61b3fb24f13b702689882006158a965c
Changeset: http://git.rtems.org/rtems-central/commit/?id=0f9dd56d61b3fb24f13b702689882006158a965c

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri May  5 14:41:20 2023 +0200

validation: Add group for performance measurements

---

 rtemsspec/tests/test_validation.py | 16 ++++++++++++++++
 rtemsspec/validation.py            |  3 +++
 2 files changed, 19 insertions(+)

diff --git a/rtemsspec/tests/test_validation.py b/rtemsspec/tests/test_validation.py
index 8a3f9f92..376f92a4 100644
--- a/rtemsspec/tests/test_validation.py
+++ b/rtemsspec/tests/test_validation.py
@@ -1128,6 +1128,12 @@ static void Rtm_Cleanup( Rtm_Context *ctx )
   /* Cleanup code */
 }
 
+/**
+ * @defgroup Rpr spec:/rpr
+ *
+ * @{
+ */
+
 /**
  * @brief Body brief.
  *
@@ -1186,7 +1192,15 @@ static void Rpr_Cleanup( Rtm_Context *ctx )
   /* Cleanup code */
 }
 
+/** @} */
+
 #if defined(FOOBAR)
+/**
+ * @defgroup Rpr2 spec:/rpr2
+ *
+ * @{
+ */
+
 /**
  * @brief Body brief.
  *
@@ -1204,6 +1218,8 @@ static void Rpr2_Body_Wrap( void *arg )
   ctx = arg;
   Rpr2_Body( ctx );
 }
+
+/** @} */
 #endif
 
 /**
diff --git a/rtemsspec/validation.py b/rtemsspec/validation.py
index 48ed2a9c..ec307e2c 100644
--- a/rtemsspec/validation.py
+++ b/rtemsspec/validation.py
@@ -936,6 +936,8 @@ class _RuntimeMeasurementTestItem(_TestItem):
                 requests.add(if_exp)
                 content.add(if_exp)
                 content.gap = False
+            with content.defgroup_block(item.ident, item.spec):
+                content.add("@{")
             _add_call_method(requests, prepare)
             name = req.add_support_method(content,
                                           "test-prepare",
@@ -970,6 +972,7 @@ class _RuntimeMeasurementTestItem(_TestItem):
                                           do_wrap=False)
             _add_call_method(requests, name)
             _add_call_method(requests, cleanup)
+            content.add("/** @} */")
             if use_enabled_by:
                 requests.append("#endif")
                 content.append("#endif")



More information about the vc mailing list