Skip to content
Snippets Groups Projects
Commit fe581711 authored by Moe Jette's avatar Moe Jette
Browse files

Update documentation for local slurm-qa/expect tests.

parent 820df302
No related branches found
No related tags found
No related merge requests found
......@@ -545,9 +545,11 @@ Depending upon your system configuration and performance, this test
suite will take roughly 40 minutes to complete.
Depending upon where SLURM and other files are installed, you may need
to modify pathnames in the file <i>testsuite/expect/globals</i>.
Tests may be executed individually by name (e.g.
<i>testsuite/expect/test1.1</i>) or the full test suite may be
executed with the single command <i>testsuite/expect/regression</i>.
Change your working directory to <i>testsuite/expect</i> before
starting these tests.
Tests may be executed individually by name (e.g. <i>test1.1</i>)
or the full test suite may be executed with the single command
<i>regression</i>.
See <i>testsuite/expect/README</i> for more information.</p>
<h3>Upgrades</h3>
......
......@@ -3,9 +3,9 @@
# Purpose: Test of SLURM functionality
# Executes the full battery of tests.
#
# Output: "Failures:#\nCompletions:#" with a count of tests executed successfully
# and failures respectively. The exit code is zero only if all tests
# executed successfully.
# Output: "Failures:#\nCompletions:#" with a count of tests executed
# successfully and failures respectively. The exit code is zero
# only if all tests executed successfully.
############################################################################
# Copyright (C) 2002 The Regents of the University of California.
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
......@@ -33,6 +33,19 @@
FAILURES=0
COMPLETIONS=0
# Make sure we are in the desired directory before possibly
# removing files the user does not want to lose.
wc ./globals >/dev/null 2>/dev/null
rc=$?
if [ $rc -eq 0 ]; then
wc ./regression >/dev/null 2>/dev/null
rc=$?
fi
if [ $rc -ne 0 ]; then
echo "FAILURE: cd to testsuite/expect before starting regression"
exit 1
fi
# Remove any recently edited back-up files
/bin/rm -f test*.*% test*input test*output test*error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment