File: README

package info (click to toggle)
slurm-wlm-contrib 24.11.5-2
  • links: PTS, VCS
  • area: contrib
  • in suites: trixie
  • size: 50,596 kB
  • sloc: ansic: 529,598; exp: 64,795; python: 17,051; sh: 9,411; javascript: 6,528; makefile: 4,030; perl: 3,762; pascal: 131
file content (40 lines) | stat: -rw-r--r-- 2,039 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
############################################################################
# Copyright (C) SchedMD LLC.
############################################################################

The Automated Test Framework (ATF) is a test framework designed to permit
tests to be run under two alternative configuration modes:

- The local-config mode was designed to be used with your current Slurm
  installation and configuration. Tests that can be run using your current
  configuration will be executed while those that require a different
  configuration will be skipped. Local-config mode will avoid making changes
  to your Slurm configuration, accounting database configuration and system
  environment.

- The auto-config mode was designed to be run within an automated testing
  framework in which Slurm is automatically installed within a container
  environment using a preset minimal configuration and where each test will
  dynamically configure Slurm as necessary to run. This mode is intended to
  be used primarily within automated systems and is not supported for use
  with local installations.

The associated testsuite uses tests and test libraries written in python and
is executed under the pytest test harness. A wrapper script is provided
(run-tests-python) to facilitate the use of the recommended pytest options.

To run the testsuite under local-config mode:

1) Install, configure and start Slurm.
2) Create the testsuite.conf configuration file. By default, this is expected
   to be found in SRCDIR/testsuite. If placed elsewhere, set the
   SLURM_TESTSUITE_CONF environment variable to the full path of your
   testsuite.conf file. This file can be copied from the
   BUILDDIR/testsuite/testsuite.conf.sample autogenerated by configure and
   then edited as necessary.
3) Set up your path and environment as necessary.
4) Change directories to testsuite/python and run run-tests-python.

$ cp BUILDDIR/testsuite/testsuite.conf.sample SRCDIR/testsuite/testsuite.conf
$ cd SRCDIR/testsuite/python
$ ./run-tests-python