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

« back to all changes in this revision

Viewing changes to testsuite/expect/test12.2

  • 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) 2005 The Regents of the University of California.
11
11
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
12
12
# Written by Morris Jette <jette1@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
42
43
set aix         0
43
44
 
44
45
# job paramters
45
 
set mem_size    100000
 
46
set mem_size    1024000
46
47
set sleep_time  21
47
48
set ret_code    42
48
49
 
61
62
        set ave_used -1
62
63
        set exit_code 0
63
64
 
64
 
        spawn $prog --noheader --job=$job_id.0 --fields vsize
 
65
        spawn $prog --noheader -p --job=$job_id.0 --fields maxvmsize,maxvmsizetask,avevmsize
65
66
        expect {
66
 
                -re "($float)(\[KMG\]*)/.*:($number) - ($float)(\[KMG\]*)" {
 
67
                -re "($float)(\[KMG\]*).($number).($float)(\[KMG\]*)" {
67
68
                        set mem_used  $expect_out(1,string)
68
69
                        set scale1    $expect_out(2,string)
69
70
                        set mem_task  $expect_out(3,string)
230
231
# Report basic sacct info
231
232
#
232
233
 
233
 
spawn $sacct --noheader --job=$job_id.0 --fields jobid,jobname,status,exitcode
 
234
spawn $sacct --noheader -P --job=$job_id.0 --fields jobid,jobname,state,exitcode
234
235
expect {
235
236
        -re "$job_id\.0" {
236
237
                incr matches
267
268
#   expected integer but got "08" (looks like invalid octal number)
268
269
#
269
270
set elapsed_time 0
270
 
spawn $sacct --noheader  --job=$job_id.0 --fields elapsed
 
271
spawn $sacct --noheader -P --job=$job_id.0 --fields elapsed
271
272
expect {
272
273
        -re "($number):($number):(\[0-9\])(\[0-9\])" {
273
274
                set hours $expect_out(1,string)