From 3e2360d383d8e7503a8afe07291ab8c0b1182a14 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sat, 17 Nov 2018 17:54:07 +0200 Subject: Implement the terminate-instances command * TODO: Update. * doc/Makefile.inc: Add new files. * doc/eclat-mkinst.1: Mention the terminate command. * doc/eclat-terminate.1: New file. * etc/Makefile.am: Add new files. * etc/terminate-instances.fln: New file. * src/eclat.c (cmdtab): Register new command. * src/eclat.h (eclat_terminate_instances): New proto. * src/startstop.c (eclat_terminate_instances): New function. * tests/Makefile.am: Add new test. * tests/testsuite.at: Likewise. * tests/terminate-instances.at: New test. --- tests/terminate-instances.at | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/terminate-instances.at (limited to 'tests/terminate-instances.at') diff --git a/tests/terminate-instances.at b/tests/terminate-instances.at new file mode 100644 index 0000000..7242986 --- /dev/null +++ b/tests/terminate-instances.at @@ -0,0 +1,39 @@ +# This file is part of Eclat -*- Autotest -*- +# Copyright (C) 2012-2018 Sergey Poznyakoff +# +# Eclat 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 3, or (at your option) +# any later version. +# +# Eclat 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 Eclat. If not, see . + +ECLAT_TEST_FORMAT([TerminateInstances], +[TerminateInstances], +[terminate-instances.fln], +[ + 59dbff89-35bd-4eac-99ed-be587EXAMPLE + + + i-1234567890abcdef0 + + 32 + shutting-down + + + 16 + running + + + + +], +[i-1234567890abcdef0: running => shutting-down +]) + -- cgit v1.2.1