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
3f922fe7
Commit
3f922fe7
authored
18 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Change test to work with new node name format for small blocks
parent
b656551d
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/test8.5
+41
-11
41 additions, 11 deletions
testsuite/expect/test8.5
with
41 additions
and
11 deletions
testsuite/expect/test8.5
+
41
−
11
View file @
3f922fe7
...
...
@@ -7,7 +7,7 @@
# "FAILURE: ..." otherwise with an explanation of the failure, OR
# anything else indicates a failure mode that must be investigated.
############################################################################
# Copyright (C) 2006 The Regents of the University of California.
# Copyright (C) 2006
-2007
The Regents of the University of California.
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
# Written by Danny Auble <da@llnl.gov>
# UCRL-CODE-226842.
...
...
@@ -60,9 +60,9 @@ exec $bin_chmod 700 $file_in
#
set timeout [expr $max_job_delay + $sleep_time]
# make a
3
2 cnode block
# make a
51
2 cnode block
spawn $srun --batch --output=$file_out --error=$file_err -t2 -N
32-3
2 $file_in
spawn $srun --batch --output=$file_out --error=$file_err -t2 -N
512-51
2 $file_in
expect {
-re "jobid ($number) submitted" {
set job_id $expect_out(1,string)
...
...
@@ -94,10 +94,19 @@ set matches 0
spawn $scontrol show job $job_id
expect {
-re "BP_List=$alpha_numeric
\.$number\.$number
" {
-re "BP_List=$alpha_numeric " {
incr matches
exp_continue
}
-re "AllocCPUs=($number)" {
set cpu_count $expect_out(1,string)
set cpus_per_node [expr $cpu_count / 512]
if {($cpu_count != 512) && ($cpu_count != 1024)} {
send_user "\nFAILURE: Bad node count allocated\n"
set exit_code 1
}
exp_continue
}
timeout {
send_user "\nFAILURE: scontrol not responding\n"
set exit_code 1
...
...
@@ -107,9 +116,12 @@ expect {
}
}
if {$matches != 1} {
send_user "\nFAILURE: Blue Gene
3
2 cnode block not created correctly\n"
send_user "\nFAILURE: Blue Gene
51
2 cnode block not created correctly\n"
set exit_code 1
}
if {$exit_code != 0} {
exit $exit_code
}
# make a 128 cnode block
...
...
@@ -146,10 +158,19 @@ set matches 0
spawn $scontrol show job $job_id
expect {
-re "BP_List=$alpha_numeric\
.
$number " {
-re "BP_List=$alpha_numeric\
[
$number
-$number\]
" {
incr matches
exp_continue
}
-re "AllocCPUs=($number)" {
set cpu_count $expect_out(1,string)
set node_count [expr $cpu_count / $cpus_per_node]
if {$node_count != 128} {
send_user "\nFAILURE: Bad node count allocated\n"
set exit_code 1
}
exp_continue
}
timeout {
send_user "\nFAILURE: scontrol not responding\n"
set exit_code 1
...
...
@@ -163,9 +184,9 @@ if {$matches != 1} {
set exit_code 1
}
# make a
51
2 cnode block
# make a
3
2 cnode block
spawn $srun --batch --output=$file_out --error=$file_err -t2 -N
512-51
2 $file_in
spawn $srun --batch --output=$file_out --error=$file_err -t2 -N
32-3
2 $file_in
expect {
-re "jobid ($number) submitted" {
set job_id $expect_out(1,string)
...
...
@@ -194,13 +215,22 @@ if {[wait_for_job $job_id "DONE"] != 0} {
}
set matches 0
set cpus_per_node 1
spawn $scontrol show job $job_id
expect {
-re "BP_List=$alpha_numeric
" {
-re "BP_List=$alpha_numeric
\[$number-$number \]
" {
incr matches
exp_continue
}
-re "AllocCPUs=($number)" {
set cpu_count $expect_out(1,string)
set node_count [expr $cpu_count / $cpus_per_node]
if {$node_count != 32} {
send_user "\nFAILURE: Bad node count allocated\n"
set exit_code 1
}
exp_continue
}
timeout {
send_user "\nFAILURE: scontrol not responding\n"
set exit_code 1
...
...
@@ -210,7 +240,7 @@ expect {
}
}
if {$matches != 1} {
send_user "\nFAILURE: Blue Gene
51
2 cnode block not created correctly\n"
send_user "\nFAILURE: Blue Gene
3
2 cnode block not created correctly\n"
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