testium-hil 0.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. testium_hil-0.4.2/LICENSE +315 -0
  2. testium_hil-0.4.2/PKG-INFO +47 -0
  3. testium_hil-0.4.2/README.md +18 -0
  4. testium_hil-0.4.2/VERSION +1 -0
  5. testium_hil-0.4.2/pyproject.toml +64 -0
  6. testium_hil-0.4.2/setup.cfg +4 -0
  7. testium_hil-0.4.2/testium/__init__.py +149 -0
  8. testium_hil-0.4.2/testium/__main__.py +20 -0
  9. testium_hil-0.4.2/testium/api/__init__.py +0 -0
  10. testium_hil-0.4.2/testium/api/console.py +753 -0
  11. testium_hil-0.4.2/testium/api/console_ssh.py +581 -0
  12. testium_hil-0.4.2/testium/api/raw_tcp_console.py +80 -0
  13. testium_hil-0.4.2/testium/api/runtime_plot.py +381 -0
  14. testium_hil-0.4.2/testium/api/termconsole.py +156 -0
  15. testium_hil-0.4.2/testium/api/testium.py +325 -0
  16. testium_hil-0.4.2/testium/interpreter/__init__.py +0 -0
  17. testium_hil-0.4.2/testium/interpreter/batch.py +124 -0
  18. testium_hil-0.4.2/testium/interpreter/process.py +506 -0
  19. testium_hil-0.4.2/testium/interpreter/test_items/__init__.py +0 -0
  20. testium_hil-0.4.2/testium/interpreter/test_items/dialog_choices_files/__init__.py +0 -0
  21. testium_hil-0.4.2/testium/interpreter/test_items/dialog_choices_files/choices_dialog.py +264 -0
  22. testium_hil-0.4.2/testium/interpreter/test_items/dialog_choices_files/choices_dialog_win.py +66 -0
  23. testium_hil-0.4.2/testium/interpreter/test_items/dialog_env.py +17 -0
  24. testium_hil-0.4.2/testium/interpreter/test_items/dialog_image_files/__init__.py +0 -0
  25. testium_hil-0.4.2/testium/interpreter/test_items/dialog_image_files/dialog_image.py +77 -0
  26. testium_hil-0.4.2/testium/interpreter/test_items/dialog_image_files/dialog_image_win.py +59 -0
  27. testium_hil-0.4.2/testium/interpreter/test_items/dialog_msg_files/__init__.py +0 -0
  28. testium_hil-0.4.2/testium/interpreter/test_items/dialog_msg_files/msg_dialog.py +39 -0
  29. testium_hil-0.4.2/testium/interpreter/test_items/dialog_note_files/__init__.py +0 -0
  30. testium_hil-0.4.2/testium/interpreter/test_items/dialog_note_files/dialog_note_win.py +64 -0
  31. testium_hil-0.4.2/testium/interpreter/test_items/dialog_note_files/test_dialog.py +64 -0
  32. testium_hil-0.4.2/testium/interpreter/test_items/dialog_question_files/__init__.py +0 -0
  33. testium_hil-0.4.2/testium/interpreter/test_items/dialog_question_files/question_dialog.py +43 -0
  34. testium_hil-0.4.2/testium/interpreter/test_items/dialog_sleep_files/__init__.py +0 -0
  35. testium_hil-0.4.2/testium/interpreter/test_items/dialog_sleep_files/dialog_sleep.py +83 -0
  36. testium_hil-0.4.2/testium/interpreter/test_items/dialog_sleep_files/dialog_sleep_win.py +121 -0
  37. testium_hil-0.4.2/testium/interpreter/test_items/dialog_value_files/__init__.py +0 -0
  38. testium_hil-0.4.2/testium/interpreter/test_items/dialog_value_files/dialog_value_win.py +56 -0
  39. testium_hil-0.4.2/testium/interpreter/test_items/dialog_value_files/test_dialog.py +69 -0
  40. testium_hil-0.4.2/testium/interpreter/test_items/item_actions/__init__.py +151 -0
  41. testium_hil-0.4.2/testium/interpreter/test_items/item_actions/action.py +45 -0
  42. testium_hil-0.4.2/testium/interpreter/test_items/test_item.py +645 -0
  43. testium_hil-0.4.2/testium/interpreter/test_items/test_item_check.py +62 -0
  44. testium_hil-0.4.2/testium/interpreter/test_items/test_item_choices_dialog.py +106 -0
  45. testium_hil-0.4.2/testium/interpreter/test_items/test_item_console.py +501 -0
  46. testium_hil-0.4.2/testium/interpreter/test_items/test_item_container.py +37 -0
  47. testium_hil-0.4.2/testium/interpreter/test_items/test_item_cycle.py +309 -0
  48. testium_hil-0.4.2/testium/interpreter/test_items/test_item_dialog_base.py +58 -0
  49. testium_hil-0.4.2/testium/interpreter/test_items/test_item_git.py +46 -0
  50. testium_hil-0.4.2/testium/interpreter/test_items/test_item_group.py +84 -0
  51. testium_hil-0.4.2/testium/interpreter/test_items/test_item_image_dialog.py +68 -0
  52. testium_hil-0.4.2/testium/interpreter/test_items/test_item_json_rpc/__init__.py +353 -0
  53. testium_hil-0.4.2/testium/interpreter/test_items/test_item_json_rpc/jsonrpc_adapters.py +482 -0
  54. testium_hil-0.4.2/testium/interpreter/test_items/test_item_let.py +54 -0
  55. testium_hil-0.4.2/testium/interpreter/test_items/test_item_lua_func.py +138 -0
  56. testium_hil-0.4.2/testium/interpreter/test_items/test_item_msg_dialog.py +56 -0
  57. testium_hil-0.4.2/testium/interpreter/test_items/test_item_note_dialog.py +87 -0
  58. testium_hil-0.4.2/testium/interpreter/test_items/test_item_parallel.py +225 -0
  59. testium_hil-0.4.2/testium/interpreter/test_items/test_item_py_func.py +156 -0
  60. testium_hil-0.4.2/testium/interpreter/test_items/test_item_pytest.py +408 -0
  61. testium_hil-0.4.2/testium/interpreter/test_items/test_item_question_dialog.py +67 -0
  62. testium_hil-0.4.2/testium/interpreter/test_items/test_item_report.py +57 -0
  63. testium_hil-0.4.2/testium/interpreter/test_items/test_item_run.py +209 -0
  64. testium_hil-0.4.2/testium/interpreter/test_items/test_item_runtime_plot.py +283 -0
  65. testium_hil-0.4.2/testium/interpreter/test_items/test_item_sleep.py +96 -0
  66. testium_hil-0.4.2/testium/interpreter/test_items/test_item_tested_references.py +91 -0
  67. testium_hil-0.4.2/testium/interpreter/test_items/test_item_unittest.py +239 -0
  68. testium_hil-0.4.2/testium/interpreter/test_items/test_item_value_dialog.py +88 -0
  69. testium_hil-0.4.2/testium/interpreter/test_items/test_result.py +83 -0
  70. testium_hil-0.4.2/testium/interpreter/test_items/tested_references_files/__init__.py +0 -0
  71. testium_hil-0.4.2/testium/interpreter/test_items/tested_references_files/tested_refs_dialog.py +109 -0
  72. testium_hil-0.4.2/testium/interpreter/test_items/tested_references_files/tested_refs_win.py +79 -0
  73. testium_hil-0.4.2/testium/interpreter/test_report/__init__.py +0 -0
  74. testium_hil-0.4.2/testium/interpreter/test_report/report_export_html.py +82 -0
  75. testium_hil-0.4.2/testium/interpreter/test_report/report_export_json.py +18 -0
  76. testium_hil-0.4.2/testium/interpreter/test_report/report_export_junit.py +39 -0
  77. testium_hil-0.4.2/testium/interpreter/test_report/report_export_txt.py +111 -0
  78. testium_hil-0.4.2/testium/interpreter/test_report/report_interface.py +7 -0
  79. testium_hil-0.4.2/testium/interpreter/test_report/test_report.py +568 -0
  80. testium_hil-0.4.2/testium/interpreter/test_set.py +704 -0
  81. testium_hil-0.4.2/testium/interpreter/utils/__init__.py +13 -0
  82. testium_hil-0.4.2/testium/interpreter/utils/api_srv.py +27 -0
  83. testium_hil-0.4.2/testium/interpreter/utils/bins.py +426 -0
  84. testium_hil-0.4.2/testium/interpreter/utils/constants.py +142 -0
  85. testium_hil-0.4.2/testium/interpreter/utils/eval.py +103 -0
  86. testium_hil-0.4.2/testium/interpreter/utils/globdict.py +79 -0
  87. testium_hil-0.4.2/testium/interpreter/utils/icons.py +12 -0
  88. testium_hil-0.4.2/testium/interpreter/utils/include.py +106 -0
  89. testium_hil-0.4.2/testium/interpreter/utils/lua_func_exec.py +48 -0
  90. testium_hil-0.4.2/testium/interpreter/utils/lua_process.py +185 -0
  91. testium_hil-0.4.2/testium/interpreter/utils/modules.py +12 -0
  92. testium_hil-0.4.2/testium/interpreter/utils/param_decl.py +194 -0
  93. testium_hil-0.4.2/testium/interpreter/utils/params.py +472 -0
  94. testium_hil-0.4.2/testium/interpreter/utils/paths.py +67 -0
  95. testium_hil-0.4.2/testium/interpreter/utils/periodic_timer.py +32 -0
  96. testium_hil-0.4.2/testium/interpreter/utils/proc_drain.py +106 -0
  97. testium_hil-0.4.2/testium/interpreter/utils/py_eval.py +54 -0
  98. testium_hil-0.4.2/testium/interpreter/utils/py_func_exec.py +57 -0
  99. testium_hil-0.4.2/testium/interpreter/utils/py_process.py +157 -0
  100. testium_hil-0.4.2/testium/interpreter/utils/settings.py +174 -0
  101. testium_hil-0.4.2/testium/interpreter/utils/step_ctrl.py +93 -0
  102. testium_hil-0.4.2/testium/interpreter/utils/template.py +92 -0
  103. testium_hil-0.4.2/testium/interpreter/utils/termlog.py +206 -0
  104. testium_hil-0.4.2/testium/interpreter/utils/test_ctrl.py +56 -0
  105. testium_hil-0.4.2/testium/interpreter/utils/test_init.py +312 -0
  106. testium_hil-0.4.2/testium/interpreter/utils/version.py +226 -0
  107. testium_hil-0.4.2/testium/interpreter/utils/yaml_load.py +37 -0
  108. testium_hil-0.4.2/testium/lsp/__init__.py +16 -0
  109. testium_hil-0.4.2/testium/lsp/__main__.py +6 -0
  110. testium_hil-0.4.2/testium/lsp/schema.py +202 -0
  111. testium_hil-0.4.2/testium/lsp/server.py +354 -0
  112. testium_hil-0.4.2/testium/lua_func/__init__.py +0 -0
  113. testium_hil-0.4.2/testium/lua_func/handle.lua +91 -0
  114. testium_hil-0.4.2/testium/lua_func/json-rpc.lua +132 -0
  115. testium_hil-0.4.2/testium/lua_func/main.lua +108 -0
  116. testium_hil-0.4.2/testium/lua_func/tm.lua +29 -0
  117. testium_hil-0.4.2/testium/lua_func/utils.lua +71 -0
  118. testium_hil-0.4.2/testium/main_win/__init__.py +0 -0
  119. testium_hil-0.4.2/testium/main_win/about_win/__init__.py +0 -0
  120. testium_hil-0.4.2/testium/main_win/about_win/about_win.py +84 -0
  121. testium_hil-0.4.2/testium/main_win/desktop_integration.py +95 -0
  122. testium_hil-0.4.2/testium/main_win/f1_win/__init__.py +0 -0
  123. testium_hil-0.4.2/testium/main_win/f1_win/d_f1_win.py +315 -0
  124. testium_hil-0.4.2/testium/main_win/f1_win/f1_win_core.py +184 -0
  125. testium_hil-0.4.2/testium/main_win/file_dialog.py +21 -0
  126. testium_hil-0.4.2/testium/main_win/preference_win/__init__.py +0 -0
  127. testium_hil-0.4.2/testium/main_win/preference_win/preference_core_win.py +394 -0
  128. testium_hil-0.4.2/testium/main_win/preference_win/preference_win.py +116 -0
  129. testium_hil-0.4.2/testium/main_win/resources/about_win_rc.py +1838 -0
  130. testium_hil-0.4.2/testium/main_win/resources/f1_win_rc.py +1844 -0
  131. testium_hil-0.4.2/testium/main_win/resources/testium_core_win_rc.py +17830 -0
  132. testium_hil-0.4.2/testium/main_win/test_controller_service.py +93 -0
  133. testium_hil-0.4.2/testium/main_win/test_file_manager.py +294 -0
  134. testium_hil-0.4.2/testium/main_win/test_run/__init__.py +0 -0
  135. testium_hil-0.4.2/testium/main_win/test_run/outlog.py +41 -0
  136. testium_hil-0.4.2/testium/main_win/test_run/test_run.py +46 -0
  137. testium_hil-0.4.2/testium/main_win/test_run/thread_output.py +28 -0
  138. testium_hil-0.4.2/testium/main_win/test_runner.py +298 -0
  139. testium_hil-0.4.2/testium/main_win/test_tree.py +498 -0
  140. testium_hil-0.4.2/testium/main_win/test_tree_items/__init__.py +0 -0
  141. testium_hil-0.4.2/testium/main_win/test_tree_items/common.py +19 -0
  142. testium_hil-0.4.2/testium/main_win/test_tree_items/test_tree_item.py +299 -0
  143. testium_hil-0.4.2/testium/main_win/testium_core_win.py +576 -0
  144. testium_hil-0.4.2/testium/main_win/testium_win.py +995 -0
  145. testium_hil-0.4.2/testium/main_win/text_log.py +75 -0
  146. testium_hil-0.4.2/testium/main_win/text_log_highlighter.py +172 -0
  147. testium_hil-0.4.2/testium/py_func/__init__.py +59 -0
  148. testium_hil-0.4.2/testium/py_func/__main__.py +27 -0
  149. testium_hil-0.4.2/testium/py_func/func_call.py +120 -0
  150. testium_hil-0.4.2/testium/py_func/handle.py +117 -0
  151. testium_hil-0.4.2/testium/py_func/tm.py +150 -0
  152. testium_hil-0.4.2/testium/runtime/__init__.py +5 -0
  153. testium_hil-0.4.2/testium/runtime/api.py +15 -0
  154. testium_hil-0.4.2/testium/runtime/export_worker.py +67 -0
  155. testium_hil-0.4.2/testium/runtime/jrpc.py +530 -0
  156. testium_hil-0.4.2/testium/runtime/stdout_redirect.py +145 -0
  157. testium_hil-0.4.2/testium/runtime/string_queue.py +57 -0
  158. testium_hil-0.4.2/testium/runtime/testium_report.py +197 -0
  159. testium_hil-0.4.2/testium/runtime/tum_except.py +109 -0
  160. testium_hil-0.4.2/testium_hil.egg-info/PKG-INFO +47 -0
  161. testium_hil-0.4.2/testium_hil.egg-info/SOURCES.txt +165 -0
  162. testium_hil-0.4.2/testium_hil.egg-info/dependency_links.txt +1 -0
  163. testium_hil-0.4.2/testium_hil.egg-info/entry_points.txt +2 -0
  164. testium_hil-0.4.2/testium_hil.egg-info/requires.txt +15 -0
  165. testium_hil-0.4.2/testium_hil.egg-info/top_level.txt +3 -0
  166. testium_hil-0.4.2/testium_report.py +8 -0
@@ -0,0 +1,315 @@
1
+ Copyright (c) 2025-2026 François Dausseur
2
+
3
+ Licensed under the EUPL
4
+
5
+
6
+ EUROPEAN UNION PUBLIC LICENCE v. 1.2
7
+ EUPL © the European Union 2007, 2016
8
+
9
+ This European Union Public Licence (the 'EUPL') applies to the Work (as
10
+ defined below) which is provided under the terms of this Licence. Any use of
11
+ the Work, other than as authorised under this Licence is prohibited (to the
12
+ extent such use is covered by a right of the copyright holder of the Work).
13
+
14
+ The Work is provided under the terms of this Licence when the Licensor (as
15
+ defined below) has placed the following notice immediately following the
16
+ copyright notice for the Work:
17
+
18
+ Licensed under the EUPL
19
+
20
+ or has expressed by any other means his willingness to license under the EUPL.
21
+
22
+
23
+ 1. Definitions
24
+
25
+ In this Licence, the following terms have the following meaning:
26
+
27
+ - 'The Licence': this Licence.
28
+
29
+ - 'The Original Work': the work or software distributed or communicated by the
30
+ Licensor under this Licence, available as Source Code and also as Executable
31
+ Code as the case may be.
32
+
33
+ - 'Derivative Works': the works or software that could be created by the
34
+ Licensee, based upon the Original Work or modifications thereof. This Licence
35
+ does not define the extent of modification or dependence on the Original
36
+ Work required in order to classify a work as a Derivative Work; this extent
37
+ is determined by copyright law applicable in the country mentioned in
38
+ Article 15.
39
+
40
+ - 'The Work': the Original Work or its Derivative Works.
41
+
42
+ - 'The Source Code': the human-readable form of the Work which is the most
43
+ convenient for people to study and modify.
44
+
45
+ - 'The Executable Code': any code which has generally been compiled and which
46
+ is meant to be interpreted by a computer as a program.
47
+
48
+ - 'The Licensor': the natural or legal person that distributes or communicates
49
+ the Work under the Licence.
50
+
51
+ - 'Contributor(s)': any natural or legal person who modifies the Work under
52
+ the Licence, or otherwise contributes to the creation of a Derivative Work.
53
+
54
+ - 'The Licensee' or 'You': any natural or legal person who makes any usage of
55
+ the Work under the terms of the Licence.
56
+
57
+ - 'Distribution' or 'Communication': any act of selling, giving, lending,
58
+ renting, distributing, communicating, transmitting, or otherwise making
59
+ available, online or offline, copies of the Work or providing access to its
60
+ essential functionalities at the disposal of any other natural or legal
61
+ person.
62
+
63
+
64
+ 2. Scope of the rights granted by the Licence
65
+
66
+ The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
67
+ sublicensable licence to do the following, for the duration of copyright
68
+ vested in the Original Work:
69
+
70
+ - use the Work in any circumstance and for all usage,
71
+ - reproduce the Work,
72
+ - modify the Work, and make Derivative Works based upon the Work,
73
+ - communicate to the public, including the right to make available or display
74
+ the Work or copies thereof to the public and perform publicly, as the case
75
+ may be, the Work,
76
+ - distribute the Work or copies thereof,
77
+ - lend and rent the Work or copies thereof,
78
+ - sublicense rights in the Work or copies thereof.
79
+
80
+ Those rights can be exercised on any media, supports and formats, whether now
81
+ known or later invented, as far as the applicable law permits so.
82
+
83
+ In the countries where moral rights apply, the Licensor waives his right to
84
+ exercise his moral right to the extent allowed by law in order to make
85
+ effective the licence of the economic rights here above listed.
86
+
87
+ The Licensor grants to the Licensee royalty-free, non-exclusive usage rights
88
+ to any patents held by the Licensor, to the extent necessary to make use of
89
+ the rights granted on the Work under this Licence.
90
+
91
+
92
+ 3. Communication of the Source Code
93
+
94
+ The Licensor may provide the Work either in its Source Code form, or as
95
+ Executable Code. If the Work is provided as Executable Code, the Licensor
96
+ provides in addition a machine-readable copy of the Source Code of the Work
97
+ along with each copy of the Work that the Licensor distributes or indicates,
98
+ in a notice following the copyright notice attached to the Work, a repository
99
+ where the Source Code is easily and freely accessible for as long as the
100
+ Licensor continues to distribute or communicate the Work.
101
+
102
+
103
+ 4. Limitations on copyright
104
+
105
+ Nothing in this Licence is intended to deprive the Licensee of the benefits
106
+ from any exception or limitation to the exclusive rights of the rights owners
107
+ in the Work, of the exhaustion of those rights or of other applicable
108
+ limitations thereto.
109
+
110
+
111
+ 5. Obligations of the Licensee
112
+
113
+ The grant of the rights mentioned above is subject to some restrictions and
114
+ obligations imposed on the Licensee. Those obligations are the following:
115
+
116
+ Attribution right: The Licensee shall keep intact all copyright, patent or
117
+ trademarks notices and all notices that refer to the Licence and to the
118
+ disclaimer of warranties. The Licensee must include a copy of such notices
119
+ and a copy of the Licence with every copy of the Work he/she distributes or
120
+ communicates. The Licensee must cause any Derivative Work to carry prominent
121
+ notices stating that the Work has been modified and the date of modification.
122
+
123
+ Copyleft clause: If the Licensee distributes or communicates copies of the
124
+ Original Works or Derivative Works, this Distribution or Communication will
125
+ be done under the terms of this Licence or of a later version of this Licence
126
+ unless the Original Work is expressly distributed only under this version of
127
+ the Licence — for example by communicating 'EUPL v. 1.2 only'. The Licensee
128
+ (becoming Licensor) cannot offer or impose any additional terms or conditions
129
+ on the Work or Derivative Work that alter or restrict the terms of the
130
+ Licence.
131
+
132
+ Compatibility clause: If the Licensee Distributes or Communicates Derivative
133
+ Works or copies thereof based upon both the Work and another work licensed
134
+ under a Compatible Licence, this Distribution or Communication can be done
135
+ under the terms of this Compatible Licence. For the sake of this clause,
136
+ 'Compatible Licence' refers to the licences listed in the appendix attached
137
+ to this Licence. Should the Licensee's obligations under the Compatible
138
+ Licence conflict with his/her obligations under this Licence, the obligations
139
+ of the Compatible Licence shall prevail.
140
+
141
+ Provision of Source Code: When distributing or communicating copies of the
142
+ Work, the Licensee will provide a machine-readable copy of the Source Code or
143
+ indicate a repository where this Source will be easily and freely available
144
+ for as long as the Licensee continues to distribute or communicate the Work.
145
+
146
+ Legal Protection: This Licence does not grant permission to use the trade
147
+ names, trademarks, service marks, or names of the Licensor, except as
148
+ required for reasonable and customary use in describing the origin of the
149
+ Work and reproducing the content of the copyright notice.
150
+
151
+
152
+ 6. Chain of Authorship
153
+
154
+ The original Licensor warrants that the copyright in the Original Work
155
+ granted hereunder is owned by him/her or licensed to him/her and that he/she
156
+ has the power and authority to grant the Licence.
157
+
158
+ Each Contributor warrants that the copyright in the modifications he/she
159
+ brings to the Work are owned by him/her or licensed to him/her and that
160
+ he/she has the power and authority to grant the Licence.
161
+
162
+ Each time You accept the Licence, the original Licensor and subsequent
163
+ Contributors grant You a licence to their contributions to the Work, under
164
+ the terms of this Licence.
165
+
166
+
167
+ 7. Disclaimer of Warranty
168
+
169
+ The Work is a work in progress, which is continuously improved by numerous
170
+ Contributors. It is not a finished work and may therefore contain defects or
171
+ 'bugs' inherent to this type of development.
172
+
173
+ For the above reason, the Work is provided under the Licence on an 'as is'
174
+ basis and without warranties of any kind concerning the Work, including
175
+ without limitation merchantability, fitness for a particular purpose, absence
176
+ of defects or errors, accuracy, non-infringement of intellectual property
177
+ rights other than copyright as stated in Article 6 of this Licence.
178
+
179
+ This disclaimer of warranty is an essential part of the Licence and a
180
+ condition for the grant of any rights to the Work.
181
+
182
+
183
+ 8. Disclaimer of Liability
184
+
185
+ Except in the cases of wilful misconduct or damages directly caused to
186
+ natural persons, the Licensor will in no event be liable for any direct or
187
+ indirect, material or moral, damages of any kind, arising out of the Licence
188
+ or of the use of the Work, including without limitation, damages for loss of
189
+ goodwill, work stoppage, computer failure or malfunction, loss of data or any
190
+ commercial damage, even if the Licensor has been advised of the possibility
191
+ of such damage. However, the Licensor will be liable under statutory product
192
+ liability laws as far such laws apply to the Work.
193
+
194
+
195
+ 9. Additional agreements
196
+
197
+ While distributing the Work, You may choose to conclude an additional
198
+ agreement, defining obligations or services consistent with this Licence.
199
+ However, if accepting obligations, You may act only on your own behalf and on
200
+ your sole responsibility, not on behalf of the original Licensor or any other
201
+ Contributor, and only if You agree to indemnify, defend, and hold each
202
+ Contributor harmless for any liability incurred by, or claims asserted
203
+ against such Contributor by the fact You have accepted any warranty or
204
+ additional liability.
205
+
206
+
207
+ 10. Acceptance of the Licence
208
+
209
+ The provisions of this Licence can be accepted by clicking on an icon 'I
210
+ agree' placed under the bottom of a window displaying the text of this
211
+ Licence or by affirming consent in any other similar way, in accordance with
212
+ the rules of applicable law. Clicking on that icon indicates your clear and
213
+ irrevocable acceptance of this Licence and all of its terms and conditions.
214
+
215
+ Similarly, you irrevocably accept this Licence and all of its terms and
216
+ conditions by exercising any rights granted to You by Article 2 of this
217
+ Licence, such as the use of the Work, the creation by You of a Derivative
218
+ Work or the Distribution or Communication by You of the Work or copies
219
+ thereof.
220
+
221
+
222
+ 11. Information to the public
223
+
224
+ In case of any Distribution or Communication of the Work by means of
225
+ electronic communication by You (for example, by offering to download the
226
+ Work from a remote location) the distribution channel or media (for example,
227
+ a website) must at least provide to the public the information requested by
228
+ the applicable law regarding the Licensor, the Licence and the way it may be
229
+ accessible, concluded, stored and reproduced by the Licensee.
230
+
231
+
232
+ 12. Termination of the Licence
233
+
234
+ The Licence and the rights granted hereunder will terminate automatically
235
+ upon any breach by the Licensee of the terms of the Licence.
236
+
237
+ Such a termination will not terminate the licences of any person who has
238
+ received the Work from the Licensee under the Licence, provided such persons
239
+ remain in full compliance with the Licence.
240
+
241
+
242
+ 13. Miscellaneous
243
+
244
+ Without prejudice of Article 9 above, the Licence represents the complete
245
+ agreement between the Parties as to the Work.
246
+
247
+ If any provision of the Licence is invalid or unenforceable under applicable
248
+ law, this will not affect the validity or enforceability of the Licence as a
249
+ whole. Such provision will be construed or reformed so as necessary to make
250
+ it valid and enforceable.
251
+
252
+ The European Commission may publish other linguistic versions or new versions
253
+ of this Licence or updated versions of the Appendix, so far this is required
254
+ and reasonable, without reducing the scope of the rights granted by the
255
+ Licence. New versions of the Licence will be published with a unique version
256
+ number.
257
+
258
+ All linguistic versions of this Licence, approved by the European Commission,
259
+ have identical value. Parties can take advantage of the linguistic version of
260
+ their choice.
261
+
262
+
263
+ 14. Jurisdiction
264
+
265
+ Without prejudice to specific agreement between parties,
266
+
267
+ - any litigation resulting from the interpretation of this License, arising
268
+ between the European Union institutions, bodies, offices or agencies, as a
269
+ Licensor, and any Licensee, will be subject to the jurisdiction of the
270
+ Court of Justice of the European Union, as laid down in article 272 of the
271
+ Treaty on the Functioning of the European Union,
272
+
273
+ - any litigation arising between other parties and resulting from the
274
+ interpretation of this License, will be subject to the exclusive
275
+ jurisdiction of the competent court where the Licensor resides or conducts
276
+ its primary business.
277
+
278
+
279
+ 15. Applicable Law
280
+
281
+ Without prejudice to specific agreement between parties,
282
+
283
+ - this Licence shall be governed by the law of the European Union Member
284
+ State where the Licensor has his seat, resides or has his registered
285
+ office,
286
+
287
+ - this licence shall be governed by Belgian law if the Licensor has no seat,
288
+ residence or registered office inside a European Union Member State.
289
+
290
+
291
+ Appendix
292
+
293
+
294
+ 'Compatible Licences' according to Article 5 EUPL are:
295
+
296
+ - GNU General Public License (GPL) v. 2, v. 3
297
+ - GNU Affero General Public License (AGPL) v. 3
298
+ - Open Software License (OSL) v. 2.1, v. 3.0
299
+ - Eclipse Public License (EPL) v. 1.0
300
+ - CeCILL v. 2.0, v. 2.1
301
+ - Mozilla Public Licence (MPL) v. 2
302
+ - GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
303
+ - Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
304
+ works other than software
305
+ - European Union Public Licence (EUPL) v. 1.1, v. 1.2
306
+ - Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong
307
+ Reciprocity (LiLiQ-R+).
308
+
309
+ The European Commission may update this Appendix to later versions of the
310
+ above licences without producing a new version of the EUPL, as long as they
311
+ provide the rights granted in Article 2 of this Licence and protect the
312
+ covered Source Code from exclusive appropriation.
313
+
314
+ All other changes or additions to this Appendix require the production of a
315
+ new EUPL version.
@@ -0,0 +1,47 @@
1
+ Metadata-Version: 2.4
2
+ Name: testium-hil
3
+ Version: 0.4.2
4
+ Summary: YAML-driven test sequencer for hardware-in-the-loop and integration testing
5
+ Author-email: François Dausseur <francois.dausseur@gmail.com>
6
+ License-Expression: EUPL-1.2
7
+ Project-URL: Homepage, https://github.com/testium-HIL/testium
8
+ Project-URL: Repository, https://github.com/testium-HIL/testium
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Programming Language :: Python
11
+ Requires-Python: >=3.11
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: setuptools
15
+ Requires-Dist: pyside6
16
+ Requires-Dist: pyyaml
17
+ Requires-Dist: pyserial
18
+ Requires-Dist: colorama
19
+ Requires-Dist: matplotlib
20
+ Requires-Dist: telnetlib3
21
+ Requires-Dist: jinja2
22
+ Requires-Dist: pexpect
23
+ Requires-Dist: gitpython
24
+ Requires-Dist: junit-xml
25
+ Requires-Dist: lxml
26
+ Provides-Extra: lsp
27
+ Requires-Dist: pygls>=1.3; extra == "lsp"
28
+ Dynamic: license-file
29
+
30
+ # testium
31
+
32
+ testium is a YAML-driven test sequencer for hardware-in-the-loop and
33
+ integration testing. A test campaign is described in a `.tum` file as a tree
34
+ of items (checks, console interactions, Python/Lua functions, parallel blocks,
35
+ dialogs, …); testium executes the tree, captures results, and produces
36
+ reports in several formats.
37
+
38
+ ![testium running a test session](https://raw.githubusercontent.com/testium-HIL/testium/main/doc/testium_session.gif)
39
+
40
+ ```sh
41
+ pip install testium-hil
42
+ testium # GUI mode
43
+ testium -b test.tum # batch mode
44
+ ```
45
+
46
+ Documentation, tutorials and pre-built binaries:
47
+ <https://github.com/testium-HIL/testium>
@@ -0,0 +1,18 @@
1
+ # testium
2
+
3
+ testium is a YAML-driven test sequencer for hardware-in-the-loop and
4
+ integration testing. A test campaign is described in a `.tum` file as a tree
5
+ of items (checks, console interactions, Python/Lua functions, parallel blocks,
6
+ dialogs, …); testium executes the tree, captures results, and produces
7
+ reports in several formats.
8
+
9
+ ![testium running a test session](https://raw.githubusercontent.com/testium-HIL/testium/main/doc/testium_session.gif)
10
+
11
+ ```sh
12
+ pip install testium-hil
13
+ testium # GUI mode
14
+ testium -b test.tum # batch mode
15
+ ```
16
+
17
+ Documentation, tutorials and pre-built binaries:
18
+ <https://github.com/testium-HIL/testium>
@@ -0,0 +1 @@
1
+ 0.4.2
@@ -0,0 +1,64 @@
1
+ [build-system]
2
+ requires = ["setuptools", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name="testium-hil"
7
+ description = "YAML-driven test sequencer for hardware-in-the-loop and integration testing"
8
+ readme = "README.md"
9
+ requires-python = ">=3.11"
10
+ authors = [
11
+ {name = "François Dausseur", email = "francois.dausseur@gmail.com"},
12
+ ]
13
+ license = "EUPL-1.2"
14
+ license-files = ["LICENSE"]
15
+ classifiers = [
16
+ "Development Status :: 5 - Production/Stable",
17
+ "Programming Language :: Python",
18
+ ]
19
+ dependencies = [
20
+ "setuptools",
21
+ "pyside6",
22
+ "pyyaml",
23
+ "pyserial",
24
+ "colorama",
25
+ "matplotlib",
26
+ "telnetlib3",
27
+ "jinja2",
28
+ "pexpect",
29
+ "gitpython",
30
+ "junit-xml",
31
+ "lxml",
32
+ ]
33
+ dynamic = ["version"]
34
+
35
+ [project.urls]
36
+ Homepage = "https://github.com/testium-HIL/testium"
37
+ Repository = "https://github.com/testium-HIL/testium"
38
+
39
+ [project.optional-dependencies]
40
+ # `pip install "testium-hil[lsp]"` adds the language-server dependencies. The
41
+ # stdio-only LSP server (`testium lsp`) reuses the schema export from the
42
+ # core install; pygls is the only marginal cost.
43
+ lsp = ["pygls>=1.3"]
44
+
45
+ [project.scripts]
46
+ testium = "testium:main"
47
+
48
+ [tool.setuptools.packages.find]
49
+ where=["."]
50
+ # Keep stale in-place `src/build/` trees out of the wheel.
51
+ exclude=["build", "build.*"]
52
+
53
+ # Top-level alias of testium/runtime/testium_report.py so plugin authors can
54
+ # `from testium_report import Exporter` in their dev venv with a plain
55
+ # `pip install testium-hil`. At run time under testium the copy shipped in
56
+ # runtime/ wins (the export worker's directory precedes site-packages).
57
+ [tool.setuptools]
58
+ py-modules = ["testium_report"]
59
+
60
+ [tool.setuptools.package-data]
61
+ "testium.lua_func" = ["*.lua"]
62
+
63
+ [tool.setuptools.dynamic]
64
+ version = {file = ["VERSION"]}
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,149 @@
1
+ #!/usr/bin/env python
2
+ import sys
3
+ import os
4
+ import multiprocessing
5
+ from pathlib import Path
6
+
7
+ ourpath = Path(__file__)
8
+ ourpath = ourpath.resolve()
9
+ sys.path.append(os.path.abspath(ourpath.parent))
10
+
11
+ import interpreter.utils.constants as cst
12
+
13
+ def main():
14
+ # Force UTF-8 on stdout/stderr so the runner's output survives a legacy
15
+ # console code page (Windows cp1252 can't encode box-drawing/accented
16
+ # chars). Only the stream encoders change; the locale default used for
17
+ # config files is untouched.
18
+ for _stream in (sys.stdout, sys.stderr):
19
+ try:
20
+ _stream.reconfigure(encoding="utf-8")
21
+ except (AttributeError, ValueError):
22
+ pass # no stdout (frozen GUI) or non-reconfigurable stream
23
+
24
+ # Subcommand dispatch (must run *before* argparse so neither 'schema' nor
25
+ # 'lsp' has to share the GUI/batch flag surface). The subcommands also
26
+ # skip the multiprocessing 'spawn' setup which is only meaningful for the
27
+ # main runtime — schema is a pure stdout dump and lsp speaks JSON-RPC
28
+ # over stdio without ever forking a test process.
29
+ if len(sys.argv) >= 2 and sys.argv[1] in ("schema", "lsp"):
30
+ sub = sys.argv[1]
31
+ if sub == "schema":
32
+ from lsp.schema import dump_jsonschema_json
33
+ print(dump_jsonschema_json())
34
+ return
35
+ # lsp
36
+ try:
37
+ from lsp.server import serve
38
+ except ImportError as e:
39
+ print(
40
+ f"testium lsp: language server dependencies missing ({e.name}). "
41
+ "Install with: pip install 'testium[lsp]'",
42
+ file=sys.stderr,
43
+ )
44
+ sys.exit(2)
45
+ serve()
46
+ return
47
+
48
+ # This line sets the method for the "Process" function. It is required for Linux
49
+ # support of the test dialogs.
50
+ multiprocessing.set_start_method('spawn')
51
+
52
+ import argparse
53
+ parser = argparse.ArgumentParser()
54
+ parser.add_argument("--version",
55
+ help="Returns the version of testium", action='store_true')
56
+ parser.add_argument("-b", "--batch-execution",
57
+ help="Executes the test in batch mode", action='store_true')
58
+ parser.add_argument("-o", "--no-color",
59
+ help="Deactivates stdout colors in batch mode", action='store_true')
60
+ parser.add_argument("-c", "--config-file", help="Configuration file",
61
+ nargs='+',
62
+ default=[])
63
+ parser.add_argument("-r", "--run-and-close", action='store_true',
64
+ help="Runs the test then closes the application",
65
+ required=False)
66
+ parser.add_argument("-l", "--log-file", help="log file name", default='')
67
+ parser.add_argument("-d", "--define",
68
+ help="Configuration passed to the executed tests.",
69
+ nargs='+',
70
+ type=str,
71
+ action='append',
72
+ default=[])
73
+ parser.add_argument("-p", "--report-file",
74
+ help="report file name", default='')
75
+ parser.add_argument("-t", "--report-type", help="report file type",
76
+ choices=cst.REP_TYPES,
77
+ default='')
78
+ parser.add_argument("-n", "--report-pattern", help="report file pattern",
79
+ nargs='+',
80
+ default=[])
81
+ parser.add_argument("-i", "--include-path",
82
+ help="Python modules search path",
83
+ nargs='+',
84
+ default=[])
85
+ parser.add_argument("-g", "--dev-debug", "--debug", action='store_true',
86
+ dest="debug",
87
+ help="attach a debugger to testium itself "
88
+ "(development, see CONTRIBUTING.md)",
89
+ required=False)
90
+
91
+ parser.add_argument(
92
+ 'test_file', help='the test script file', nargs='?', default='')
93
+ args = parser.parse_args()
94
+
95
+ if len(args.include_path)>0:
96
+ for p in args.include_path:
97
+ sys.path.append(p)
98
+
99
+ defines = {}
100
+ defs = []
101
+ for define in args.define:
102
+ defs += define
103
+ for define in defs:
104
+ d = define.split('=', 1)
105
+ if d[0].strip() != '':
106
+ if len(d) > 1:
107
+ defines.update({d[0].strip(): d[1]})
108
+ else:
109
+ defines.update({d[0].strip(): True})
110
+
111
+ cf = []
112
+ for c in args.config_file:
113
+ conf = c.strip('\"').strip("\'")
114
+ if not os.path.isabs(conf):
115
+ conf = os.path.join(os.getcwd(), conf)
116
+ cf.append(conf)
117
+ tf = args.test_file.strip('\"').strip("\'")
118
+ rf = args.report_file.strip('\"').strip("\'")
119
+ lf = args.log_file.strip('\"').strip("\'")
120
+ pn = []
121
+ for p in args.report_pattern:
122
+ pn.append(p.strip('\"').strip("\'"))
123
+
124
+ if args.version:
125
+ # initilization of the settings (used to know if git supported)
126
+ import interpreter.utils.settings as prefs
127
+ prefs.init()
128
+
129
+ from interpreter.utils.version import get_testium_version
130
+ print(get_testium_version())
131
+
132
+ elif args.batch_execution:
133
+ if (lf != ''):
134
+ print('"-l" option is not supported in this mode.')
135
+
136
+ from interpreter.batch import Batch
137
+ b = Batch(tf, cf, defines, rf, args.report_type, pn, args.no_color, text_mode=True)
138
+ sys.exit(0 if b.success else 1)
139
+
140
+ else:
141
+ from main_win.testium_win import MainWin
142
+ MainWin(tf, config_files=cf,
143
+ run=args.run_and_close,
144
+ log_file=lf,
145
+ defines=defines,
146
+ report=rf,
147
+ report_type=args.report_type,
148
+ report_pattern=pn,
149
+ debug=args.debug)
@@ -0,0 +1,20 @@
1
+ import os, sys
2
+ import traceback
3
+ import multiprocessing
4
+
5
+ def exception_handler(typ_exc, value, trbk):
6
+ """Testium Exception handling"""
7
+ print(f"Critical failure : '{value}'.")
8
+ tb = traceback.format_exception(typ_exc, value, trbk)
9
+ print("".join(tb[-4:]))
10
+
11
+ sys.excepthook = exception_handler
12
+
13
+ sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'))
14
+
15
+ from testium import main
16
+
17
+ if __name__ == '__main__':
18
+ if getattr(sys, 'frozen', False):
19
+ multiprocessing.freeze_support()
20
+ main()
File without changes