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
54bc3c93
Commit
54bc3c93
authored
9 years ago
by
Nathan Yee
Committed by
Morris Jette
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add new script for test suite
parent
4c2ea657
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/test8.21.bash
+66
-0
66 additions, 0 deletions
testsuite/expect/test8.21.bash
with
66 additions
and
0 deletions
testsuite/expect/test8.21.bash
0 → 100755
+
66
−
0
View file @
54bc3c93
#!/usr/bin/env bash
############################################################################
# Portion of Slurm test suite
############################################################################
# Copyright (C) 2015 SchedMD LLC
# Written by Nathan Yee, SchedMD
#
# This file is part of SLURM, a resource management program.
# For details, see <http://slurm.schedmd.com/>.
# Please also read the included file: DISCLAIMER.
#
# SLURM is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# SLURM is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along
# with SLURM; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
############################################################################
if
[
$#
-ne
5
]
;
then
echo
"test8.21.bash <srun_path> <squeue_path> <job_id> <job_size> <mode:1|2?"
exit
1
fi
srun
=
$1
squeue
=
$2
job_id
=
$3
job_size
=
$4
test_mode
=
$5
delay_time
=
1
while
[
$delay_time
-le
60
]
do
$srun
-N1
--test-only
--immediate
/bin/true
rc
=
$?
if
[
$rc
-eq
0
]
then
break
fi
sleep
$delay_time
delay_time
=
`
expr
$delay_time
+ 1
`
done
if
[
$test_mode
-gt
1
]
then
job_size
=
`
expr
$job_size
+
$job_size
`
sleep_time
=
0
else
sleep_time
=
1
fi
while
[
$job_size
-ge
2
]
do
job_size
=
`
expr
$job_size
/ 2
`
$srun
-N
$job_size
--test-only
sleep
50 &
sleep
$sleep_time
done
$srun
-N1
--test-only
sleep
50 &
sleep
5
$squeue
--jobs
=
$job_id
--steps
--noheader
--format
=
'Step_ID=%i MidplaneList=%N'
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