@@ -72,8 +72,7 @@ All of the top-level subdirectories are described below.</p>
72
72
these header files in this location makes for better code portability.<br>
73
73
<b>src</b> — Contains all source code and header files not in the "slurm" subdirectory
74
74
described above.<br>
75
- <b>testsuite</b> — DejaGnu and Expect are used for testing all of its files
76
- are here.</p>
75
+ <b>testsuite</b> — Check, Expect and Pytest tests are here.</p>
77
76
78
77
79
78
<h2 id="Documentation">Documentation
@@ -195,14 +194,18 @@ Slurm daemon(s) should execute on any node based upon the configuration file con
195
194
It will also manage these daemons: starting, signaling, restarting, and stopping them.</p>
196
195
197
196
<h2 id="Test-Suite">Test Suite<a class="slurm_link" href="#Test-Suite"></a></h2>
198
- <p>The <b>testsuite</b> files use a DejaGnu framework for testing. These tests
199
- are very limited in scope.</p>
197
+ <p>The <b>testsuite</b> files use Check, Expect and Pytest for testing Slurm in
198
+ differents ways.</p>
199
+
200
+ <p>The Check tests are designed to unit test C code. Only with
201
+ <i>make check</i>, without Slurm installed, they will validate that key C
202
+ functions work correctly.</p>
200
203
201
204
<p>We also have a set of Expect Slurm tests available under the <b>testsuite/expect</b>
202
205
directory. These tests are executed after Slurm has been installed
203
- and the daemons initiated. About 400 test scripts exercise all Slurm commands
206
+ and the daemons initiated. These tests exercise all Slurm commands
204
207
and options including stress tests. The file <b>testsuite/expect/globals</b>
205
- contains default paths and procedures for all of the individual tests. At
208
+ contains the Expect test framewrok for all of the individual tests. At
206
209
the very least, you will need to set the <i>slurm_dir</i> variable to the correct
207
210
value. To avoid conflicts with other developers, you can override variable settings
208
211
in a separate file named <b>testsuite/expect/globals.local</b>.</p>
@@ -214,6 +217,10 @@ or the full test suite may be executed with the single command
214
217
<i>regression.py</i>.
215
218
See <b>testsuite/expect/README</b> for more information.</p>
216
219
220
+ <p>Slurm also has a Pytest environment that can work like the Expect one, but it
221
+ also works together with an external QA framework to improve the overall QA
222
+ of Slurm.</p>
223
+
217
224
<h2 id="Adding-Files-and-Directories">Adding Files and Directories
218
225
<a class="slurm_link" href="#Adding-Files-and-Directories"></a>
219
226
</h2>
0 commit comments