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

« back to all changes in this revision

Viewing changes to testsuite/expect/test21.7

  • 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
44
45
set nams        Names
45
46
set nam         Name
46
47
set fs          Fairshare
47
 
set gm          GrpCPUMins
48
48
set gc          GrpCPUs
49
49
set gj          GrpJobs
50
50
set gs          GrpSubmitJobs
51
51
set gn          GrpNodes
52
 
set gw          GrpWall
53
52
set mm          MaxCPUMins
54
53
set mc          MaxCPUs
55
54
set mj          MaxJobs
61
60
set tc2         tcluster2
62
61
set tc3         tcluster3
63
62
set fs1         2500
64
 
set gm1         1000000
65
63
set gc1         50
66
64
set gj1         100
67
65
set gs1         500
68
66
set gn1         300
69
 
set gw1         00:45:00
70
67
set mc1         100
71
68
set mm1         100000
72
69
set mj1         500
95
92
# Use sacctmgr to create a cluster
96
93
#
97
94
set sadd_pid [spawn $sacctmgr $add $clu $nams=$tc1,$tc2,$tc3 $fs=$fs1  \
98
 
$gm=$gm1 $gc=$gc1 $gj=$gj1 $gn=$gn1 $gs=$gs1 $gw=$gw1 $mc=$mc1 $mm=$mm1 \
 
95
$gc=$gc1 $gj=$gj1 $gn=$gn1 $gs=$gs1 $mc=$mc1 $mm=$mm1 \
99
96
$mj=$mj1 $ms=$ms1 $mn=$mn1 $mw=$mw1]
100
97
expect {
101
98
        -re "privilege to preform this action" {
126
123
                incr amatches
127
124
                exp_continue
128
125
        }
129
 
        -re "$gm *= $gm1" {
130
 
                incr amatches
131
 
                exp_continue
132
 
        }
133
126
        -re "$gc *= $gc1" {
134
127
                incr amatches
135
128
                exp_continue
146
139
                incr amatches
147
140
                exp_continue
148
141
        }
149
 
        -re "$gw *= $gw1" {
150
 
                incr amatches
151
 
                exp_continue
152
 
        }
153
142
        -re "$mm *= $mm1" {
154
143
                incr amatches
155
144
                exp_continue
196
185
        send_user "\nWARNING: not authorized to perform this test\n"
197
186
        exit $exit_code
198
187
}
199
 
if {$amatches != 20} {
 
188
if {$amatches != 18} {
200
189
        send_user "\nFAILURE:  sacctmgr had a problem adding clusters\n"
201
190
        set exit_code 1
202
191
}
208
197
#
209
198
# Use sacctmgr to list the addition of cluster
210
199
#
211
 
set slist_pid [spawn $sacctmgr $lis $clu format=$fs,$gm,$gc,$gj,$gs,$gn,$gw,$mm,$mc,$mj,$ms,$mn,$mw ]
 
200
set slist_pid [spawn $sacctmgr $lis $clu format=$fs,$gc,$gj,$gs,$gn,$mm,$mc,$mj,$ms,$mn,$mw ]
212
201
expect {
213
202
        -re "Cluster" {
214
203
                incr lmatches
218
207
                incr lmatches
219
208
                exp_continue
220
209
        }
221
 
        -re "$fs1 *$gm1 *$gc1 *$gj1 *$gs1 *$gn1 *$gw1 *$mm1 *$mc1 *$mj1 *$ms1 *$mn1 *$mw1" {
 
210
        -re "$fs1 *$gc1 *$gj1 *$gs1 *$gn1 *$mm1 *$mc1 *$mj1 *$ms1 *$mn1 *$mw1" {
222
211
                incr lmatches
223
212
                exp_continue
224
213
        }
226
215
                incr lmatches
227
216
                exp_continue
228
217
        }
229
 
        -re "$fs1 *$gm1 *$gc1 *$gj1 *$gs1 *$gn1 *$gw1 *$mm1 *$mc1 *$mj1 *$ms1 *$mn1 *$mw1" {
 
218
        -re "$fs1 *$gc1 *$gj1 *$gs1 *$gn1 *$mm1 *$mc1 *$mj1 *$ms1 *$mn1 *$mw1" {
230
219
                incr lmatches
231
220
                exp_continue
232
221
        }
234
223
                incr lmatches
235
224
                exp_continue
236
225
        }
237
 
        -re "$fs1 *$gm1 *$gc1 *$gj1 *$gs1 *$gn1 *$gw1 *$mm1 *$mc1 *$mj1 *$ms1 *$mn1 *$mw1" {
 
226
        -re "$fs1 *$gc1 *$gj1 *$gs1 *$gn1 *$mm1 *$mc1 *$mj1 *$ms1 *$mn1 *$mw1" {
238
227
                incr lmatches
239
228
                exp_continue
240
229
        }