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

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
......@@ -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 32 cnode block
# make a 512 cnode block
spawn $srun --batch --output=$file_out --error=$file_err -t2 -N32-32 $file_in
spawn $srun --batch --output=$file_out --error=$file_err -t2 -N512-512 $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 32 cnode block not created correctly\n"
send_user "\nFAILURE: Blue Gene 512 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 512 cnode block
# make a 32 cnode block
spawn $srun --batch --output=$file_out --error=$file_err -t2 -N512-512 $file_in
spawn $srun --batch --output=$file_out --error=$file_err -t2 -N32-32 $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 512 cnode block not created correctly\n"
send_user "\nFAILURE: Blue Gene 32 cnode block not created correctly\n"
set exit_code 1
}
......
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