diff --git a/testsuite/slurm_unit/api/manual/allocate-tst.c b/testsuite/slurm_unit/api/manual/allocate-tst.c index 778184f286b3c7f952d00af6cbbd4b79f7879a0a..ad29a051e54b72f9127a1bc551ec3adf183c09e7 100644 --- a/testsuite/slurm_unit/api/manual/allocate-tst.c +++ b/testsuite/slurm_unit/api/manual/allocate-tst.c @@ -3,7 +3,7 @@ ***************************************************************************** * Copyright (C) 2002 The Regents of the University of California. * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). - * Written by Moe Jette <jette1@llnl.gov> and Joey Ekstrom <ekstrom1@llnl.gov> + * Written by Morris Jette <jette1@llnl.gov> et.al. * UCRL-CODE-2002-040. * * This file is part of SLURM, a resource management program. diff --git a/testsuite/slurm_unit/api/manual/cancel-tst.c b/testsuite/slurm_unit/api/manual/cancel-tst.c index f1fa2c59e15e33f53df03314ab704ce62425a739..0f083358a97912eaad4a6bf9ecfc8d6ad366e3af 100644 --- a/testsuite/slurm_unit/api/manual/cancel-tst.c +++ b/testsuite/slurm_unit/api/manual/cancel-tst.c @@ -1,3 +1,29 @@ +*****************************************************************************\ + * cancel-tst.c - exercise the SLURM cancel API + ***************************************************************************** + * Copyright (C) 2002 The Regents of the University of California. + * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). + * Written by Morris Jette <jette1@llnl.gov> et.al. + * UCRL-CODE-2002-040. + * + * This file is part of SLURM, a resource management program. + * For details, see <http://www.llnl.gov/linux/slurm/>. + * + * 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +\*****************************************************************************/ + #include <errno.h> #include <signal.h> #include <stdio.h> diff --git a/testsuite/slurm_unit/api/manual/complete-tst.c b/testsuite/slurm_unit/api/manual/complete-tst.c index 806e01882f87456765671fa4b8aa9f79b4ac29e9..30baa174e927c72513d763d03e2802d9f8e87bd5 100644 --- a/testsuite/slurm_unit/api/manual/complete-tst.c +++ b/testsuite/slurm_unit/api/manual/complete-tst.c @@ -1,3 +1,29 @@ +/*****************************************************************************\ + * complete-tst.c - exercise the SLURM complete API + ***************************************************************************** + * Copyright (C) 2002 The Regents of the University of California. + * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). + * Written by Morris Jette <jette1@llnl.gov> et.al. + * UCRL-CODE-2002-040. + * + * This file is part of SLURM, a resource management program. + * For details, see <http://www.llnl.gov/linux/slurm/>. + * + * 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +\*****************************************************************************/ + #include <errno.h> #include <stdio.h> #include <stdlib.h> diff --git a/testsuite/slurm_unit/api/manual/job_info-tst.c b/testsuite/slurm_unit/api/manual/job_info-tst.c index 7a84a5587fc5cc4546ba69d259002f53b3d377a1..0eb43a625e41c36ff054e03cc9c2e91f3f72d9ac 100644 --- a/testsuite/slurm_unit/api/manual/job_info-tst.c +++ b/testsuite/slurm_unit/api/manual/job_info-tst.c @@ -1,3 +1,29 @@ +/*****************************************************************************\ + * job_info-tst.c - exercise the SLURM job information API + ***************************************************************************** + * Copyright (C) 2002 The Regents of the University of California. + * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). + * Written by Morris Jette <jette1@llnl.gov> et.al. + * UCRL-CODE-2002-040. + * + * This file is part of SLURM, a resource management program. + * For details, see <http://www.llnl.gov/linux/slurm/>. + * + * 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +\*****************************************************************************/ + #include <errno.h> #include <stdio.h> diff --git a/testsuite/slurm_unit/api/manual/node_info-tst.c b/testsuite/slurm_unit/api/manual/node_info-tst.c index 950f85539b81cd4f5c30412103958325e624f391..81d73335814e4aac71cd3bdb908f42e192a821b8 100644 --- a/testsuite/slurm_unit/api/manual/node_info-tst.c +++ b/testsuite/slurm_unit/api/manual/node_info-tst.c @@ -1,3 +1,28 @@ +/*****************************************************************************\ + * node_info-tst.c - exercise the SLURM node information API + ***************************************************************************** + * Copyright (C) 2002 The Regents of the University of California. + * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). + * Written by Morris Jette <jette1@llnl.gov> et.al. + * UCRL-CODE-2002-040. + * + * This file is part of SLURM, a resource management program. + * For details, see <http://www.llnl.gov/linux/slurm/>. + * + * 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +\*****************************************************************************/ #include <errno.h> #include <stdio.h> diff --git a/testsuite/slurm_unit/api/manual/partition_info-tst.c b/testsuite/slurm_unit/api/manual/partition_info-tst.c index e11bfbaeaf8de701961cd919fc902bac2a8e98a2..2e1562775ce64f0c5ab26cde88d2e66877f1e62b 100644 --- a/testsuite/slurm_unit/api/manual/partition_info-tst.c +++ b/testsuite/slurm_unit/api/manual/partition_info-tst.c @@ -1,3 +1,28 @@ +/*****************************************************************************\ + * partition_info-tst.c - exercise the SLURM partition_info API + ***************************************************************************** + * Copyright (C) 2002 The Regents of the University of California. + * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). + * Written by Morris Jette <jette1@llnl.gov> et.al. + * UCRL-CODE-2002-040. + * + * This file is part of SLURM, a resource management program. + * For details, see <http://www.llnl.gov/linux/slurm/>. + * + * 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +\*****************************************************************************/ #include <errno.h> #include <stdio.h> diff --git a/testsuite/slurm_unit/api/manual/reconfigure-tst.c b/testsuite/slurm_unit/api/manual/reconfigure-tst.c index d4a686e75589aa868ee35ef930200bb4ad899147..6ceb2e8d0f58ddbd14030a81110861e2291fb38b 100644 --- a/testsuite/slurm_unit/api/manual/reconfigure-tst.c +++ b/testsuite/slurm_unit/api/manual/reconfigure-tst.c @@ -1,3 +1,29 @@ +/*****************************************************************************\ + * reconfigure-tst.c - exercise the SLURM reconfigure API + ***************************************************************************** + * Copyright (C) 2002 The Regents of the University of California. + * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). + * Written by Morris Jette <jette1@llnl.gov> et.al. + * UCRL-CODE-2002-040. + * + * This file is part of SLURM, a resource management program. + * For details, see <http://www.llnl.gov/linux/slurm/>. + * + * 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +\*****************************************************************************/ + #include <errno.h> #include <stdio.h> #include <stdlib.h> diff --git a/testsuite/slurm_unit/api/manual/submit-tst.c b/testsuite/slurm_unit/api/manual/submit-tst.c index 13aa6806f4e074a2f19f909e76a26da3d73fb162..9f8bf4951fd255083283e126d22ec6b3cc874503 100644 --- a/testsuite/slurm_unit/api/manual/submit-tst.c +++ b/testsuite/slurm_unit/api/manual/submit-tst.c @@ -1,3 +1,28 @@ +/*****************************************************************************\ + * submit-tst.c - exercise the SLURM submit job API + ***************************************************************************** + * Copyright (C) 2002 The Regents of the University of California. + * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). + * Written by Morris Jette <jette1@llnl.gov> et.al. + * UCRL-CODE-2002-040. + * + * This file is part of SLURM, a resource management program. + * For details, see <http://www.llnl.gov/linux/slurm/>. + * + * 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +\*****************************************************************************/ #include <errno.h> #include <stdio.h> diff --git a/testsuite/slurm_unit/api/manual/update_config-tst.c b/testsuite/slurm_unit/api/manual/update_config-tst.c index aa93cdc35497272a3fe6359c52cf7f012c5ad15d..db0e24043016af4b1d18055a99d759aa12e291ac 100644 --- a/testsuite/slurm_unit/api/manual/update_config-tst.c +++ b/testsuite/slurm_unit/api/manual/update_config-tst.c @@ -1,3 +1,29 @@ +/*****************************************************************************\ + * update_config-tst.c - exercise the SLURM update configuration API + ***************************************************************************** + * Copyright (C) 2002 The Regents of the University of California. + * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). + * Written by Morris Jette <jette1@llnl.gov> et.al. + * UCRL-CODE-2002-040. + * + * This file is part of SLURM, a resource management program. + * For details, see <http://www.llnl.gov/linux/slurm/>. + * + * 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +\*****************************************************************************/ + #include <errno.h> #include <stdio.h> #include <stdlib.h> diff --git a/testsuite/slurm_unit/slurmctld/security_2_2.c b/testsuite/slurm_unit/slurmctld/security_2_2.c index 726a3ed09e608ff7aa3513b8c90c98e49bc4daec..f630c3b80d3943cc099b3d8875ed6cf6e3731ae0 100644 --- a/testsuite/slurm_unit/slurmctld/security_2_2.c +++ b/testsuite/slurm_unit/slurmctld/security_2_2.c @@ -1,3 +1,29 @@ +/*****************************************************************************\ + * security_2_2.c - test that job's user id is validated. + ***************************************************************************** + * Copyright (C) 2002 The Regents of the University of California. + * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). + * Written by Morris Jette <jette1@llnl.gov> et.al. + * UCRL-CODE-2002-040. + * + * This file is part of SLURM, a resource management program. + * For details, see <http://www.llnl.gov/linux/slurm/>. + * + * 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +\*****************************************************************************/ + #include <errno.h> #include <stdio.h> #include <stdlib.h> diff --git a/testsuite/slurm_unit/slurmd/security_3_1.c b/testsuite/slurm_unit/slurmd/security_3_1.c index b874425760b341ed62363c3a3647674243974ada..deabc44824f717218b15a22c846f35672caefda1 100644 --- a/testsuite/slurm_unit/slurmd/security_3_1.c +++ b/testsuite/slurm_unit/slurmd/security_3_1.c @@ -1,3 +1,31 @@ +/*****************************************************************************\ + * security_3_1.c - Spawn a bogus batch job launch request (not from + * privileged user). Make sure that slurmd rejects the request and logs it. + * Much of this code is lifted from slurmctld/job_scheduler.c:_launch_job + ***************************************************************************** + * Copyright (C) 2002 The Regents of the University of California. + * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). + * Written by Morris Jette <jette1@llnl.gov> et.al. + * UCRL-CODE-2002-040. + * + * This file is part of SLURM, a resource management program. + * For details, see <http://www.llnl.gov/linux/slurm/>. + * + * 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., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +\*****************************************************************************/ + #include <stdio.h> #include <stdlib.h> #include <sys/types.h> @@ -15,10 +43,6 @@ static int _report_results(slurm_msg_t *response_msg_ptr); static int _send_launch_msg(batch_job_launch_msg_t *launch_msg_ptr); static void _usage(char *prog_name); -/* Spawn a bogus batch job launch request (not from privileged user). - * Make sure that slurmd rejects the request and logs it. - * Much of this code is lifted from slurmctld/job_scheduler.c:_launch_job - */ int main(int argc, char *argv[]) { batch_job_launch_msg_t launch_msg;