Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
b93d0d84
Commit
b93d0d84
authored
22 years ago
by
jce
Browse files
Options
Downloads
Patches
Plain Diff
A rough readme on our testing infrasturcture.
parent
74f12bdf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/txt/testing.txt
+59
-0
59 additions, 0 deletions
doc/txt/testing.txt
with
59 additions
and
0 deletions
doc/txt/testing.txt
0 → 100644
+
59
−
0
View file @
b93d0d84
SLURM Testing Intrastructure
----------------------------
The testing infrastructure for SLURM is based on Dejagnu, and consequently on
expect/tcl.
Directory Structure
-------------------
The entire testing infrastructure is located under the slurm/testsuite
directory.
testsuite/config
contains the default config files for dejagnu.
testsuite/slurm_unit
Has a directory structure that mirrors slurm/src, and
contains the unit test cases for them. For example, the directory
slurm_unit/common will contain unit test cases for modules located in
src/common.
testsuite/slurm*
any directory starting with slurm may contain testcases to run. Dejagnu
will find and execute an ".exp" files that are located in the slurm*
directories, and any of it's subdirectories.
Testing Scripts
---------------
Drop in a .exp file into a testsuite/slurm[*] directory. Dejagnu will
automagically run it when either "make check" or "runtest" are executed.
By using the functions pass, fail, untested, unresolved, and note to express
the results of test cases, DejaGNU records these results and prints out
summaries of all test cases.
Unit Testing
------------
To unit test using our infrastructure,
#include <testsuite/dejagnu.h>
pass( char*, ... )
fail( char*, ... )
untested( char*, ... )
unresolved( char*, ... )
note( char*, ... )
totals()
Note: All of the funtctions, except totals, behave like printf.
There is a runall.exp that will be placed in every unit testing directory,
that will run all programs that end with "test". If you have special needs
from the launching test script, you must write your own. If you write your
own .exp file to launch your scipts, please use names that do not end in
"test" to avoid strange resluts.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment