summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Bastian <jbastian@redhat.com>2015-12-17 16:59:46 -0600
committerJeffrey Bastian <jbastian@redhat.com>2015-12-17 17:02:52 -0600
commit6ecba6b22ad99c9af6519a4e5b9dfa15b1cbf0f1 (patch)
tree265d52f5ca853917cc9bb75178a634b78d482d7e
parentf328d165a5e5330c708ef9358232114d1efb6669 (diff)
downloadbeaker-tasks-6ecba6b22ad99c9af6519a4e5b9dfa15b1cbf0f1.tar.gz
beaker-tasks-6ecba6b22ad99c9af6519a4e5b9dfa15b1cbf0f1.tar.xz
beaker-tasks-6ecba6b22ad99c9af6519a4e5b9dfa15b1cbf0f1.zip
add /general/misc/fail taskgeneral-misc-fail-v1.0
-rw-r--r--general/misc/fail/Makefile64
-rw-r--r--general/misc/fail/PURPOSE1
-rwxr-xr-xgeneral/misc/fail/runtest.sh14
3 files changed, 79 insertions, 0 deletions
diff --git a/general/misc/fail/Makefile b/general/misc/fail/Makefile
new file mode 100644
index 0000000..9fc72db
--- /dev/null
+++ b/general/misc/fail/Makefile
@@ -0,0 +1,64 @@
+# Copyright (c) 2015 Jeffrey Bastian. All rights reserved. This copyrighted
+# material is made available to anyone wishing to use, modify, copy, or
+# redistribute it subject to the terms and conditions of the GNU General Public
+# License v.2.
+#
+# This program 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 this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Author: Jeffrey Bastian
+
+export TEST=/general/misc/fail
+export TESTVERSION=1.0
+
+# A phony target is one that is not really the name of a file.
+# It is just a name for some commands to be executed when you
+# make an explicit request. There are two reasons to use a
+# phony target: to avoid a conflict with a file of the same
+# name, and to improve performance.
+.PHONY: all install download clean
+
+# executables to be built should be added here, they will be generated on the system under test.
+BUILT_FILES=
+
+# data files, .c files, scripts anything needed to either compile the test and/or run it.
+FILES=$(METADATA) runtest.sh Makefile
+
+run: build
+ ./runtest.sh
+
+build: $(BUILT_FILES)
+ chmod a+x ./runtest.sh
+
+clean:
+ rm -f *~ *.rpm $(BUILT_FILES)
+
+# You may need to add other targets e.g. to build executables from source code
+# Add them here:
+
+
+# Include Common Makefile
+include /usr/share/rhts/lib/rhts-make.include
+
+# Generate the testinfo.desc here:
+$(METADATA): Makefile
+ @touch $(METADATA)
+ @echo "Owner: Jeffrey Bastian " >$(METADATA)
+ @echo "Name: $(TEST)" >> $(METADATA)
+ @echo "Path: $(TEST_DIR)" >> $(METADATA)
+ @echo "License: GPLv2" >> $(METADATA)
+ @echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
+ @echo "Description: always fail" >> $(METADATA)
+ @echo "TestTime: 30m" >> $(METADATA)
+ @echo "RunFor: general" >> $(METADATA)
+ @echo "Releases: RHEL7" >> $(METADATA)
+ @echo "Architectures: x86_64 aarch64 ppc64 ppc64le"\
+ "s390 s390x" >> $(METADATA)
+ @echo "Destructive: no" >> $(METADATA)
+ @echo "Confidential: no" >> $(METADATA)
+ @echo "Priority: Normal" >> $(METADATA)
diff --git a/general/misc/fail/PURPOSE b/general/misc/fail/PURPOSE
new file mode 100644
index 0000000..8e4158d
--- /dev/null
+++ b/general/misc/fail/PURPOSE
@@ -0,0 +1 @@
+Always fail
diff --git a/general/misc/fail/runtest.sh b/general/misc/fail/runtest.sh
new file mode 100755
index 0000000..4749564
--- /dev/null
+++ b/general/misc/fail/runtest.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# Include Beaker environment
+. /usr/bin/rhts-environment.sh || exit 1
+. /usr/share/beakerlib/beakerlib.sh || exit 1
+
+rlJournalStart
+ rlPhaseStartTest
+ rlFail "failing comment"
+ rlPhaseEnd
+rlJournalEnd
+
+# Print the test report
+rlJournalPrintText