You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
Welcome to ReFrame
3
3
==================
4
4
5
-
ReFrame is a framework for writing tests for HPC systems that can check for functionality and performance regressions.
6
-
The goal of this framework is to abstract away the complexity of the interactions with the system, separating the logic of a regression test from the low-level details, which pertain to the system configuration and setup.
5
+
ReFrame is a high-level framework for writing regression tests for HPC systems.
6
+
The goal of the framework is to abstract away the complexity of the interactions with the system, separating the logic of a regression test from the low-level details, which pertain to the system configuration and setup.
7
7
This allows users to write easily portable regression tests, focusing only on the functionality.
8
8
9
9
Regression tests in ReFrame are simple Python classes that specify the basic parameters of the test.
- The ReFrame-generated build script, if not a run-only test.
179
179
- The standard output and standard error of the build phase, if not a run-only test.
180
-
- The ReFrame-generated job script, if not a compile-onlyl test.
180
+
- The ReFrame-generated job script, if not a compile-only test.
181
181
- The standard output and standard error of the run phase, if not a compile-only test.
182
182
- Any additional files specified by the :attr:`keep_files` regression test attribute.
183
183
@@ -328,7 +328,7 @@ Flexible node allocation
328
328
329
329
ReFrame can automatically set the number of tasks of a test, if its :attr:`num_tasks <reframe.core.pipeline.RegressionTest.num_tasks>` attribute is set to a value less than or equal to zero.
330
330
This scheme is conveniently called *flexible node allocation* and is valid only for the Slurm backend.
331
-
When allocating nodes automatically, ReFrame will take into account all node limiting factors, such as partition :js:attr:`access`` options, and any job submission control options described above.
331
+
When allocating nodes automatically, ReFrame will take into account all node limiting factors, such as partition :js:attr:`access` options, and any job submission control options described above.
332
332
Nodes from this pool are allocated according to different policies.
333
333
If no node can be selected, the test will be marked as a failure with an appropriate message.
334
334
@@ -338,7 +338,7 @@ If no node can be selected, the test will be marked as a failure with an appropr
338
338
Available values are the following:
339
339
340
340
- ``all``: Flexible tests will be assigned as many tasks as needed in order to span over *all* the nodes of the node pool.
341
-
- ``idle``: Flexible tests will be assigned as many tasks as needed in order to span over the *idle* the nodes of the node pool.
341
+
- ``idle``: Flexible tests will be assigned as many tasks as needed in order to span over the *idle* nodes of the node pool.
342
342
Querying of the node state and submission of the test job are two separate steps not executed atomically.
343
343
It is therefore possible that the number of tasks assigned does not correspond to the actual idle nodes.
Copy file name to clipboardExpand all lines: docs/sanity_functions_reference.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ The page ":doc:`deferrables`" explains in detail how sanity functions work and h
57
57
58
58
Sanity function decorator.
59
59
60
-
The evaluation of the decorated will be deferred and it will be suitable for use in the sanity and performance patterns of a regression test.
60
+
The evaluation of the decorated function will be deferred and it will become suitable for use in the sanity and performance patterns of a regression test.
These two attributes are mandatory for container-based check.
484
484
The :attr:`image <reframe.core.containers.ContainerPlatform.image>` attribute specifies the name of an image from a registry, whereas the :attr:`commands <reframe.core.containers.ContainerPlatform.commands>` attribute provides the list of commands to be run inside the container.
@@ -488,7 +488,7 @@ In the above example, ReFrame will run the container as follows:
By default ReFrame will mount the stage directory of the test under ``/rfm_workdir`` inside the container and it will always prepend a ``cd`` command to that directory.
494
494
The user commands then are then run from that directory one after the other.
Copy file name to clipboardExpand all lines: docs/tutorial_basic.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,11 +139,11 @@ ReFrame provides already a wide range of useful sanity functions ranging from wr
139
139
For a complete listing of the available functions, you may have a look at the :doc:`sanity_functions_reference`.
140
140
141
141
In our example, the :func:`assert_found <reframe.utility.sanity.assert_found>` function accepts a regular expression pattern to be searched in a file and either returns :class:`True` on success or raises a :class:`SanityError <reframe.core.exceptions.SanityError>` in case of failure with a descriptive message.
142
-
This function accepts any valid `Python Regular Expression <https://docs.python.org/3/library/re.html#regular-expression-syntax>`__ syntax.
142
+
This function accepts any valid `Python Regular Expression <https://docs.python.org/3/library/re.html#regular-expression-syntax>`__.
143
143
As a file argument, :func:`assert_found <reframe.utility.sanity.assert_found>` accepts any filename, which will be resolved against the stage directory of the test.
144
144
You can also use the :attr:`stdout <reframe.core.pipeline.RegressionTest.stdout>` and :attr:`stderr <reframe.core.pipeline.RegressionTest.stderr>` attributes to reference the standard output and standard error, respectively.
145
145
146
-
.. tip:: You need not to care about handling exceptions, and error handling in general, inside your test.
146
+
.. tip:: You don't need to care about handling exceptions, and error handling in general, inside your test.
147
147
The framework will automatically abort the execution of the test, report the error and continue with the next test case.
148
148
149
149
The last two lines of the regression test are optional, but serve a good role in a production environment:
0 commit comments