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

« back to all changes in this revision

Viewing changes to testsuite/expect/test21.5

  • 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
59
58
set clu         cluster
60
59
set tc1         tcluster1
61
60
set fs1         2500
62
 
set gm1         1000000
63
61
set gc1         50
64
62
set gj1         100
65
63
set gs1         500
66
64
set gn1         300
67
 
set gw1         00:45:00
68
65
set mc1         100
69
66
set mm1         100000
70
67
set mj1         500
152
149
#
153
150
# Use sacctmgr to create a cluster
154
151
#
155
 
set sadd_pid [spawn $sacctmgr -i add $clu $nams=$tc1 $fs=$fs1 $gm=$gm1 \
156
 
$gc=$gc1 $gj=$gj1 $gn=$gn1 $gs=$gs1 $gw=$gw1 $mc=$mc1 $mm=$mm1 \
 
152
set sadd_pid [spawn $sacctmgr -i add $clu $nams=$tc1 $fs=$fs1 \
 
153
$gc=$gc1 $gj=$gj1 $gn=$gn1 $gs=$gs1 $mc=$mc1 $mm=$mm1 \
157
154
$mj=$mj1 $ms=$ms1 $mn=$mn1 $mw=$mw1]
158
155
expect {
159
156
        -re "privilege to preform this action" {
176
173
                incr amatches
177
174
                exp_continue
178
175
        }
179
 
        -re "$gm *= $gm1" {
180
 
                incr amatches
181
 
                exp_continue
182
 
        }
183
176
        -re "$gc *= $gc1" {
184
177
                incr amatches
185
178
                exp_continue
196
189
                incr amatches
197
190
                exp_continue
198
191
        }
199
 
        -re "$gw *= $gw1" {
200
 
                incr amatches
201
 
                exp_continue
202
 
        }
203
192
        -re "$mm *= $mm1" {
204
193
                incr amatches
205
194
                exp_continue
237
226
        send_user "\nWARNING: not authorized to perform this test\n"
238
227
        exit $exit_code
239
228
}
240
 
if {$amatches != 16} {
 
229
if {$amatches != 14} {
241
230
        send_user "\nFAILURE:  sacctmgr had a problem adding clusters got $amatches\n"
242
231
        set exit_code 1
243
232
}