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
8d0cc620
Commit
8d0cc620
authored
18 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Add test for sattach layout
parent
0d6029fb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/expect/README
+2
-1
2 additions, 1 deletion
testsuite/expect/README
testsuite/expect/test16.4
+28
-2
28 additions, 2 deletions
testsuite/expect/test16.4
with
30 additions
and
3 deletions
testsuite/expect/README
+
2
−
1
View file @
8d0cc620
...
@@ -374,7 +374,8 @@ test16.1 Confirm sattach usage option works (--usage option).
...
@@ -374,7 +374,8 @@ test16.1 Confirm sattach usage option works (--usage option).
test16.2 Confirm sattach help option works (--help option).
test16.2 Confirm sattach help option works (--help option).
test16.3 Confirm that sattach reports a proper version number
test16.3 Confirm that sattach reports a proper version number
(--version option).
(--version option).
test16.4 Basic sattach functionality test (--verbose and --label options).
test16.4 Basic sattach functionality test (--layout, --verbose and
--label options).
test17.# Testing of sbatch options.
test17.# Testing of sbatch options.
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test16.4
+
28
−
2
View file @
8d0cc620
#!/usr/bin/expect
#!/usr/bin/expect
############################################################################
############################################################################
# Purpose: Test of SLURM functionality
# Purpose: Test of SLURM functionality
# Basic sattach functionality test (--verbose and --label options).
# Basic sattach functionality test (--layout, --verbose and
# --label options).
#
#
# Output: "TEST: #.#" followed by "SUCCESS" if test was successful, OR
# Output: "TEST: #.#" followed by "SUCCESS" if test was successful, OR
# "FAILURE: ..." otherwise with an explanation of the failure, OR
# "FAILURE: ..." otherwise with an explanation of the failure, OR
...
@@ -86,6 +87,31 @@ if {$matches != 4} {
...
@@ -86,6 +87,31 @@ if {$matches != 4} {
exit 1
exit 1
}
}
#
# Get task layout information
#
set matches 0
spawn $sattach --layout $job_id.0
set attach_id $spawn_id
expect {
-i $attach_id
-re "4 tasks, ($number) nodes" {
incr matches
exp_continue
}
timeout {
send_user "\nFAILURE: sattach not responding\n"
set exit_code 1
}
eof {
wait
}
}
if {$matches == 0} {
send_user "\nFAILURE: layout information not printed\n"
set exit_code 1
}
#
#
# Attach to initial program
# Attach to initial program
#
#
...
@@ -116,7 +142,7 @@ expect {
...
@@ -116,7 +142,7 @@ expect {
}
}
if {$matches != 5} {
if {$matches != 5} {
send_user "\nFAILURE: job run time failure\n"
send_user "\nFAILURE: job run time failure\n"
set exit_code
1
set exit_code 1
}
}
#
#
...
...
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