~ubuntu-branches/ubuntu/vivid/slurm-llnl/vivid

« back to all changes in this revision

Viewing changes to testsuite/expect/test21.8

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2009-09-24 23:28:15 UTC
  • mfrom: (1.1.11 upstream) (3.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090924232815-enh65jn32q1ebg07
Tags: 2.0.5-1
* New upstream release 
* Changed dependecy from lib-mysqlclient15 to lib-mysqlclient 
* Added Default-Start for runlevel 2 and 4 and $remote_fs requirement in
  init.d scripts (Closes: #541252)
* Postinst checks for wrong runlevels 2 and 4 links
* Upgraded to standard version 3.8.3
* Add lintian overrides for missing slurm-llnl-configurator.html in doc
  base registration
* modified postrm scripts to ignore pkill return value in order to avoid
  postrm failure when no slurm process is running
* Checking for slurmctld.pid before cancelling running and pending
  jobs during package removal 

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
# Copyright (C) 2008 Lawrence Livermore National Security.
11
11
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
12
12
# Written by Joseph Donaghy <donaghy1@llnl.gov>
13
 
# LLNL-CODE-402394.
 
13
# CODE-OCEC-09-009. All rights reserved.
14
14
15
15
# This file is part of SLURM, a resource management program.
16
 
# For details, see <http://www.llnl.gov/linux/slurm/>.
 
16
# For details, see <https://computing.llnl.gov/linux/slurm/>.
 
17
# Please also read the included file: DISCLAIMER.
17
18
#  
18
19
# SLURM is free software; you can redistribute it and/or modify it under
19
20
# the terms of the GNU General Public License as published by the Free
45
46
set nams        Names
46
47
set nam         Name
47
48
set fs          Fairshare
48
 
set gm          GrpCPUMins
49
49
set gc          GrpCPUs
50
50
set gj          GrpJobs
51
51
set gs          GrpSubmitJobs
52
52
set gn          GrpNodes
53
 
set gw          GrpWall
54
53
set mm          MaxCPUMins
55
54
set mc          MaxCPUs
56
55
set mj          MaxJobs
63
62
set tc3         tcluster3
64
63
set fs1         2500
65
64
set fs2         1375
66
 
set gm1         1000
67
65
set gc1         20
68
66
set gj1         100
69
67
set gs1         300
70
68
set gn1         100
71
 
set gw1         00:45:00
72
69
set mc1         200
73
70
set mm1         100000
74
71
set mj1         500
75
72
set ms1         400
76
73
set mn1         200
77
74
set mw1         01:00:00
78
 
set gm2         2000
79
75
set gc2         50
80
76
set gj2         200
81
77
set gs2         400
82
78
set gn2         150
83
 
set gw2         00:45:00
84
79
set mc2         100
85
80
set mm2         20000
86
81
set mj2         600
109
104
# Use sacctmgr to create a cluster
110
105
#
111
106
set sadd_pid [spawn $sacctmgr $add $clu $nams=$tc1,$tc2,$tc3 $fs=$fs1  \
112
 
$gm=$gm1 $gc=$gc1 $gj=$gj1 $gn=$gn1 $gs=$gs1 $gw=$gw1 $mc=$mc1 $mm=$mm1 \
 
107
$gc=$gc1 $gj=$gj1 $gn=$gn1 $gs=$gs1 $mc=$mc1 $mm=$mm1 \
113
108
$mj=$mj1 $ms=$ms1 $mn=$mn1 $mw=$mw1]
114
109
expect {
115
110
        -re "privilege to preform this action" {
140
135
                incr amatches
141
136
                exp_continue
142
137
        }
143
 
        -re "$gm *= $gm1" {
144
 
                incr amatches
145
 
                exp_continue
146
 
        }
147
138
        -re "$gc *= $gc1" {
148
139
                incr amatches
149
140
                exp_continue
160
151
                incr amatches
161
152
                exp_continue
162
153
        }
163
 
        -re "$gw *= $gw1" {
164
 
                incr amatches
165
 
                exp_continue
166
 
        }
167
154
        -re "$mm *= $mm1" {
168
155
                incr amatches
169
156
                exp_continue
210
197
        send_user "\nWARNING: not authorized to perform this test\n"
211
198
        exit $exit_code
212
199
}
213
 
if {$amatches != 20} {
 
200
if {$amatches != 18} {
214
201
        send_user "\nFAILURE:  sacctmgr had a problem adding clusters\n"
215
202
        set exit_code 1
216
203
}
223
210
# Use sacctmgr to modify one cluster
224
211
#
225
212
set smod_pid [spawn $sacctmgr $mod $clu set $fs=$fs2   \
226
 
$gm=$gm2 $gc=$gc2 $gj=$gj2 $gn=$gn2 $gs=$gs2 $gw=$gw2 $mc=$mc2 $mm=$mm2 \
 
213
$gc=$gc2 $gj=$gj2 $gn=$gn2 $gs=$gs2 $mc=$mc2 $mm=$mm2 \
227
214
$mj=$mj2 $ms=$ms2 $mn=$mn2 $mw=$mw2 where $nams=$tc2]
228
215
expect {
229
216
        -re "Setting" {
238
225
                incr mmatches
239
226
                exp_continue
240
227
        }
241
 
        -re "$gm *= $gm2" {
242
 
                incr mmatches
243
 
                exp_continue
244
 
        }
245
228
        -re "$gc *= $gc2" {
246
229
                incr mmatches
247
230
                exp_continue
258
241
                incr mmatches
259
242
                exp_continue
260
243
        }
261
 
        -re "$gw *= $gw2" {
262
 
                incr mmatches
263
 
                exp_continue
264
 
        }
265
244
        -re "$mm *= $mm2" {
266
245
                incr mmatches
267
246
                exp_continue
305
284
        }
306
285
}
307
286
 
308
 
if {$mmatches != 17} {
 
287
if {$mmatches != 15} {
309
288
        send_user "\nFAILURE:  sacctmgr had a problem modifying clusters\n"
310
289
        set exit_code 1
311
290
}
317
296
#
318
297
# Use sacctmgr to list the addition of cluster
319
298
#
320
 
set slist_pid [spawn $sacctmgr $lis $clu format=$fs,$gm,$gc,$gj,$gs,$gn,$gw,$mm,$mc,$mj,$ms,$mn,$mw]
 
299
set slist_pid [spawn $sacctmgr $lis $clu format=$fs,$gc,$gj,$gs,$gn,$mm,$mc,$mj,$ms,$mn,$mw]
321
300
expect {
322
301
        -re "Cluster" {
323
302
                incr lmatches
327
306
                incr lmatches
328
307
                exp_continue
329
308
        }
330
 
        -re "$fs1 *$gm1 *$gc1 *$gj1 *$gs1 *$gn1 *$gw1 *$mm1 *$mc1 *$mj1 *$ms1 *$mn1 *$mw1" {
 
309
        -re "$fs1 *$gc1 *$gj1 *$gs1 *$gn1 *$mm1 *$mc1 *$mj1 *$ms1 *$mn1 *$mw1" {
331
310
                incr lmatches
332
311
                exp_continue
333
312
        }
335
314
                incr lmatches
336
315
                exp_continue
337
316
        }
338
 
        -re "$fs2 *$gm2 *$gc2 *$gj2 *$gs2 *$gn2 *$gw2 *$mm2 *$mc2 *$mj2 *$ms2 *$mn2 *$mw2" {
 
317
        -re "$fs2 *$gc2 *$gj2 *$gs2 *$gn2 *$mm2 *$mc2 *$mj2 *$ms2 *$mn2 *$mw2" {
339
318
                incr lmatches
340
319
                exp_continue
341
320
        }
343
322
                incr lmatches
344
323
                exp_continue
345
324
        }
346
 
        -re "$fs1 *$gm1 *$gc1 *$gj1 *$gs1 *$gn1 *$gw1 *$mm1 *$mc1 *$mj1 *$ms1 *$mn1 *$mw1" {
 
325
        -re "$fs1 *$gc1 *$gj1 *$gs1 *$gn1 *$mm1 *$mc1 *$mj1 *$ms1 *$mn1 *$mw1" {
347
326
                incr lmatches
348
327
                exp_continue
349
328
        }