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
967b57e4
Commit
967b57e4
authored
9 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Fix test to test correctly the tres variables
parent
0ae29469
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/test21.24
+40
-56
40 additions, 56 deletions
testsuite/expect/test21.24
with
40 additions
and
56 deletions
testsuite/expect/test21.24
+
40
−
56
View file @
967b57e4
...
@@ -83,20 +83,17 @@ set pba pbatch
...
@@ -83,20 +83,17 @@ set pba pbatch
set dw DefaultWCKey
set dw DefaultWCKey
set wk WCKeys
set wk WCKeys
set fs Fairshare
set fs Fairshare
set gm Grp
CPU
Mins
set gm Grp
TRES
Mins
set gc Grp
CPUs
set gc Grp
TRES
set gj GrpJobs
set gj GrpJobs
set gs GrpSubmitJobs
set gs GrpSubmitJobs
set gn GrpNodes
set gw GrpWall
set gw GrpWall
set mm Max
CPU
Mins
set mm Max
TRES
Mins
set mp Max
CPU
MinsPerJob
set mp Max
TRES
MinsPerJob
set mc Max
CPUs
set mc Max
TRES
set mu Max
CPUs
PerJob
set mu Max
TRES
PerJob
set mj MaxJobs
set mj MaxJobs
set ms MaxSubmitJobs
set ms MaxSubmitJobs
set mn MaxNodes
set mnj MaxNodesPerJob
set mw MaxWall
set mw MaxWall
set md MaxWallDurationPerJob
set md MaxWallDurationPerJob
...
@@ -108,14 +105,13 @@ array set acct_req {
...
@@ -108,14 +105,13 @@ array set acct_req {
description appliedacct
description appliedacct
organization organization
organization organization
fairshare 5678
fairshare 5678
grp
cpu
mins
5500
grp
tres
mins
cpu=
5500
grp
cpu
s
5
0
grp
tre
s
cpu=50,node=53
0
grpjobs 510
grpjobs 510
grpsubmitjobs 520
grpsubmitjobs 520
grpnodes 530
grpwall 300
grpwall 300
max
cpu
s
54
0
max
tre
s
cpu=540,node=57
0
max
cpu
mins
550000
max
tres
mins
cpu=
550000
maxjobs 550
maxjobs 550
maxsubmitjobs 560
maxsubmitjobs 560
maxnodes 570
maxnodes 570
...
@@ -128,16 +124,14 @@ array set acct_req2 {
...
@@ -128,16 +124,14 @@ array set acct_req2 {
description theoryacct
description theoryacct
organization theoryorg
organization theoryorg
fairshare 4321
fairshare 4321
grp
cpu
mins
4000
grp
tres
mins
cpu=
4000
grp
cpu
s
4
0
grp
tre
s
cpu=40,node=43
0
grpjobs 410
grpjobs 410
grpnodes 430
grpsubmitjobs 420
grpsubmitjobs 420
grpwall 240
grpwall 240
max
cpu
mins
420000
max
tres
mins
cpu=
420000
max
cpu
s
44
0
max
tre
s
cpu=440,node=47
0
maxjobs 450
maxjobs 450
maxnodes 470
maxsubmitjobs 460
maxsubmitjobs 460
maxwall 280
maxwall 280
}
}
...
@@ -149,16 +143,14 @@ array set acct_req3 {
...
@@ -149,16 +143,14 @@ array set acct_req3 {
description physicsacct
description physicsacct
organization physicsorg
organization physicsorg
fairshare 3240
fairshare 3240
grp
cpu
mins
3300
grp
tres
mins
cpu=
3300
grp
cpu
s 30
grp
tre
s
cpu=30,node=3
30
grpjobs 310
grpjobs 310
grpnodes 330
grpsubmitjobs 320
grpsubmitjobs 320
grpwall 180
grpwall 180
max
cpu
mins
330000
max
tres
mins
cpu=
330000
max
cpu
s
34
0
max
tre
s
cpu=340,node=37
0
maxjobs 350
maxjobs 350
maxnodes 370
maxsubmitjobs 360
maxsubmitjobs 360
maxwall 210
maxwall 210
}
}
...
@@ -172,16 +164,14 @@ array set user_req {
...
@@ -172,16 +164,14 @@ array set user_req {
defaultwckey hole
defaultwckey hole
wckey latch,stone,turn
wckey latch,stone,turn
fairshare 3240
fairshare 3240
grp
cpu
mins
3300
grp
tres
mins
cpu=
3300
grp
cpu
s 30
grp
tre
s
cpu=30,node=3
30
grpjobs 310
grpjobs 310
grpnodes 330
grpsubmitjobs 320
grpsubmitjobs 320
grpwall 180
grpwall 180
max
cpu
mins
330000
max
tres
mins
cpu=
330000
max
cpu
s
34
0
max
tre
s
cpu=340,node=37
0
maxjobs 350
maxjobs 350
maxnodes 370
maxsubmitjobs 360
maxsubmitjobs 360
maxwall 210
maxwall 210
}
}
...
@@ -195,16 +185,14 @@ array set user_req2 {
...
@@ -195,16 +185,14 @@ array set user_req2 {
defaultwckey stone
defaultwckey stone
wckey latch,hole,turn
wckey latch,hole,turn
fairshare 2375
fairshare 2375
grp
cpu
mins
2000
grp
tres
mins
cpu=
2000
grp
cpu
s
2
0
grp
tre
s
cpu=20,node=23
0
grpjobs 210
grpjobs 210
grpnodes 230
grpsubmitjobs 220
grpsubmitjobs 220
grpwall 120
grpwall 120
max
cpu
mins
220000
max
tres
mins
cpu=
220000
max
cpu
s
24
0
max
tre
s
cpu=240,node=27
0
maxjobs 250
maxjobs 250
maxnodes 270
maxsubmitjobs 260
maxsubmitjobs 260
maxwall 140
maxwall 140
...
@@ -219,16 +207,14 @@ array set user_req3 {
...
@@ -219,16 +207,14 @@ array set user_req3 {
defaultwckey latch
defaultwckey latch
wckey stone,hole,turn
wckey stone,hole,turn
fairshare 1000
fairshare 1000
grp
cpu
mins
1100
grp
tres
mins
cpu=
1100
grp
cpu
s
1
0
grp
tre
s
cpu=10,node=14
0
grpjobs 120
grpjobs 120
grpnodes 140
grpsubmitjobs 130
grpsubmitjobs 130
grpwall 60
grpwall 60
max
cpu
mins
110000
max
tres
mins
cpu=
110000
max
cpu
s
15
0
max
tre
s
cpu=150,node=18
0
maxjobs 160
maxjobs 160
maxnodes 180
maxsubmitjobs 170
maxsubmitjobs 170
maxwall 70
maxwall 70
...
@@ -241,15 +227,13 @@ set user_req3(defaultaccount) $ta2
...
@@ -241,15 +227,13 @@ set user_req3(defaultaccount) $ta2
# Clusters
# Clusters
array set clus_req {
array set clus_req {
fairshare 6789
fairshare 6789
grp
cpu
s
6
0
grp
tre
s
cpu=60,node=63
0
grpjob 610
grpjob 610
grpsubmit 620
grpsubmit 620
grpnodes 630
maxtres cpu=640,node=670
maxcpus 640
maxtresmin cpu=660000
maxcpumin 660000
maxjobs 650
maxjobs 650
maxsubmit 660
maxsubmit 660
maxnodes 670
maxwall 2880
maxwall 2880
}
}
# I couldn't figure out how to make a variable in an array to = the value of
# I couldn't figure out how to make a variable in an array to = the value of
...
@@ -416,7 +400,7 @@ while {[gets $tfile line] != -1} {
...
@@ -416,7 +400,7 @@ while {[gets $tfile line] != -1} {
if {![string compare $line "No such file or directory"]} {
if {![string compare $line "No such file or directory"]} {
send_user "FAILURE: there was a problem with the sacctmgr command\n"
send_user "FAILURE: there was a problem with the sacctmgr command\n"
incr exit_code 1
incr exit_code 1
} elseif {![string compare $line "$clu - '$tc3':$fs=$clus_req(fairshare):$gc=$clus_req(grp
cpu
s):$gj=$clus_req(grpjob):$
gn=$clus_req(grpnodes):$
gs=$clus_req(grpsubmit):$mp=$clus_req(max
cpu
min):$mu=$clus_req(max
cpus):$mj=$clus_req(maxjob
s):$m
n
j=$clus_req(max
node
s):$ms=$clus_req(maxsubmit):$md=$clus_req(maxwall):$qs='$clus_req(qos)'"]} {
} elseif {![string compare $line "$clu - '$tc3':$fs=$clus_req(fairshare):$gc=$clus_req(grp
tre
s):$gj=$clus_req(grpjob):$gs=$clus_req(grpsubmit):$mp=$clus_req(max
tres
min):$mu=$clus_req(max
tre
s):$mj=$clus_req(max
job
s):$ms=$clus_req(maxsubmit):$md=$clus_req(maxwall):$qs='$clus_req(qos)'"]} {
send_user "match 1\n"
send_user "match 1\n"
incr matches
incr matches
} elseif {![string compare $line "$par - '$roo'"]} {
} elseif {![string compare $line "$par - '$roo'"]} {
...
@@ -425,32 +409,32 @@ while {[gets $tfile line] != -1} {
...
@@ -425,32 +409,32 @@ while {[gets $tfile line] != -1} {
} elseif {![string compare $line "$usr - '$roo':$dac='$roo':$al='$ala':$fs=1"]} {
} elseif {![string compare $line "$usr - '$roo':$dac='$roo':$al='$ala':$fs=1"]} {
send_user "match 3\n"
send_user "match 3\n"
incr matches
incr matches
} elseif {![string compare $line "$acc - '$ta4':$dsc='$acct_req(description)':$org='$acct_req(organization)':$fs=$acct_req(fairshare):$gm=$acct_req(grp
cpu
mins):$gc=$acct_req(grp
cpu
s):$gj=$acct_req(grpjobs):$
gn=$acct_req(grpnodes):$
gs=$acct_req(grpsubmitjobs):$gw=$acct_req(grpwall):$mp=$acct_req(max
cpu
mins):$mu=$acct_req(max
cpus):$mj=$acct_req(maxjob
s):$m
n
j=$acct_req(max
node
s):$ms=$acct_req(maxsubmitjobs):$md=$acct_req(maxwall):$qs='$acct_req(qos)'"]} {
} elseif {![string compare $line "$acc - '$ta4':$dsc='$acct_req(description)':$org='$acct_req(organization)':$fs=$acct_req(fairshare):$gm=$acct_req(grp
tres
mins):$gc=$acct_req(grp
tre
s):$gj=$acct_req(grpjobs):$gs=$acct_req(grpsubmitjobs):$gw=$acct_req(grpwall):$mp=$acct_req(max
tres
mins):$mu=$acct_req(max
tre
s):$mj=$acct_req(max
job
s):$ms=$acct_req(maxsubmitjobs):$md=$acct_req(maxwall):$qs='$acct_req(qos)'"]} {
send_user "match 4\n"
send_user "match 4\n"
incr matches
incr matches
} elseif {![string compare $line "$par - '$ta4'"]} {
} elseif {![string compare $line "$par - '$ta4'"]} {
send_user "match 5\n"
send_user "match 5\n"
incr matches
incr matches
} elseif {![string compare $line "$usr - '$tu3':$dac='$user_req(defaultaccount)':$dw='$user_req(defaultwckey)':$al='$user_req(adminlevel)':$wk='$wckey_check':$fs=$user_req(fairshare):$gm=$user_req(grp
cpu
mins):$gc=$user_req(grp
cpu
s):$gj=$user_req(grpjobs):$
gn=$user_req(grpnodes):$
gs=$user_req(grpsubmitjobs):$gw=$user_req(grpwall):$mp=$user_req(max
cpu
mins):$mu=$user_req(max
cpu
s):$mj=$user_req(maxjobs):$
mnj=$user_req(maxnodes):$
ms=$user_req(maxsubmitjobs):$md=$user_req(maxwall):$qs='$user_req(qos)'"]} {
} elseif {![string compare $line "$usr - '$tu3':$dac='$user_req(defaultaccount)':$dw='$user_req(defaultwckey)':$al='$user_req(adminlevel)':$wk='$wckey_check':$fs=$user_req(fairshare):$gm=$user_req(grp
tres
mins):$gc=$user_req(grp
tre
s):$gj=$user_req(grpjobs):$gs=$user_req(grpsubmitjobs):$gw=$user_req(grpwall):$mp=$user_req(max
tres
mins):$mu=$user_req(max
tre
s):$mj=$user_req(maxjobs):$ms=$user_req(maxsubmitjobs):$md=$user_req(maxwall):$qs='$user_req(qos)'"]} {
# should come through 2 times
# should come through 2 times
send_user "match 6\n"
send_user "match 6\n"
incr matches
incr matches
} elseif {![string compare $line "$acc - '$ta3':$dsc='$acct_req2(description)':$org='$acct_req2(organization)':$fs=$acct_req2(fairshare):$gm=$acct_req2(grp
cpu
mins):$gc=$acct_req2(grp
cpus):$gj=$acct_req2(grpjob
s):$g
n
=$acct_req2(grp
node
s):$gs=$acct_req2(grpsubmitjobs):$gw=$acct_req2(grpwall):$mp=$acct_req2(max
cpu
mins):$mu=$acct_req2(max
cpus):$mj=$acct_req2(maxjob
s):$m
n
j=$acct_req2(max
node
s):$ms=$acct_req2(maxsubmitjobs):$md=$acct_req2(maxwall):$qs='$acct_req2(qos)'"]} {
} elseif {![string compare $line "$acc - '$ta3':$dsc='$acct_req2(description)':$org='$acct_req2(organization)':$fs=$acct_req2(fairshare):$gm=$acct_req2(grp
tres
mins):$gc=$acct_req2(grp
tre
s):$g
j
=$acct_req2(grp
job
s):$gs=$acct_req2(grpsubmitjobs):$gw=$acct_req2(grpwall):$mp=$acct_req2(max
tres
mins):$mu=$acct_req2(max
tre
s):$mj=$acct_req2(max
job
s):$ms=$acct_req2(maxsubmitjobs):$md=$acct_req2(maxwall):$qs='$acct_req2(qos)'"]} {
send_user "match 7\n"
send_user "match 7\n"
incr matches
incr matches
} elseif {![string compare $line "$par - '$ta3'"]} {
} elseif {![string compare $line "$par - '$ta3'"]} {
send_user "match 8\n"
send_user "match 8\n"
incr matches
incr matches
} elseif {![string compare $line "$acc - '$ta2':$dsc='$acct_req3(description)':$org='$acct_req3(organization)':$fs=$acct_req3(fairshare):$gm=$acct_req3(grp
cpu
mins):$gc=$acct_req3(grp
cpus):$gj=$acct_req3(grpjob
s):$g
n
=$acct_req3(grp
node
s):$gs=$acct_req3(grpsubmitjobs):$gw=$acct_req3(grpwall):$mp=$acct_req3(max
cpu
mins):$mu=$acct_req3(max
cpus):$mj=$acct_req3(maxjob
s):$m
n
j=$acct_req3(max
node
s):$ms=$acct_req3(maxsubmitjobs):$md=$acct_req3(maxwall):$qs='$acct_req3(qos)'"]} {
} elseif {![string compare $line "$acc - '$ta2':$dsc='$acct_req3(description)':$org='$acct_req3(organization)':$fs=$acct_req3(fairshare):$gm=$acct_req3(grp
tres
mins):$gc=$acct_req3(grp
tre
s):$g
j
=$acct_req3(grp
job
s):$gs=$acct_req3(grpsubmitjobs):$gw=$acct_req3(grpwall):$mp=$acct_req3(max
tres
mins):$mu=$acct_req3(max
tre
s):$mj=$acct_req3(max
job
s):$ms=$acct_req3(maxsubmitjobs):$md=$acct_req3(maxwall):$qs='$acct_req3(qos)'"]} {
send_user "match 9\n"
send_user "match 9\n"
incr matches
incr matches
} elseif {![string compare $line "$par - '$ta2'"]} {
} elseif {![string compare $line "$par - '$ta2'"]} {
send_user "match 10\n"
send_user "match 10\n"
incr matches
incr matches
} elseif {![string compare $line "$usr - '$tu1':$dac='$user_req3(defaultaccount)':$dw='$user_req3(defaultwckey)':$wk='$wckey_check':$fs=$user_req3(fairshare):$gm=$user_req3(grp
cpu
mins):$gc=$user_req3(grp
cpu
s):$gj=$user_req3(grpjobs):$
gn=$user_req3(grpnodes):$
gs=$user_req3(grpsubmitjobs):$gw=$user_req3(grpwall):$mp=$user_req3(max
cpu
mins):$mu=$user_req3(max
cpus):$mj=$user_req3(maxjob
s):$m
n
j=$user_req3(max
node
s):$ms=$user_req3(maxsubmitjobs):$md=$user_req3(maxwall):$qs='$user_req3(qos)'"]} {
} elseif {![string compare $line "$usr - '$tu1':$dac='$user_req3(defaultaccount)':$dw='$user_req3(defaultwckey)':$wk='$wckey_check':$fs=$user_req3(fairshare):$gm=$user_req3(grp
tres
mins):$gc=$user_req3(grp
tre
s):$gj=$user_req3(grpjobs):$gs=$user_req3(grpsubmitjobs):$gw=$user_req3(grpwall):$mp=$user_req3(max
tres
mins):$mu=$user_req3(max
tre
s):$mj=$user_req3(max
job
s):$ms=$user_req3(maxsubmitjobs):$md=$user_req3(maxwall):$qs='$user_req3(qos)'"]} {
send_user "match 11\n"
send_user "match 11\n"
incr matches
incr matches
} elseif {![string compare $line "$usr - '$tu2':$dac='$user_req2(defaultaccount)':$dw='$user_req2(defaultwckey)':$al='$user_req2(adminlevel)':$wk='$wckey_check':$fs=$user_req2(fairshare):$gm=$user_req2(grp
cpu
mins):$gc=$user_req2(grp
cpu
s):$gj=$user_req2(grpjobs):$
gn=$user_req2(grpnodes):$
gs=$user_req2(grpsubmitjobs):$gw=$user_req2(grpwall):$mp=$user_req2(max
cpu
mins):$mu=$user_req2(max
cpus):$mj=$user_req2(maxjob
s):$m
n
j=$user_req2(max
node
s):$ms=$user_req2(maxsubmitjobs):$md=$user_req2(maxwall):$qs='$user_req2(qos)'"]} {
} elseif {![string compare $line "$usr - '$tu2':$dac='$user_req2(defaultaccount)':$dw='$user_req2(defaultwckey)':$al='$user_req2(adminlevel)':$wk='$wckey_check':$fs=$user_req2(fairshare):$gm=$user_req2(grp
tres
mins):$gc=$user_req2(grp
tre
s):$gj=$user_req2(grpjobs):$gs=$user_req2(grpsubmitjobs):$gw=$user_req2(grpwall):$mp=$user_req2(max
tres
mins):$mu=$user_req2(max
tre
s):$mj=$user_req2(max
job
s):$ms=$user_req2(maxsubmitjobs):$md=$user_req2(maxwall):$qs='$user_req2(qos)'"]} {
# should come through 2 times
# should come through 2 times
send_user "match 12\n"
send_user "match 12\n"
incr matches
incr matches
...
...
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