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
aa4a7582
Commit
aa4a7582
authored
13 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Improve MPI test
Validate MPI rank values returned in test of MPI
parent
a79386fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testsuite/expect/test1.88
+12
-5
12 additions, 5 deletions
testsuite/expect/test1.88
with
12 additions
and
5 deletions
testsuite/expect/test1.88
+
12
−
5
View file @
aa4a7582
...
...
@@ -154,13 +154,17 @@ if {[wait_for_job $job_id "DONE"] != 0} {
#
# Check for desired output in stdout
#
set expected [expr 6 + 6 + 4 + 4]
set expected_msg [expr 6 + 6 + 4 + 4]
set expected_sum [expr 30 + 30 + 12 + 12]
if {[wait_for_file $file_out] == 0} {
set matches 0
set complete 0
set matches 0
set rank_sum 0
spawn $bin_cat $file_out
expect {
-re "just received msg from Rank" {
-re "Rank.($number). on $alpha_numeric_under just received msg from Rank ($number)" {
incr rank_sum $expect_out(1,string)
incr rank_sum $expect_out(2,string)
incr matches
exp_continue
}
...
...
@@ -178,12 +182,15 @@ if {[wait_for_file $file_out] == 0} {
send_user "with the configured switch\n"
send_user " Core files may be present from failed MPI tasks\n\n"
set exit_code 1
} elseif {$matches != $expected} {
send_user "\nFAILURE: unexpected output ($matches of $expected)\n"
} elseif {$matches != $expected
_msg
} {
send_user "\nFAILURE: unexpected output ($matches of $expected
_msg
)\n"
set exit_code 1
} elseif {$complete == 0} {
send_user "\nFAILURE: test failed to complete\n"
set exit_code 1
} elseif {$rank_sum != $expected_sum} {
send_user "\nFAILURE: Invalid rank values ($rank_sum != $expected_sum)\n"
set exit_code 1
}
} else {
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