From 8f9104328ac115633e921e5d32f92d0dc428d60d Mon Sep 17 00:00:00 2001 From: Adrian Pop Date: Sat, 23 Nov 2024 01:34:00 +0100 Subject: [PATCH] display the FMI tool version in the library HTML report --- library.html.tpl | 3 ++- test.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/library.html.tpl b/library.html.tpl index 4f43d50..2cc608e 100644 --- a/library.html.tpl +++ b/library.html.tpl @@ -34,7 +34,8 @@ Test started: #timeStart#
Total time taken: #totalTime#
System info: #sysInfo#

OpenModelica Version: #omcVersion#
-#fmi#
+#fmiToolVersion# +#fmi# OpenModelicaLibraryTesting Changes
#OpenModelicaLibraryTesting#

Tested Library: #fileName# #libraryVersionRevision#

diff --git a/test.py b/test.py
index e2c870e..e643fcf 100755
--- a/test.py
+++ b/test.py
@@ -1075,6 +1075,7 @@ def cpu_name():
   replacements = (
     (u"#sysInfo#", html.escape(sysInfo)),
     (u"#omcVersion#", html.escape(omc_version)),
+    (u"#fmiVersion#", ("

"+html.escape("FMI tool: %s" % fmisimulatorversion)+"

") if fmisimulatorversion else ""), (u"#fmi#", ("

"+html.escape("FMI version: %s" % conf.get("fmi"))+"

") if conf.get("fmi") else ""), (u"#optlevel#", html.escape(conf.get("optlevel")) if (canChangeOptLevel and conf.get("optlevel")) else "Tool default"), (u"#timeStart#", html.escape(time.strftime('%Y-%m-%d %H:%M:%S', start_as_time))),