From 189ca5f96f2f94d1da90b83c091d6f9749b74509 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Mon, 14 May 2012 12:01:15 -0700 Subject: [PATCH] Add header --- testsuite/expect/inc3.11.1 | 35 ++++++++++++++++++++++++++++++++--- testsuite/expect/inc3.11.2 | 32 ++++++++++++++++++++++++++++++-- testsuite/expect/inc3.11.3 | 37 ++++++++++++++++++++++++++++++++----- testsuite/expect/inc3.11.4 | 31 +++++++++++++++++++++++++++++++ testsuite/expect/inc3.11.5 | 33 ++++++++++++++++++++++++++++++--- testsuite/expect/inc3.11.6 | 33 ++++++++++++++++++++++++++++++--- 6 files changed, 185 insertions(+), 16 deletions(-) diff --git a/testsuite/expect/inc3.11.1 b/testsuite/expect/inc3.11.1 index 9be167a39c7..3e7ff84ccd7 100644 --- a/testsuite/expect/inc3.11.1 +++ b/testsuite/expect/inc3.11.1 @@ -1,6 +1,35 @@ -#!/usr/bin/expect - - +############################################################################ +# Purpose: Test of SLURM functionality +# to be called from test3.11 +# Make a list of lists with a series of parameters to test. +# All the tests in goodtests should pass, all those in badtests +# should fail. +# +############################################################################ +# Copyright (C) 2009 Lawrence Livermore National Security +# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). +# Written by Dave Bremer <dbremer@llnl.gov> +# CODE-OCEC-09-009. All rights reserved. +# +# +# This file is part of SLURM, a resource management program. +# For details, see <http://www.schedmd.com/slurmdocs/>. +# 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. +############################################################################ proc inc3_11_1 {} { global def_node user_name def_partition exit_code res_name diff --git a/testsuite/expect/inc3.11.2 b/testsuite/expect/inc3.11.2 index 45fa88c76af..130a0da5ff6 100644 --- a/testsuite/expect/inc3.11.2 +++ b/testsuite/expect/inc3.11.2 @@ -1,5 +1,33 @@ -#!/usr/bin/expect - +############################################################################ +# Purpose: Test of SLURM functionality +# to be called from test3.11 +# Create a reservation and update it in various ways +# +############################################################################ +# Copyright (C) 2009 Lawrence Livermore National Security +# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). +# Written by Dave Bremer <dbremer@llnl.gov> +# CODE-OCEC-09-009. All rights reserved. +# +# +# This file is part of SLURM, a resource management program. +# For details, see <http://www.schedmd.com/slurmdocs/>. +# 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. +############################################################################ proc inc3_11_2 {} { global def_node user_name def_partition exit_code res_name diff --git a/testsuite/expect/inc3.11.3 b/testsuite/expect/inc3.11.3 index 49de36f6636..35f1c3e67bd 100644 --- a/testsuite/expect/inc3.11.3 +++ b/testsuite/expect/inc3.11.3 @@ -1,5 +1,34 @@ -#!/usr/bin/expect - +############################################################################ +# Purpose: Test of SLURM functionality +# to be called from test3.11 +# Make a reservation, submit a job to it, confirm that the +# job is paired with the reservation. +# +############################################################################ +# Copyright (C) 2009 Lawrence Livermore National Security +# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). +# Written by Dave Bremer <dbremer@llnl.gov> +# CODE-OCEC-09-009. All rights reserved. +# +# +# This file is part of SLURM, a resource management program. +# For details, see <http://www.schedmd.com/slurmdocs/>. +# 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. +############################################################################ proc inc3_11_3 {} { global user_name exit_code res_name @@ -7,9 +36,7 @@ proc inc3_11_3 {} { global alpha_numeric_under scancel # TEST 3 - # Make a reservation, submit a job to it, confirm that the job is paired - # with the reservation. - # + send_user "\n+++++ STARTING TEST 3 +++++\n" # Make the reservation set ret_code [create_res "StartTime=now+60minutes Duration=60 NodeCnt=1 User=$user_name" 0] diff --git a/testsuite/expect/inc3.11.4 b/testsuite/expect/inc3.11.4 index 09fcedd1953..9840c33c55d 100644 --- a/testsuite/expect/inc3.11.4 +++ b/testsuite/expect/inc3.11.4 @@ -1,3 +1,34 @@ +############################################################################ +# Purpose: Test of SLURM functionality +# to be called from test3.11 +# If not running as root, make a reservation restricted to root, +# submit a job, and confirm that the job is rejected. +# +############################################################################ +# Copyright (C) 2009 Lawrence Livermore National Security +# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). +# Written by Dave Bremer <dbremer@llnl.gov> +# CODE-OCEC-09-009. All rights reserved. +# +# +# This file is part of SLURM, a resource management program. +# For details, see <http://www.schedmd.com/slurmdocs/>. +# 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. +############################################################################ proc inc3_11_4 {} { global user_name exit_code res_name diff --git a/testsuite/expect/inc3.11.5 b/testsuite/expect/inc3.11.5 index 498c2b2bbf1..8f2b88c833f 100644 --- a/testsuite/expect/inc3.11.5 +++ b/testsuite/expect/inc3.11.5 @@ -1,6 +1,33 @@ -#!/usr/bin/expect - - +############################################################################ +# Purpose: Test of SLURM functionality +# to be called from test3.11 +# Test node reservation conflict +# +############################################################################ +# Copyright (C) 2009 Lawrence Livermore National Security +# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). +# Written by Dave Bremer <dbremer@llnl.gov> +# CODE-OCEC-09-009. All rights reserved. +# +# +# This file is part of SLURM, a resource management program. +# For details, see <http://www.schedmd.com/slurmdocs/>. +# 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. +############################################################################ proc inc3_11_5 {} { global user_name exit_code res_name diff --git a/testsuite/expect/inc3.11.6 b/testsuite/expect/inc3.11.6 index 8e3f3b179a9..18a861c4ad0 100644 --- a/testsuite/expect/inc3.11.6 +++ b/testsuite/expect/inc3.11.6 @@ -1,6 +1,33 @@ -#!/usr/bin/expect - - +############################################################################ +# Purpose: Test of SLURM functionality +# to be called from test3.11 +# Test time reservation conflict +# +############################################################################ +# Copyright (C) 2009 Lawrence Livermore National Security +# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). +# Written by Dave Bremer <dbremer@llnl.gov> +# CODE-OCEC-09-009. All rights reserved. +# +# +# This file is part of SLURM, a resource management program. +# For details, see <http://www.schedmd.com/slurmdocs/>. +# 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. +############################################################################ proc inc3_11_6 {} { global user_name exit_code res_name file_in bin_rm -- GitLab