[LTP] [RFC PATCH 1/1] Remove kdump testsuite
Petr Vorel
pvorel@suse.cz
Mon Jun 2 16:19:18 CEST 2025
kdump testsuite was added in 2008 (17 years), without any update.
Test targets to old RHEL 5.1, SLES10-SP1, Fedora 8, therefore it's not
useful nowadays.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/Makefile | 5 -
testcases/kdump/Makefile | 3 -
testcases/kdump/README | 90 ----
testcases/kdump/doc/00_Descriptions.txt | 71 ---
testcases/kdump/doc/ALL_TEST.txt | 57 --
testcases/kdump/doc/README | 90 ----
testcases/kdump/doc/TEST_PLAN.txt | 49 --
testcases/kdump/lib/Makefile | 8 -
testcases/kdump/lib/crasher/Makefile | 14 -
testcases/kdump/lib/crasher/crasher.c | 130 -----
testcases/kdump/lib/kprobes/Makefile | 14 -
testcases/kdump/lib/kprobes/kprobes.c | 53 --
testcases/kdump/lib/lkdtm/Makefile | 19 -
testcases/kdump/lib/lkdtm/lkdtm.c | 487 ------------------
testcases/kdump/lib/setup.sh | 108 ----
testcases/kdump/lib/ssh.tcl | 23 -
testcases/kdump/lib/sysinfo.sh | 54 --
testcases/kdump/lib/test.sh | 271 ----------
testcases/kdump/lib/verify.sh | 65 ---
testcases/kdump/runkdump.conf | 76 ---
testcases/kdump/runkdump.sh | 282 ----------
.../kdump/sample/runkdump.BASIC_LKDTM.RHEL | 76 ---
.../kdump/sample/runkdump.BASIC_LKDTM.SLES | 76 ---
testcases/kdump/sample/runkdump.CRASHER.RHEL | 76 ---
testcases/kdump/sample/runkdump.CRASHER.SLES | 76 ---
.../kdump/sample/runkdump.EXTRA_LKDTM.RHEL | 76 ---
.../kdump/sample/runkdump.EXTRA_LKDTM.SLES | 76 ---
27 files changed, 2425 deletions(-)
delete mode 100644 testcases/kdump/Makefile
delete mode 100644 testcases/kdump/README
delete mode 100644 testcases/kdump/doc/00_Descriptions.txt
delete mode 100644 testcases/kdump/doc/ALL_TEST.txt
delete mode 100644 testcases/kdump/doc/README
delete mode 100644 testcases/kdump/doc/TEST_PLAN.txt
delete mode 100644 testcases/kdump/lib/Makefile
delete mode 100644 testcases/kdump/lib/crasher/Makefile
delete mode 100644 testcases/kdump/lib/crasher/crasher.c
delete mode 100644 testcases/kdump/lib/kprobes/Makefile
delete mode 100644 testcases/kdump/lib/kprobes/kprobes.c
delete mode 100644 testcases/kdump/lib/lkdtm/Makefile
delete mode 100644 testcases/kdump/lib/lkdtm/lkdtm.c
delete mode 100755 testcases/kdump/lib/setup.sh
delete mode 100755 testcases/kdump/lib/ssh.tcl
delete mode 100755 testcases/kdump/lib/sysinfo.sh
delete mode 100755 testcases/kdump/lib/test.sh
delete mode 100755 testcases/kdump/lib/verify.sh
delete mode 100644 testcases/kdump/runkdump.conf
delete mode 100755 testcases/kdump/runkdump.sh
delete mode 100644 testcases/kdump/sample/runkdump.BASIC_LKDTM.RHEL
delete mode 100644 testcases/kdump/sample/runkdump.BASIC_LKDTM.SLES
delete mode 100644 testcases/kdump/sample/runkdump.CRASHER.RHEL
delete mode 100644 testcases/kdump/sample/runkdump.CRASHER.SLES
delete mode 100644 testcases/kdump/sample/runkdump.EXTRA_LKDTM.RHEL
delete mode 100644 testcases/kdump/sample/runkdump.EXTRA_LKDTM.SLES
diff --git a/testcases/Makefile b/testcases/Makefile
index d98d79f3c1..b45fca6da3 100644
--- a/testcases/Makefile
+++ b/testcases/Makefile
@@ -6,11 +6,6 @@ top_srcdir ?= ..
include $(top_srcdir)/include/mk/env_pre.mk
-# XXX (garrcoop):
-# kdump shouldn't be compiled by default, because it's runtime based and will
-# crash the build host (the tests need to be fixed to just build, not run).
-FILTER_OUT_DIRS := kdump
-
ifneq ($(WITH_OPEN_POSIX_TESTSUITE),yes)
FILTER_OUT_DIRS += open_posix_testsuite
endif
diff --git a/testcases/kdump/Makefile b/testcases/kdump/Makefile
deleted file mode 100644
index 28fdf64da3..0000000000
--- a/testcases/kdump/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-all: runkdump.conf
- chmod a+x runkdump.sh lib/*.sh
- ./runkdump.sh
diff --git a/testcases/kdump/README b/testcases/kdump/README
deleted file mode 100644
index e895eb84c6..0000000000
--- a/testcases/kdump/README
+++ /dev/null
@@ -1,90 +0,0 @@
-KDUMP TESTS AUTOMATION SUITE
-----------------------------
-
-The kdump test automation suite helps run the kdump tests and report
-results. The testscripts cycle through a series of crash
-scenarios. Each test cycle does the following:
-
-1. Sets up a crash scenario.
-2. Forces a crash.
-3. Kdump kernel boots and saves a vmcore.
-4. System reboots to 1st kernel.
-5. vmcore is validated and results are saved.
-6. After a 1 to 2 minute delay, the next crash scenario is setup and
- run.
-
-The scripts make use of the crasher module for basic testing of kdump
-and the new Linux Kernel Dump Test Module (LKDTM) for more involved
-testing. LKDTM makes use of the kprobes infrastructure for inserting
-crashpoints into the kernel at run-time. Thus the kernel need not be
-patched and rebuilt.This script also tests kdump dumping on different
-destinations like ext3, raw and network dump.
-
-KDUMP TEST INSTRUCTION
-----------------------
-
-Follow the steps to setup kdump test automation suite.
-
-The tests are written for SuSE Linux Enterprise Server 10 (and onward
-releases), OpenSUSE, Fedora, Debian, as well as RedHat Enterprise Linux
-5. Since KDUMP is supported by the above mentioned distro's the tests
-were written and tested on them. Contribution towards supporting more
-distributions are welcome.
-
-1. Install these additional packages:
-
-For SLES10 or OpenSUSE Distro :
-
- * kernel-kdump
- * kernel-source
- * kexec-tools
- * zlib-64bit-<xxx> (ppc64 only)
- * expect (if dump to a network destination)
-
-For RHEL5 or Fedora distro :
-
- * kexec-tools
- * kernel-devel
- * kernel-debuginfo rpm (if using crash to verify vmcore)
- * kernel-kdump ( only for ppc64 )
- * expect (if dump to a network destination)
-
-2. Make sure the partition where the tests are running has space for
-the tests results and one vmcore file (size of physical memory).
-
-3. Modify configuration file runkdump.conf or copy a existing one from
-sample/.
-
-4. Run "make". Carefully check for any errors.
-
-Few Important points to remember:
-
-* If you need to stop the tests before all tests have run, run "crontab
--r" and "killall runkdump.sh" within 1 minute after the 1st kernel
-reboots. Then, if you'd like to carry on tests from the point on, run
-"crontab kdump.cron", and "./runkdump.sh". If you'd like to start tests
-from the beginning, modify the configuration file, and set
-"REBOOT=0". Then, "./runkdump.sh"
-
-* A failure is likely to occur when booting the kdump kernel. If this
-happens, you'll need to manually reset the system so it reboots back to
-the 1st kernel and continues on to the next test. For this reason, it's
-best to monitor the tests from a console. If possible, setup a serial
-console (not a must, any type of console setup will do). If using
-minicom, enable saving of kernel messages displayed on minicom into a
-file, by pressing ctrl+a+l on the console. Else, when it is observed
-that the kdump kernel has failed to boot, manually copy the boot message
-into a file to enable the debugging the cause of the hang.
-
-* The results are saved in
-<kdump-test-dir>/log/<hostname>.<date-time>. The "status" file in that
-directory shows where you are in the test run. When the "Test run
-complete" entry appears in that file, you're done. Verbose log can be
-found at /tmp/kdump-<date>.log.
-
-* The test machine would be unavailable for any other work during the
-period of the test run.
-
-* System may hang if incorrect partition information is provided for
-dumping, like specifying a partition which does not exist, specifying a
-partition label which does not exist. This is not ltp kdump bug.
diff --git a/testcases/kdump/doc/00_Descriptions.txt b/testcases/kdump/doc/00_Descriptions.txt
deleted file mode 100644
index c2d497d0b6..0000000000
--- a/testcases/kdump/doc/00_Descriptions.txt
+++ /dev/null
@@ -1,71 +0,0 @@
-Kdump Test Description
-----------------------
-
-The test suite consists of two parts
-
- * crasher: This is a basic kdump functionality testing.
- * lkdtm : These tests use kprobes / jprobes to put probes in different
- function for invoking a dump.
-
-Only one of the above is used for testing at a time. While building the scripts,
-select the one you want to run. It is suggested to use the lkdtm tests (which is
-the default) for more elaborate testing.
-
-The crasher module tests kdump in following senarios.
-
- * ACS: invoke dump using sysrq C.
- * ACP: invoke dump using panic [ panic test 0 ].
- * ACB: invoke dump using BUG [ panic test 1 ].
- * ACE: invoke dump using panic_on_oops [ panic test 2 ].
- * ACL: invoke dump in a hang situation.
-
-On some type of hardware [ eg IBM System p and System i machines ] tests ACB
-and ACE will require manual intervention. After running these tests machine
-will drop into xmon. User will have to type X to get out of the xmon and
-continue with the tests. As for the ACL test, user will have to invoke a dump
-using the Hardware Management Console via soft reset.
-
-The lkdtm module consists of following tests
-
- * KPIDB: bug in do_irq
- * KPIDE: exception in do_irq
- * KPIDL: hang in do_irq
- * KPIDP: panic in do_irq
- * KPIEB: bug in handle_IRQ_event
- * KPIEE: exception in handle_IRQ_event
- * KPIEL: hang in handle_IRQ_event
- * KPIEP: panic in handle_IRQ_event
- * KPTEB: bug in tasklet_action
- * KPTEE: exception in tasklet_action
- * KPTEL: hang in tasklet_action
- * KPTEP: panic in tasklet_action
- * KPBB : bug in ll_rw_block
- * KPBE : exception in ll_rw_block
- * KPBL : hang in ll_rw_block
- * KPBP : panic in ll_rw_block
- * KPMSB: bug in shrink_inactive_list
- * KPMSE: exception in shrink_inactive_list
- * KPMSL: hang in shrink_inactive_list
- * KPMSP: panic in shrink_inactive_list
- * KPTB : bug in hr_timer_start
- * KPTE : exception in hr_timer_start
- * KPTL : hang in hr_timer_start
- * KPTP : panic in hr_timer_start
-
-On certain type of hardware [ eg IBM system p and system i machines] tests with
-names ending in "B" and "E" might require manual intervention. After running
-these tests machine will drop into debugger if one is configured. User will
-have to type X to get out of the debugger and continue with the tests. For
-tests with name ending in L [loop test] , user will have to invoke a dump using
-the Hardware Management Console via soft reset.
-
-While executing some loop testcases after invoking a dump via Hardware
-Management Console you might get following message
-
-Sending IPI to other cpus...
-done waiting: 1 cpu(s) not responding
-Activate soft-reset to stop other cpu(s)
-
-In such case you will have to re-trigger dump via Hardware Management Console
-one more time. This is a normal senario and not a bug.
-
diff --git a/testcases/kdump/doc/ALL_TEST.txt b/testcases/kdump/doc/ALL_TEST.txt
deleted file mode 100644
index fa91c0e600..0000000000
--- a/testcases/kdump/doc/ALL_TEST.txt
+++ /dev/null
@@ -1,57 +0,0 @@
-The crasher module tests kdump in following scenarios.
- * ACS: invoke dump using sysrq C.
- * ACP: invoke dump using panic [ panic test 0 ].
- * ACB: invoke dump using BUG [ panic test 1 ].
- * ACE: invoke dump using panic_on_oops [ panic test 2 ].
- * ACL: invoke dump in a hang situation.
-
-The LKDTM (Linux Kernel Dump Test Module) module consists of following tests,
- * KPIDB: bug in do_irq
- * KPIDE: exception in do_irq
- * KPIDL: hang in do_irq
- * KPIDP: panic in do_irq
- * KPIDO: overflow in do_irq
- * KPIEB: bug in handle_IRQ_event
- * KPIEE: exception in handle_IRQ_event
- * KPIEL: hang in handle_IRQ_event
- * KPIEP: panic in handle_IRQ_event
- * KPIEO: overflow in handle_IRQ_event
- * KPTEB: bug in tasklet_action
- * KPTEE: exception in tasklet_action
- * KPTEL: hang in tasklet_action
- * KPTEP: panic in tasklet_action
- * KPTEO: overflow in tasklet_action
- * KPBB : bug in ll_rw_block
- * KPBE : exception in ll_rw_block
- * KPBL : hang in ll_rw_block
- * KPBP : panic in ll_rw_block
- * KPBO : overflow in ll_rw_block
- * KPMSB: bug in shrink_inactive_list
- * KPMSE: exception in shrink_inactive_list
- * KPMSL: hang in shrink_inactive_list
- * KPMSP: panic in shrink_inactive_list
- * KPMSO: overflow in shrink_inactive_list
- * KPTB : bug in hr_timer_start
- * KPTE : exception in hr_timer_start
- * KPTL : hang in hr_timer_start
- * KPTP : panic in hr_timer_start
- * KPTO : overflow in hr_timer_start
- * KPSB : bug in scsi_dispatch_cmd
- * KPSE : exception in scsi_dispatch_cmd
- * KPSL : hang in scsi_dispatch_cmd
- * KPSP : panic in scsi_dispatch_cmd
- * KPSO : overflow in scsi_dispatch_cmd
- * KPIB : bug in ide_core_cp
- * KPIE : exception in ide_core_cp
- * KPIL : hang in ide_core_cp
- * KPIP : panic in ide_core_cp
- * KPIO : overflow in ide_core_cp
-
-Extra tests include dump on different destinations,
- * KLEXT: dump on an EXT3 partition
- * KLLBL: dump on an EXT3 partition with a LABEL
- * KLUID: dump on an EXT3 partition with a partition UID.
- * KLRAW: dump on a RAW partition.
- * KNSCP: dump on network.
- * KNNFS: dump on a mounted NFS filesystem.
- * KDENB: kdump propagate
diff --git a/testcases/kdump/doc/README b/testcases/kdump/doc/README
deleted file mode 100644
index d2ef163322..0000000000
--- a/testcases/kdump/doc/README
+++ /dev/null
@@ -1,90 +0,0 @@
-KDUMP TESTS AUTOMATION SUITE
-----------------------------
-
-The kdump test automation suite helps run the kdump tests and report
-results. The testscripts cycle through a series of crash
-scenarios. Each test cycle does the following:
-
-1. Sets up a crash scenario.
-2. Forces a crash.
-3. Kdump kernel boots and saves a vmcore.
-4. System reboots to 1st kernel.
-5. vmcore is validated and results are saved.
-6. After a 1 to 2 minute delay, the next crash scenario is setup and
- run.
-
-The scripts make use of the crasher module for basic testing of kdump
-and the new Linux Kernel Dump Test Module (LKDTM) for more involved
-testing. LKDTM makes use of the kprobes infrastructure for inserting
-crashpoints into the kernel at run-time. Thus the kernel need not be
-patched and rebuilt.This script also tests kdump dumping on different
-destinations like ext3, raw and network dump.
-
-KDUMP TEST INSTRUCTION
-----------------------
-
-Follow the steps to setup kdump test automation suite.
-
-The tests are written for SuSE Linux Enterprise Server 10 (and onward
-releases), OpenSUSE, Fedora, Debian, as well as RedHat Enterprise Linux
-5. Since KDUMP is supported by the above mentioned distro's the tests
-were written and tested on them. Contribution towards supporting more
-distributions are welcome.
-
-1. Install these additional packages:
-
-For SLES10 or OpenSUSE Distro :
-
- * kernel-kdump
- * kernel-source
- * kexec-tools
- * zlib-64bit-<xxx> (ppc64 only)
- * expect (if dump to a network destination)
-
-For RHEL5 or Fedora distro :
-
- * kexec-tools
- * kernel-devel
- * kernel-debuginfo rpm (if using crash to verify vmcore)
- * kernel-kdump ( only for ppc64 )
- * expect (if dump to a network destination)
-
-2. Make sure the partition where the tests are running has space for
-the tests results and one vmcore file (size of physical memory).
-
-3. Modify configuration file runkdump.conf or copy a existing one from
-sample/.
-
-4. Run "runkdump.sh". Carefully check for any errors.
-
-Few Important points to remember:
-
-* If you need to stop the tests before all tests have run, run "crontab
--r" and "killall runkdump.sh" within 1 minute after the 1st kernel
-reboots. Then, if you'd like to carry on tests from the point on, run
-"crontab kdump.cron", and "./runkdump.sh". If you'd like to start tests
-from the beginning, modify the configuration file, and set
-"REBOOT=0". Then, "./runkdump.sh"
-
-* A failure is likely to occur when booting the kdump kernel. If this
-happens, you'll need to manually reset the system so it reboots back to
-the 1st kernel and continues on to the next test. For this reason, it's
-best to monitor the tests from a console. If possible, setup a serial
-console (not a must, any type of console setup will do). If using
-minicom, enable saving of kernel messages displayed on minicom into a
-file, by pressing ctrl+a+l on the console. Else, when it is observed
-that the kdump kernel has failed to boot, manually copy the boot message
-into a file to enable the debugging the cause of the hang.
-
-* The results are saved in
-<kdump-test-dir>/log/<hostname>.<date-time>. The "status" file in that
-directory shows where you are in the test run. When the "Test run
-complete" entry appears in that file, you're done. Verbose log can be
-found at /tmp/kdump.log.
-
-* The test machine would be unavailable for any other work during the
-period of the test run.
-
-* System may hang if incorrect partition information is provided for
-dumping, like specifying a partition which does not exist, specifying a
-partition label which does not exist. This is not ltp kdump bug.
diff --git a/testcases/kdump/doc/TEST_PLAN.txt b/testcases/kdump/doc/TEST_PLAN.txt
deleted file mode 100644
index 3fe243999a..0000000000
--- a/testcases/kdump/doc/TEST_PLAN.txt
+++ /dev/null
@@ -1,49 +0,0 @@
-Following is the Tentative plan for improving LTP-KDUMP Test-cases:
-
-===========================================================================================================
-||S.NO|| ACTIVITY || TENTATIVE-TIME ||
-===========================================================================================================
-|| 1 || Enhance result analysis code of Link Delay || JAN 2008 ||
-|| || and dump filtering || ||
-|| 2 || Develop failure recovery code for failures which || JAN 2008 ||
-|| || could be identified and fixed || ||
-|| 3 || Enhance ltp kdump to support kdump testing || DEC 2007 ||
-|| || on open suse and fedora || ||
-===========================================================================================================
-
-Proposed upcoming work from Cai Qian <qcai@redhat.com>:
-
-Here is my first draft plan of Kexec/Kdump tests enhancement sorted by
-priorities. I would like to add them as many as possible.
-
-== filtered vmcore utilities ==
-- in different compressed levels, verify the vmcore with the correct
- layout.
-- verify it in flat file or ELF formats from a network host.
-
-== analyse vmcore utilities ==
-- GDB
-- crash with better error detecting.
-- crash to analyse Hypervisor and Dom0 Kernel.
-
-== test scripts ==
-- timestamp information for crash was triggered, vmcore was generated,
- and vmcore was verified.
-- aim to 100% automation, and reduce manual setup.
-- tidy up scripts.
-
-== crash scenarios ==
-- SDINT switch for ia64 if possible.
-- Hypervisor crash for Virtualization.
-- crashes on full- and para-virt guests.
-
-== fix bugs in existing tests ==
-- printk LKDTM module can hang the second Kernel.
-
-== kdump configurations and init script ==
-- capture vmcore after init runs.
-- rpm pre- and post-scripts
-- kdump_pre and kdump_post directives
-
-== increase coverages for new kexec/kdump development efforts ==
-- new reserved region syntax in Kernel.
diff --git a/testcases/kdump/lib/Makefile b/testcases/kdump/lib/Makefile
deleted file mode 100644
index 547a52427f..0000000000
--- a/testcases/kdump/lib/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-default:
- $(MAKE) -C crasher
- $(MAKE) -C lkdtm
-
-
-clean:
- $(MAKE) -C crasher clean
- $(MAKE) -C lkdtm clean
diff --git a/testcases/kdump/lib/crasher/Makefile b/testcases/kdump/lib/crasher/Makefile
deleted file mode 100644
index 728cfeb812..0000000000
--- a/testcases/kdump/lib/crasher/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-obj-m := crasher.o
-KDIR := /lib/modules/$(shell uname -r)/build
-PWD := $(shell pwd)
-
-default:
- $(MAKE) -C $(KDIR) M=$(PWD) modules
-
-
-clean:
- make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
- rm -f Module.symvers
-#clean:
-# rm -f *.mod.c *.ko *.o .*.cmd *.symvers
-# rm -rf .tmp_versions
diff --git a/testcases/kdump/lib/crasher/crasher.c b/testcases/kdump/lib/crasher/crasher.c
deleted file mode 100644
index fcdf53a2e2..0000000000
--- a/testcases/kdump/lib/crasher/crasher.c
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * Crasher module for kdump testing
- *
- * This program 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.
- *
- * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * Copyright © IBM Corporation 2007
- *
- */
-
-#include <linux/module.h>
-#include <linux/kernel.h>
-#include <linux/init.h>
-#include <linux/proc_fs.h>
-#include <linux/spinlock.h>
-#include <asm/uaccess.h>
-#include <linux/version.h>
-#include <linux/uaccess.h>
-
-MODULE_LICENSE("GPL");
-
-int crasher_init(void);
-void crasher_exit(void);
-module_init(crasher_init);
-module_exit(crasher_exit);
-
-#define CRASH "crasher" /* name of /proc entry file */
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
-static int crasher_read(char *buf, char **start, off_t offset, int len,
- int *eof, void *data)
-#else
-static ssize_t crasher_read(struct file *file, char __user *buf, size_t len,
- loff_t *offset)
-#endif
-{
- return (sprintf(buf, "\n"));
-}
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
-static int crasher_write(struct file *file, const char *buffer,
- unsigned long count, void *data)
-#else
-static ssize_t crasher_write(struct file *file, const char __user *buffer,
- size_t count, loff_t *data)
-#endif
-{
- char value, *a;
- DEFINE_SPINLOCK(mylock);
-
- /* grab the first byte the user gave us, ignore the rest */
- if (copy_from_user(&value, buffer, 1))
- return -EFAULT;
-
- switch (value) {
- case '0': /* panic the system */
- panic("KDUMP test panic\n");
- break;
-
- case '1': /* BUG() test */
- BUG();
- break;
-
- case '2': /* panic_on_oops test */
- a = 0;
- a[1] = 'A';
- break;
-
- case '3': /* hang w/double spinlock */
- spin_lock_irq(&mylock);
- spin_lock_irq(&mylock);
- break;
-
- default:
- printk("crasher: Bad command\n");
- }
-
- return count; /* tell the user we read all his data,
- somtimes white lies are ok */
-}
-
-/* create a directory in /proc and a debug file in the new directory */
-
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
-static const struct file_operations crasher_proc_fops = {
- .owner = THIS_MODULE,
- .read = crasher_read,
- .write = crasher_write,
-};
-#endif
-
-int crasher_init(void)
-{
- struct proc_dir_entry *crasher_proc;
-
- printk("loaded crasher module\n");
-
- /* build a crasher file that can be set */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
- if ((crasher_proc = create_proc_entry(CRASH, 0, NULL)) == NULL) {
- return -ENOMEM;
- }
- crasher_proc->owner = THIS_MODULE
- crasher_proc->read_proc = crasher_read;
- crasher_proc->write_proc = crasher_write;
-#else
- crasher_proc = proc_create_data(CRASH, 0, NULL,
- &crasher_proc_fops, NULL);
- if (!crasher_proc)
- return -ENOMEM;
-#endif
- return 0;
-}
-
-void crasher_exit(void)
-{
- remove_proc_entry(CRASH, NULL);
- printk("removed crasher module\n");
-}
diff --git a/testcases/kdump/lib/kprobes/Makefile b/testcases/kdump/lib/kprobes/Makefile
deleted file mode 100644
index 6720b58873..0000000000
--- a/testcases/kdump/lib/kprobes/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-#obj-m := lkdtm.o crasher.o
-obj-m := kprobes.o
-KDIR := /lib/modules/$(shell uname -r)/build
-PWD := $(shell pwd)
-default:
- $(MAKE) -C $(KDIR) M=$(PWD) modules
-
-
-clean:
- make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
- rm -f Module.symvers
-#clean:
-# rm -f *.mod.c *.ko *.o .*.cmd *.symvers
-# rm -rf .tmp_versions
diff --git a/testcases/kdump/lib/kprobes/kprobes.c b/testcases/kdump/lib/kprobes/kprobes.c
deleted file mode 100644
index 6f5c50eb54..0000000000
--- a/testcases/kdump/lib/kprobes/kprobes.c
+++ /dev/null
@@ -1,53 +0,0 @@
-#include <linux/kernel.h>
-#include <linux/module.h>
-#include <linux/fs.h>
-#include <linux/uio.h>
-#include <linux/kprobes.h>
-
-/*
- * Jumper probe for do_fork.
- * Mirror principle enables access to arguments of the probed routine
- * from the probe handler.
- */
-
-/* Proxy routine having the same arguments as actual do_fork() routine */
-long jdo_fork(unsigned long clone_flags, unsigned long stack_start,
- struct pt_regs *regs, unsigned long stack_size,
- int __user * parent_tidptr, int __user * child_tidptr)
-{
- printk("jprobe: clone_flags=0x%lx, stack_size=0x%lx, regs=%p\n",
- clone_flags, stack_size, regs);
- /* Always end with a call to jprobe_return(). */
- jprobe_return();
-
- return 0;
-}
-
-static struct jprobe my_jprobe = {
- .entry = jdo_fork
-};
-
-static int __init jprobe_init(void)
-{
- int ret;
- my_jprobe.kp.symbol_name = "do_fork";
-
- if ((ret = register_jprobe(&my_jprobe)) < 0) {
- printk("register_jprobe failed, returned %d\n", ret);
- /* XXX: Exit code is wrong. */
- return -1;
- }
- printk("Planted jprobe at %p, handler addr %p\n",
- my_jprobe.kp.addr, my_jprobe.entry);
- return 0;
-}
-
-static void __exit jprobe_exit(void)
-{
- unregister_jprobe(&my_jprobe);
- printk("jprobe unregistered\n");
-}
-
-module_init(jprobe_init)
- module_exit(jprobe_exit)
- MODULE_LICENSE("GPL");
diff --git a/testcases/kdump/lib/lkdtm/Makefile b/testcases/kdump/lib/lkdtm/Makefile
deleted file mode 100644
index ba88a80d63..0000000000
--- a/testcases/kdump/lib/lkdtm/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-obj-m := lkdtm.o
-KDIR := /lib/modules/$(shell uname -r)/build
-PWD := $(shell pwd)
-USE_SYMBOL_NAME := $(shell echo "${USE_SYMBOL_NAME}")
-
-ifeq (1, $(USE_SYMBOL_NAME))
- EXTRA_CFLAGS := -DUSE_SYMBOL_NAME
-endif
-
-default:
- $(MAKE) -C $(KDIR) M=$(PWD) modules
-
-
-clean:
- make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
- rm -f Module.symvers
-#clean:
-# rm -f *.mod.c *.ko *.o .*.cmd *.symvers
-# rm -rf .tmp_versions
diff --git a/testcases/kdump/lib/lkdtm/lkdtm.c b/testcases/kdump/lib/lkdtm/lkdtm.c
deleted file mode 100644
index 7ea8de6619..0000000000
--- a/testcases/kdump/lib/lkdtm/lkdtm.c
+++ /dev/null
@@ -1,487 +0,0 @@
-/*
- * Kprobe module for testing crash dumps
- *
- * This program 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.
- *
- * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * Copyright (C) IBM Corporation, 2006
- *
- * Author: Ankita Garg <ankita@in.ibm.com>
- * Sachin Sant <sachinp@in.ibm.com>
- * Cai Qian <qcai@redhat.com>
- *
- * This module induces system failures at predefined crashpoints to
- * evaluate the reliability of crash dumps obtained using different dumping
- * solutions.
- *
- * It is adapted from the Linux Kernel Dump Test Tool by
- * Fernando Luis Vazquez Cao <http://lkdtt.sourceforge.net>
- *
- * Usage : insmod lkdtm.ko [recur_count={>0}] cpoint_name=<> cpoint_type=<>
- * [cpoint_count={>0}]
- *
- * recur_count : Recursion level for the stack overflow test. Default is 10.
- *
- * cpoint_name : Crash point where the kernel is to be crashed. It can be
- * one of INT_HARDWARE_ENTRY, INT_HW_IRQ_EN, INT_TASKLET_ENTRY,
- * FS_DEVRW, MEM_SWAPOUT, TIMERADD, SCSI_DISPATCH_CMD,
- * IDE_CORE_CP
- *
- * cpoint_type : Indicates the action to be taken on hitting the crash point.
- * It can be one of PANIC, BUG, EXCEPTION, LOOP, OVERFLOW
- *
- * cpoint_count : Indicates the number of times the crash point is to be hit
- * to trigger an action. The default is 10.
- */
-
-#include <linux/kernel.h>
-#include <linux/fs.h>
-#include <linux/module.h>
-#include <linux/buffer_head.h>
-#include <linux/kprobes.h>
-#include <linux/list.h>
-#include <linux/init.h>
-#include <linux/interrupt.h>
-#include <linux/hrtimer.h>
-#include <scsi/scsi_cmnd.h>
-#include <linux/version.h>
-#include <linux/kallsyms.h>
-
-#ifdef CONFIG_IDE
-#include <linux/ide.h>
-#endif
-
-#define NUM_CPOINTS 8
-#define NUM_CPOINT_TYPES 5
-#define DEFAULT_COUNT 10
-#define REC_NUM_DEFAULT 10
-
-enum cname {
- INVALID,
- INT_HARDWARE_ENTRY,
- INT_HW_IRQ_EN,
- INT_TASKLET_ENTRY,
- FS_DEVRW,
- MEM_SWAPOUT,
- TIMERADD,
- SCSI_DISPATCH_CMD,
- IDE_CORE_CP
-};
-
-enum ctype {
- NONE,
- PANIC,
- BUG,
- EXCEPTION,
- LOOP,
- OVERFLOW
-};
-
-static char *cp_name[] = {
- "INT_HARDWARE_ENTRY",
- "INT_HW_IRQ_EN",
- "INT_TASKLET_ENTRY",
- "FS_DEVRW",
- "MEM_SWAPOUT",
- "TIMERADD",
- "SCSI_DISPATCH_CMD",
- "IDE_CORE_CP"
-};
-
-static char *cp_type[] = {
- "PANIC",
- "BUG",
- "EXCEPTION",
- "LOOP",
- "OVERFLOW"
-};
-
-static struct jprobe lkdtm;
-
-static int lkdtm_parse_commandline(void);
-static void lkdtm_handler(void);
-
-static char *cpoint_name = INVALID;
-static char *cpoint_type = NONE;
-static int cpoint_count = DEFAULT_COUNT;
-static int recur_count = REC_NUM_DEFAULT;
-
-static enum cname cpoint = INVALID;
-static enum ctype cptype = NONE;
-static int count = DEFAULT_COUNT;
-
-module_param(recur_count, int, 0644);
-MODULE_PARM_DESC(recur_count, " Recursion level for the stack overflow test, "
- "default is 10");
-module_param(cpoint_name, charp, 0644);
-MODULE_PARM_DESC(cpoint_name, " Crash Point, where kernel is to be crashed");
-module_param(cpoint_type, charp, 0644);
-MODULE_PARM_DESC(cpoint_type, " Crash Point Type, action to be taken on "
- "hitting the crash point");
-module_param(cpoint_count, int, 0644);
-MODULE_PARM_DESC(cpoint_count, " Crash Point Count, number of times the "
- "crash point is to be hit to trigger action");
-
-unsigned int jp_do_irq(unsigned int irq)
-{
- lkdtm_handler();
- jprobe_return();
- return 0;
-}
-
-irqreturn_t jp_handle_irq_event(unsigned int irq, struct irqaction * action)
-{
- lkdtm_handler();
- jprobe_return();
- return 0;
-}
-
-void jp_tasklet_action(struct softirq_action *a)
-{
- lkdtm_handler();
- jprobe_return();
-}
-
-void jp_ll_rw_block(int rw, int nr, struct buffer_head *bhs[])
-{
- lkdtm_handler();
- jprobe_return();
-}
-
-struct scan_control;
-
-unsigned long jp_shrink_page_list(struct list_head *page_list,
- struct scan_control *sc)
-{
- lkdtm_handler();
- jprobe_return();
- return 0;
-}
-
-int jp_hrtimer_start(struct hrtimer *timer, ktime_t tim,
- const enum hrtimer_mode mode)
-{
- lkdtm_handler();
- jprobe_return();
- return 0;
-}
-
-int jp_scsi_dispatch_cmd(struct scsi_cmnd *cmd)
-{
- lkdtm_handler();
- jprobe_return();
- return 0;
-}
-
-#ifdef CONFIG_IDE
-int jp_generic_ide_ioctl(ide_drive_t * drive, struct file *file,
- struct block_device *bdev, unsigned int cmd,
- unsigned long arg)
-{
- lkdtm_handler();
- jprobe_return();
- return 0;
-}
-#endif
-
-static int lkdtm_parse_commandline(void)
-{
- int i;
-
- if (cpoint_name == INVALID || cpoint_type == NONE ||
- cpoint_count < 1 || recur_count < 1)
- return -EINVAL;
-
- for (i = 0; i < NUM_CPOINTS; ++i) {
- if (!strcmp(cpoint_name, cp_name[i])) {
- cpoint = i + 1;
- break;
- }
- }
-
- for (i = 0; i < NUM_CPOINT_TYPES; ++i) {
- if (!strcmp(cpoint_type, cp_type[i])) {
- cptype = i + 1;
- break;
- }
- }
-
- if (cpoint == INVALID || cptype == NONE)
- return -EINVAL;
-
- count = cpoint_count;
-
- return 0;
-}
-
-static int recursive_loop(int a)
-{
- char buf[1024];
-
- memset(buf, 0xFF, 1024);
- recur_count--;
- if (!recur_count)
- return 0;
- else
- return recursive_loop(a);
-}
-
-void lkdtm_handler(void)
-{
- /* Escape endless loop. */
- if (count < 0)
- return;
-
- printk(KERN_INFO "lkdtm : Crash point %s of type %s hit\n",
- cpoint_name, cpoint_type);
- --count;
-
- if (count == 0) {
- switch (cptype) {
- case NONE:
- break;
- case PANIC:
- printk(KERN_INFO "lkdtm : PANIC\n");
- panic("dumptest");
- break;
- case BUG:
- printk(KERN_INFO "lkdtm : BUG\n");
- BUG();
- break;
- case EXCEPTION:
- printk(KERN_INFO "lkdtm : EXCEPTION\n");
- *((int *)0) = 0;
- break;
- case LOOP:
- printk(KERN_INFO "lkdtm : LOOP\n");
- for (;;) ;
- break;
- case OVERFLOW:
- printk(KERN_INFO "lkdtm : OVERFLOW\n");
- (void)recursive_loop(0);
- break;
- default:
- break;
- }
- count = cpoint_count;
- }
-}
-
-#ifdef USE_SYMBOL_NAME
-void lkdtm_symbol_name(char *name, void (*entry) (void))
-{
- lkdtm.kp.symbol_name = name;
- lkdtm.entry = (kprobe_opcode_t *) entry;
-}
-
-#else
-void lkdtm_lookup_name(char *name, void (*entry) (void))
-{
- unsigned long addr;
-
- addr = kallsyms_lookup_name(name);
- if (addr) {
- *(lkdtm.kp.addr) = addr;
- lkdtm.entry = JPROBE_ENTRY(entry);
- } else
- printk(KERN_INFO "lkdtm : Crash point not available\n");
-}
-#endif
-
-int lkdtm_module_init(void)
-{
- int ret;
-
- if (lkdtm_parse_commandline() == -EINVAL) {
- printk(KERN_INFO "lkdtm : Invalid command\n");
- return -EINVAL;
- }
-
- switch (cpoint) {
- case INT_HARDWARE_ENTRY:
-
-#ifdef USE_SYMBOL_NAME
-
-#ifdef __powerpc__
- lkdtm_symbol_name(".__do_IRQ", (void (*)(void))jp_do_irq);
-#else
- lkdtm_symbol_name("__do_IRQ", (void (*)(void))jp_do_irq);
-#endif /*__powerpc__*/
-
-#else /* USE_SYMBOL_NAME */
- lkdtm_lookup_name("__do_IRQ", (void (*)(void))jp_do_irq);
-
-#endif /* USE_SYMBOL_NAME */
- break;
-
- case INT_HW_IRQ_EN:
-
-#ifdef USE_SYMBOL_NAME
-
-#ifdef __powerpc__
- lkdtm_symbol_name(".handle_IRQ_event",
- (void (*)(void))jp_handle_irq_event);
-#else
- lkdtm_symbol_name("handle_IRQ_event",
- (void (*)(void))jp_handle_irq_event);
-#endif /*__powerpc__*/
-
-#else /* USE_SYMBOL_NAME */
- lkdtm_lookup_name("handle_IRQ_event",
- (void (*)(void))jp_handle_irq_event);
-
-#endif /* USE_SYMBOL_NAME */
- break;
-
- case INT_TASKLET_ENTRY:
-
-#ifdef USE_SYMBOL_NAME
-
-#ifdef __powerpc__
- lkdtm_symbol_name(".tasklet_action",
- (void (*)(void))jp_tasklet_action);
-#else
- lkdtm_symbol_name("tasklet_action",
- (void (*)(void))jp_tasklet_action);
-#endif /*__powerpc__*/
-
-#else /* USE_SYMBOL_NAME */
- lkdtm_lookup_name("tasklet_action",
- (void (*)(void))jp_tasklet_action);
-
-#endif /* USE_SYMBOL_NAME */
- break;
-
- case FS_DEVRW:
-
-#ifdef USE_SYMBOL_NAME
-
-#ifdef __powerpc__
- lkdtm_symbol_name(".ll_rw_block",
- (void (*)(void))jp_ll_rw_block);
-#else
- lkdtm_symbol_name("ll_rw_block",
- (void (*)(void))jp_ll_rw_block);
-#endif /*__powerpc__*/
-
-#else /* USE_SYMBOL_NAME */
- lkdtm_lookup_name("ll_rw_block",
- (void (*)(void))jp_ll_rw_block);
-
-#endif /* USE_SYMBOL_NAME */
- break;
-
- case MEM_SWAPOUT:
-
-#ifdef USE_SYMBOL_NAME
-
-#ifdef __powerpc__
- lkdtm_symbol_name(".shrink_inactive_list",
- (void (*)(void))jp_shrink_page_list);
-#else
- lkdtm_symbol_name("shrink_inactive_list",
- (void (*)(void))jp_shrink_page_list);
-#endif /*__powerpc__*/
-
-#else /* USE_SYMBOL_NAME */
- lkdtm_lookup_name("shrink_inactive_list",
- (void (*)(void))jp_shrink_page_list);
-
-#endif /* USE_SYMBOL_NAME */
- break;
-
- case TIMERADD:
-
-#ifdef USE_SYMBOL_NAME
-
-#ifdef __powerpc__
- lkdtm_symbol_name(".hrtimer_start",
- (void (*)(void))jp_hrtimer_start);
-#else
- lkdtm_symbol_name("hrtimer_start",
- (void (*)(void))jp_hrtimer_start);
-#endif /*__powerpc__*/
-
-#else /* USE_SYMBOL_NAME */
- lkdtm_lookup_name("hrtimer_start",
- (void (*)(void))jp_hrtimer_start);
-
-#endif /* USE_SYMBOL_NAME */
- break;
-
- case SCSI_DISPATCH_CMD:
-
-#ifdef USE_SYMBOL_NAME
-
-#ifdef __powerpc__
- lkdtm_symbol_name(".scsi_dispatch_cmd",
- (void (*)(void))jp_scsi_dispatch_cmd);
-#else
- lkdtm_symbol_name("scsi_dispatch_cmd",
- (void (*)(void))jp_scsi_dispatch_cmd);
-#endif /*__powerpc__*/
-
-#else /* USE_SYMBOL_NAME */
- lkdtm_lookup_name("scsi_dispatch_cmd",
- (void (*)(void))jp_scsi_dispatch_cmd);
-
-#endif /* USE_SYMBOL_NAME */
- break;
-
- case IDE_CORE_CP:
-#ifdef CONFIG_IDE
-
-#ifdef USE_SYMBOL_NAME
-
-#ifdef __powerpc__
- lkdtm_symbol_name(".scsi_dispatch_cmd",
- (void (*)(void))jp_scsi_dispatch_cmd);
-#else
- lkdtm_symbol_name("scsi_dispatch_cmd",
- (void (*)(void))jp_scsi_dispatch_cmd);
-#endif /*__powerpc__*/
-
-#else /* USE_SYMBOL_NAME */
- lkdtm_lookup_name("scsi_dispatch_cmd",
- (void (*)(void))jp_scsi_dispatch_cmd);
-
-#endif /* USE_SYMBOL_NAME */
-#endif /* CONFIG_IDE */
- break;
-
- default:
- printk(KERN_INFO "lkdtm : Invalid Crash Point\n");
- break;
- }
-
- if ((ret = register_jprobe(&lkdtm)) < 0) {
- printk(KERN_INFO "lkdtm : Couldn't register jprobe\n");
- return ret;
- }
-
- printk(KERN_INFO "lkdtm : Crash point %s of type %s registered\n",
- cpoint_name, cpoint_type);
- return 0;
-}
-
-void lkdtm_module_exit(void)
-{
- unregister_jprobe(&lkdtm);
- printk(KERN_INFO "lkdtm : Crash point unregistered\n");
-}
-
-module_init(lkdtm_module_init);
-module_exit(lkdtm_module_exit);
-
-MODULE_LICENSE("GPL");
diff --git a/testcases/kdump/lib/setup.sh b/testcases/kdump/lib/setup.sh
deleted file mode 100755
index 3e53f1aec1..0000000000
--- a/testcases/kdump/lib/setup.sh
+++ /dev/null
@@ -1,108 +0,0 @@
-#!/bin/sh -ex
-
-conf=${1}
-arch=$(uname -m)
-kver=$(uname -r)
-
-. "${conf}"
-
-echo "Verify Kernel version >= 2.6.16."
-# Kernel might in the following format.
-# x.y.z-1.el
-# x.y.z.1.el
-kx=${kver%%.*}
-tmp=${kver#*.}
-ky=${tmp%%.*}
-tmp=${tmp#*.}
-tmp=${tmp%%.*}
-kz=${tmp%%-*}
-
-if [ "${kx}" -lt 2 ]; then
- error=1
-
-elif [ "${kx}" -eq 2 ]; then
- if [ "${ky}" -lt 6 ]; then
- error=1
-
- elif [ "${ky}" -eq 6 ]; then
- if [ "${kz}" -lt 16 ]; then
- error=1
- fi
- fi
-fi
-
-if [ "${error}" ]; then
- echo "Fail: kernel version ${kver} is less than 2.6.16."
-fi
-
-
-echo "Verify user is root."
-if [ $(id -u) != 0 ]; then
- echo "Fail: root is required."
- error=1
-fi
-
-
-echo "Verify prerequisite."
-if [ ! -x "/sbin/kexec" ]; then
- echo "Fail: kexec-tools not found."
- error=1
-fi
-
-if [ ! -d "/lib/modules/${kver}/build" ]; then
- echo "Fail: kernel-devel not found."
- error=1
-fi
-
-if [ "${CRASH}" ] && [ "${CRASH}" -eq 1 ]; then
- if [ ! -x "/usr/bin/crash" ]; then
- echo "Fail: crash not found."
- error=1
- fi
-
- if [ ! -f "${VMLINUX}" ]; then
- echo "Fail: kernel-debuginfo not found."
- error=1
- fi
-fi
-
-# Final result.
-if [ "${error}" ]; then
- echo "Please fixed the above failures before continuing."
- exit 1
-fi
-
-echo "Compile Kernel modules."
-make clean
-
-# Test if struct kprobe has "symbol_name" field.
-if make -C kprobes >/dev/null 2>&1; then
- export USE_SYMBOL_NAME=1
-fi
-
-make
-
-echo "Modify Boot Loader."
-if [ "${arch}" = "ppc64" ]; then
- args="crashkernel=256M@32M xmon=off"
-elif [ "${arch}" = "i686" ]; then
- args="crashkernel=256M@128M nmi_watchdog=1"
-elif [ "${arch}" = "ia64" ]; then
- args="crashkernel=512M@256M"
-else
- args="crashkernel=256M@128M"
-fi
-
-if [ -x "/sbin/grubby" ]; then
- /sbin/grubby --default-kernel |
- xargs /sbin/grubby --args="${args}" --update-kernel
-
-else
- echo "Warn: please make sure the following arguments are in Boot\
- Loader:"
- echo "$args"
- echo "Hit any key when ready."
- read
-fi
-
-exit 0
diff --git a/testcases/kdump/lib/ssh.tcl b/testcases/kdump/lib/ssh.tcl
deleted file mode 100755
index a226703372..0000000000
--- a/testcases/kdump/lib/ssh.tcl
+++ /dev/null
@@ -1,23 +0,0 @@
-set cmd [lindex $argv 0]
-set pwd [lindex $argv 1]
-
-#exp_internal 1
-
-# 1 min timeout
-#set timeout 60
-set timeout -1
-
-eval spawn $cmd
-
-expect {
- -nocase "(yes/no)?" { send "yes\r"; exp_continue }
- -nocase "Password:" { send "$pwd\r" }
- # Handling ssh keys have already been set up.
- eof { exit }
- #timeout { exit 1 }
-}
-
-# Wait for eof.
-expect
-
-exit 0
diff --git a/testcases/kdump/lib/sysinfo.sh b/testcases/kdump/lib/sysinfo.sh
deleted file mode 100755
index d63b15c529..0000000000
--- a/testcases/kdump/lib/sysinfo.sh
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-
-echo ""
-echo "------------- HOSTNAME -------------------"
-echo ""
-hostname
-echo ""
-echo "------------- /PROC/VERSION --------------"
-echo ""
-cat /proc/version
-echo ""
-echo "------------- /PROC/CPUINFO --------------"
-echo ""
-cat /proc/cpuinfo
-echo ""
-echo "------------- /PROC/MEMINFO --------------"
-echo ""
-cat /proc/meminfo
-echo ""
-echo "------------- /PROC/DEVICES --------------"
-echo ""
-cat /proc/devices
-echo ""
-echo "------------- /PROC/INTERRUPTS -----------"
-echo ""
-cat /proc/interrupts
-echo ""
-echo "------------- /PROC/IOMEM ----------------"
-echo ""
-cat /proc/iomem
-echo ""
-echo "------------- /PROC/PARTITIONS -----------"
-echo ""
-cat /proc/partitions
-echo ""
-echo "------------- DF -H ----------------------"
-echo ""
-df -h
-echo ""
-echo "------------- LSPCI ----------------------"
-echo ""
-lspci
-echo ""
-echo "------------- LSMOD ----------------------"
-echo ""
-lsmod
-echo ""
-echo "------------- IFCONFIG -------------------"
-echo ""
-ifconfig
-echo ""
-echo "------------- PS -E ----------------------"
-echo ""
-ps -e
diff --git a/testcases/kdump/lib/test.sh b/testcases/kdump/lib/test.sh
deleted file mode 100755
index eaec0b5a20..0000000000
--- a/testcases/kdump/lib/test.sh
+++ /dev/null
@@ -1,271 +0,0 @@
-#!/bin/sh -xe
-
-conf=${1}; shift
-test=${1}
-crasher=crasher
-lkdtm=lkdtm
-
-. "${conf}"
-
-case "${test}" in
-
- "KEXEC-L")
- kexec -l /boot/vmlinuz --initrd=/boot/initrd \
- --append="$(cat /proc/cmdline)"
- sleep 10
- kexec -e
- ;;
- "MNS")
- echo "Not implemented"
- ;;
-
- "MNN")
- echo "Not implemented"
- ;;
-
- "MCS")
- echo "Not implemented"
- ;;
-
- "MCN")
- echo "Not implemented"
- ;;
-
- "MCF")
- echo "Not implemented"
- ;;
-
- "ACS")
- echo c >/proc/sysrq-trigger
- ;;
-
- "ACP")
- # Panic test 0 in crasher module: panic()
- insmod "${crasher}"/crasher.ko
- echo 0 >/proc/crasher
- ;;
-
- "ACB")
- # Panic test 1 in crasher module: BUG()
- insmod "${crasher}"/crasher.ko
- echo 1 >/proc/crasher
- ;;
-
- "ACE")
- # Panic test 2 in crasher module: panic_on_oops
- insmod "${crasher}"/crasher.ko
- echo 1 >/proc/sys/kernel/panic_on_oops
- echo 2 >/proc/crasher
- ;;
-
- "ACL")
- # Panic test 3 in crasher module: hang w/double spinlock
- # requires nmi_watchdog be enabled
- insmod "${crasher}"/crasher.ko
- echo 3 >/proc/crasher
- ;;
-
- "KPIDB")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_HARDWARE_ENTRY cpoint_type=BUG cpoint_count=05
- ;;
- "KPIDE")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_HARDWARE_ENTRY cpoint_type=EXCEPTION cpoint_count=05
- ;;
- "KPIDL")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_HARDWARE_ENTRY cpoint_type=LOOP cpoint_count=05
- ;;
- "KPIDP")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_HARDWARE_ENTRY cpoint_type=PANIC cpoint_count=05
- ;;
- "KPIDO")
- echo 1 >/proc/sys/kernel/panic_on_oops
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_HARDWARE_ENTRY cpoint_type=OVERFLOW cpoint_count=10
- ;;
- "KPIEB")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_HW_IRQ_EN cpoint_type=BUG cpoint_count=10
- ;;
- "KPIEE")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_HW_IRQ_EN cpoint_type=EXCEPTION cpoint_count=10
- ;;
- "KPIEL")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_HW_IRQ_EN cpoint_type=LOOP cpoint_count=10
- ;;
- "KPIEP")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_HW_IRQ_EN cpoint_type=PANIC cpoint_count=10
- ;;
- "KPIEO")
- echo 1 >/proc/sys/kernel/panic_on_oops
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_HW_IRQ_EN cpoint_type=OVERFLOW cpoint_count=10
- ;;
- "KPTEB")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_TASKLET_ENTRY cpoint_type=BUG cpoint_count=10
- ;;
- "KPTEE")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_TASKLET_ENTRY cpoint_type=EXCEPTION cpoint_count=10
- ;;
- "KPTEL")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_TASKLET_ENTRY cpoint_type=LOOP cpoint_count=10
- ;;
- "KPTEP")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_TASKLET_ENTRY cpoint_type=PANIC cpoint_count=10
- ;;
- "KPTEO")
- echo 1 >/proc/sys/kernel/panic_on_oops
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=INT_TASKLET_ENTRY cpoint_type=OVERFLOW cpoint_count=10
- ;;
- "KPBB")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=FS_DEVRW cpoint_type=BUG cpoint_count=10
- ;;
- "KPBE")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=FS_DEVRW cpoint_type=EXCEPTION cpoint_count=10
- ;;
- "KPBL")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=FS_DEVRW cpoint_type=LOOP cpoint_count=10
- ;;
- "KPBP")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=FS_DEVRW cpoint_type=PANIC cpoint_count=10
- ;;
- "KPBO")
- echo 1 >/proc/sys/kernel/panic_on_oops
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=FS_DEVRW cpoint_type=OVERFLOW cpoint_count=10
- ;;
- "KPMSB")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=MEM_SWAPOUT cpoint_type=BUG cpoint_count=10
- ;;
- "KPMSE")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=MEM_SWAPOUT cpoint_type=EXCEPTION cpoint_count=10
- ;;
- "KPMSL")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=MEM_SWAPOUT cpoint_type=LOOP cpoint_count=10
- ;;
- "KPMSP")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=MEM_SWAPOUT cpoint_type=PANIC cpoint_count=10
- ;;
- "KPMSO")
- echo 1 >/proc/sys/kernel/panic_on_oops
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=MEM_SWAPOUT cpoint_type=OVERFLOW cpoint_count=10
- ;;
- "KPTB")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=TIMERADD cpoint_type=BUG cpoint_count=10
- ;;
- "KPTE")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=TIMERADD cpoint_type=EXCEPTION cpoint_count=10
- ;;
- "KPTL")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=TIMERADD cpoint_type=LOOP cpoint_count=10
- ;;
- "KPTP")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=TIMERADD cpoint_type=PANIC cpoint_count=10
- ;;
- "KPTO")
- echo 1 >/proc/sys/kernel/panic_on_oops
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=TIMERADD cpoint_type=OVERFLOW cpoint_count=10
- ;;
- "KPSB")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=SCSI_DISPATCH_CMD cpoint_type=BUG cpoint_count=10
- ;;
- "KPSE")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=SCSI_DISPATCH_CMD cpoint_type=EXCEPTION cpoint_count=10
- ;;
- "KPSL")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=SCSI_DISPATCH_CMD cpoint_type=LOOP cpoint_count=10
- ;;
- "KPSP")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=SCSI_DISPATCH_CMD cpoint_type=PANIC cpoint_count=10
- ;;
- "KPSO")
- echo 1 >/proc/sys/kernel/panic_on_oops
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=SCSI_DISPATCH_CMD cpoint_type=OVERFLOW cpoint_count=10
- ;;
- "KPIB")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=IDE_CORE_CP cpoint_type=BUG cpoint_count=10
- ;;
- "KPIE")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=IDE_CORE_CP cpoint_type=EXCEPTION cpoint_count=10
- ;;
- "KPIL")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=IDE_CORE_CP cpoint_type=LOOP cpoint_count=10
- ;;
- "KPIP")
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=IDE_CORE_CP cpoint_type=PANIC cpoint_count=10
- ;;
- "KPIO")
- echo 1 >/proc/sys/kernel/panic_on_oops
- insmod "${lkdtm}"/lkdtm.ko cpoint_name=IDE_CORE_CP cpoint_type=OVERFLOW cpoint_count=01
- ;;
- "KLEXT")
- echo "ext3 ${EXT3_PART}" >/etc/kdump.conf
- if [ "${FILTER}" -eq 1 ]; then
- echo "core_collector makedumpfile ${MAKE_OPTIONS}" >>/etc/kdump.conf
- fi
- /etc/init.d/kdump restart
- echo c >/proc/sysrq-trigger
- ;;
-
- "KLLBL")
- echo "ext3 LABEL=${EXT3_LABEL}" >/etc/kdump.conf
- if [ "${FILTER}" -eq 1 ]; then
- echo "core_collector makedumpfile ${MAKE_OPTIONS}" >>/etc/kdump.conf
- fi
- /etc/init.d/kdump restart
- echo c >/proc/sysrq-trigger
- ;;
-
- "KLUID")
- echo "ext3 UUID=${EXT3_UID}" >/etc/kdump.conf
- if [ "${FILTER}" -eq 1 ]; then
- echo "core_collector makedumpfile ${MAKE_OPTIONS}" >>/etc/kdump.conf
- fi
- /etc/init.d/kdump restart
- echo c >/proc/sysrq-trigger
- ;;
-
- "KLRAW")
- echo "raw ${RAW_PART}" >/etc/kdump.conf
- if [ "${FILTER}" -eq 1 ]; then
- echo "core_collector makedumpfile ${MAKE_OPTIONS}" >>/etc/kdump.conf
- fi
- /etc/init.d/kdump restart
- echo c >/proc/sysrq-trigger
- ;;
-
- "KNSCP")
- echo "net ${SCP_PATH}" >/etc/kdump.conf
- if [ "${LINK_DELAY}" ]; then
- echo "link_delay ${LINK_DELAY}" >>/etc/kdump.conf
- fi
-
- expect -f ./ssh.tcl "/etc/init.d/kdump propagate" "${SCP_PASS}"
- if [ "${FILTER}" -eq 1 ]; then
- echo "core_collector makedumpfile ${MAKE_OPTIONS}" >>/etc/kdump.conf
- fi
- /etc/init.d/kdump restart
- echo c >/proc/sysrq-trigger
- ;;
-
- "KNNFS")
- echo "net ${NFS_PATH}" >/etc/kdump.conf
- if [ "${LINK_DELAY}" ]; then
- echo "link_delay ${LINK_DELAY}" >>/etc/kdump.conf
- fi
-
- if [ "${FILTER}" -eq 1 ]; then
- echo "core_collector makedumpfile ${MAKE_OPTIONS}" >>/etc/kdump.conf
- fi
- /etc/init.d/kdump restart
- echo c >/proc/sysrq-trigger
- ;;
-
- "KDENB")
- echo "net ${SCP_PATH}" >/etc/kdump.conf
- expect -f ./ssh.tcl "/etc/init.d/kdump propagate" "${SCP_PASS}"
- /etc/init.d/kdump restart
- ;;
-
- *)
- echo "Unknown test."
- ;;
-
-esac
-
-exit 0
diff --git a/testcases/kdump/lib/verify.sh b/testcases/kdump/lib/verify.sh
deleted file mode 100755
index 9635d378bc..0000000000
--- a/testcases/kdump/lib/verify.sh
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/sh -x
-
-conf=${1}; shift
-vmcore=${1}; shift
-crash=${1}; shift
-
-. "${conf}"
-
-echo ""
-echo "----------------------------------------------------------"
-echo " VMCORE SIZE "
-echo "----------------------------------------------------------"
-echo ""
-
-ls -lh "${vmcore}"
-
-echo ""
-echo "----------------------------------------------------------"
-echo " READELF "
-echo "----------------------------------------------------------"
-echo ""
-
-readelf -a "${vmcore}"
-
-if [ "${crash}" -eq 1 ]; then
- echo ""
- echo "----------------------------------------------------------"
- echo " CRASH "
- echo "----------------------------------------------------------"
- echo ""
-
- cat <<EOF >crash_cmd
-mod
-mod -S
-runq
-foreach bt
-foreach files
-mount
-mount -f
-mount -i
-vm
-ascii
-net
-set
-set -v
-bt
-bt -a
-bt -f
-bt -e
-bt -E
-ps
-ps -k
-ps -u
-ps -s
-dev
-dev -p
-kmem -i
-kmem -s
-task
-exit
-EOF
-
- crash -i crash_cmd "${VMLINUX}" "${vmcore}"
- rm -f crash_cmd
-fi
diff --git a/testcases/kdump/runkdump.conf b/testcases/kdump/runkdump.conf
deleted file mode 100644
index d094df1396..0000000000
--- a/testcases/kdump/runkdump.conf
+++ /dev/null
@@ -1,76 +0,0 @@
-# Repeation of test.
-ITERATION=1
-
-# Vmcore verification using crash command.
-# Require kernel-debuginfo and crash packages.
-CRASH=0
-
-# Reboot count. New test should start from 0.
-REBOOT=0
-
-# Kernel debuginfo.
-VMLINUX="/usr/lib/debug/lib/modules/$(uname -r)/vmlinux"
-
-# Where vmcore will be saved.
-# /var/crash for Red Hat.
-# /var/log/dump for SUSE.
-COREDIR=/var/crash
-
-# Enable dump with filtering.
-FILTER=0
-# makedumpfile options.
-MAKE_OPTIONS=
-
-# Delay in seconds when dumping to a network destination.
-LINK_DELAY=
-
-# The list of testcases. Please see doc for the overview of
-# those tests.
-
-# ACS ACP ACB ACE ACL
-CRASHER="ACS ACP ACB ACE ACL"
-
-# KPIDB KPIEB KPTEE KPBL
-BASIC_LKDTM="KPIDB KPIEB KPTEE KPBL"
-
-# KPIDE KPIDL KPIDP KPIDO
-# KPIEE KPIEL KPIEP KPIEO
-# KPTEB KPTEL KPTEP KPTEO
-# KPBB KPBE KPBP KPBO
-# KPMSB KPMSE KPMSL KPMSP KPMSO
-# KPTB KPTE KPTL KPTP KPTO
-# KPSB KPSE KPSL KPSP KPSO
-# KPIB KPIE KPIL KPIP KPIO
-EXTRA_LKDTM="
-KPIDE KPIDL KPIDP KPIDO
-KPIEE KPIEL KPIEP KPIEO
-KPTEB KPTEL KPTEP KPTEO
-KPBB KPBE KPBP KPBO
-KPMSB KPMSE KPMSL KPMSP KPMSO
-KPTB KPTE KPTL KPTP KPTO
-KPSB KPSE KPSL KPSP KPSO
-KPIB KPIE KPIL KPIP KPIO
-"
-
-# KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB
-EXTRA_DUMP="KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB"
-
-# Dump vmcore on an EXT3 partition.
-EXT3_PART=
-
-# Dump vmcore on an EXT3 partition with a LABEL.
-EXT3_LABEL=
-
-# Dump vmcore on an EXT3 partition with a partition UID.
-EXT3_UID=
-
-# Dump vmcore on a RAW partition.
-RAW_PART=
-
-# Dump vmcore on network.
-SCP_PATH=
-# Password for user@server.
-SCP_PASS=
-
-# Dump vmcore on a mounted NFS filesystem.
-NFS_PATH=
diff --git a/testcases/kdump/runkdump.sh b/testcases/kdump/runkdump.sh
deleted file mode 100755
index cd6ee1caba..0000000000
--- a/testcases/kdump/runkdump.sh
+++ /dev/null
@@ -1,282 +0,0 @@
-#!/bin/sh -xe
-
-SetupCrontab ()
-{
- echo "Setup crontab."
-
- set +e
- crontab -r
- set -e
-
- # crontab in some distros will not read from STDIN.
-
- cat <<EOF >kdump.cron
-SHELL=/bin/sh
-PATH=/usr/bin:/usr/sbin:/sbin:/bin
-MAILTO=root
-@reboot cd "$(pwd)"; cd ..; ${0} >>/tmp/kdump-$(date +%F-%T).log 2>&1
-EOF
-
- crontab kdump.cron
-
- echo "Enable cron daemon by default."
-
- if [ -f /etc/init.d/crond ]; then
- cron=crond
- else
- # SUSE
- cron=cron
- fi
-
- # Red Hat and SUSE.
- if [ -x "/sbin/chkconfig" ]; then
- /sbin/chkconfig "${cron}" on
-
- # Debian and Ubuntu.
- elif [ -x "/sbin/update-rc.d" ]; then
- /sbin/update-rc.d "${cron}" defaults
- fi
-}
-
-SetupKdump ()
-{
- echo "Start kdump daemon."
- /etc/init.d/kdump restart
-
- echo "Enable kdump daemon by default."
- # Red Hat and SUSE.
- if [ -x "/sbin/chkconfig" ]; then
- /sbin/chkconfig kdump on
-
- # Debian and Ubuntu.
- elif [ -x "/sbin/update-rc.d" ]; then
- /sbin/update-rc.d kdump defaults
- fi
-}
-
-
-PrepareVerify ()
-{
- if [ "${last}" = "KLEXT" ]; then
- # If not mountable, skip it, and continue doing the test.
- set +e
- mount "${EXT3_PART}" /mnt
- set -e
-
- COREDIR=/mnt"${COREDIR}"
-
- elif [ "${last}" = "KLLBL" ]; then
- # If not mountable, skip it, and continue doing the test.
- set +e
- mount -L "${EXT3_LABEL}" /mnt
- set -e
-
- COREDIR=/mnt"${COREDIR}"
-
- elif [ "${last}" = "KLUID" ]; then
- # If not mountable, skip it, and continue doing the test.
- set +e
- mount "/dev/disk/by-uuid/${EXT3_UID}" /mnt
- set -e
-
- COREDIR=/mnt"${COREDIR}"
-
- elif [ "${last}" = "KLRAW" ]; then
- mkdir -p "${COREDIR}/${last}"
-
- # If not dumpable, skip it, and continue doing the test.
- set +e
- dd if="${RAW_PART}" of="${COREDIR}/${last}/vmcore" bs=1024
- set -e
-
- elif [ "${last}" = "KNSCP" ]; then
- if [ -z "${SCP_PATH}" ]; then
- echo "Fail: network destination not defined."
- exit 1
- fi
-
- file=$(ssh -i ~/.ssh/kdump_id_rsa "${SCP_PATH}" "ls -t ${COREDIR}/*/vmcore* \
- 2>/dev/null | head -1")
-
- mkdir -p "${COREDIR}/${last}"
-
- if [ "${file}" ]; then
- # Not fatal error.
- set +e
- scp -i ~/.ssh/kdump_id_rsa "${SCP_PATH}:${file}" "${COREDIR}/${last}"
- set -e
- fi
-
- elif [ "${last}" = "KNNFS" ]; then
- # Not fatal error.
- set +e
- mount "${NFS_PATH}" /mnt
- set -e
-
- COREDIR=/mnt"${COREDIR}"
- fi
-
- vmcore=$(ls -t "${COREDIR}"/*/vmcore* 2>/dev/null | head -1)
-}
-
-VerifyTest ()
-{
- # Should not be here.
- if [ -z "${last}" ]; then
- echo "Should not be here!"
- echo "There must be something wrong with the test setup."
- exit 1
- fi
-
- echo "Verifying the result of previous test ${last}."
- ldir=$(ls -td "../${log}/$(hostname)."* | head -1)
-
- if [ -f "${vmcore}" ]; then
- echo "$(date +%F-%T): verification of test ${last} passed." \
- >>"${ldir}/status"
-
- ./verify.sh "../${conf}" "${vmcore}" "${CRASH}" \
- >>"${ldir}/${ITERATION}.${last}.$(date +%F-%T)"
-
- # Be careful to define COREDIR.
- rm -rf "${COREDIR}"/*
-
- else
- echo "$(date +%F-%T): verification of test ${last} failed:\
- vmcore NOT FOUND." >>"${ldir}/status"
- echo "vmcore NOT FOUND." \
- >>"${ldir}/${ITERATION}.${last}.$(date +%F-%T)"
- fi
-}
-
-RunTest ()
-{
-
- sed -i "s/\(^REBOOT\)=.*/\1=$((count + 1))/" \
- "../${conf}"
-
- echo "Running current test ${i}."
-
- echo "$(date +%F-%T): running current test ${i}." \
- >> "${ldir}/status"
-
- # Save STDIO buffers.
- sync
- ./test.sh "../${conf}" "${i}" "../${log}"
-}
-
-# Start test.
-conf="./runkdump.conf"
-lib="lib"
-log="log"
-
-# Read test configuration file.
-. "${conf}"
-
-# Check mandatory variables.
-if [ -z "${ITERATION}" ] || [ -z "${REBOOT}" ] || [ -z "${COREDIR}" ]
-then
- echo "Fail: some mandatory variables are missing from\
- configuration file."
- exit 1
-fi
-
-cd "${lib}"
-
-while [ "${ITERATION}" -ge 1 ]; do
-
-# Reboot the machine first to take advantage of boot parameter
-# changes.
-if [ -z "${REBOOT}" ] || [ "${REBOOT}" -eq 0 ]; then
- echo "Setup test environment."
-
- SetupCrontab
-
- ./setup.sh "../${conf}"
-
- sed -i 's/\(^REBOOT\)=.*/\1=1/' "../${conf}"
-
- echo "System is going to reboot."
- /sbin/shutdown -r now
- sleep 60
-
-else
- count=1
-
- for i in ${CRASHER} ${BASIC_LKDTM} ${EXTRA_LKDTM} ${EXTRA_DUMP} \
- END; do
-
- if [ "${count}" -eq "${REBOOT}" ]; then
- # Wait for machine fully booted.
- sleep 60
-
- # First Test.
- if [ "${REBOOT}" -eq 1 ]; then
- echo "First test..."
- echo "Verify Boot Loader."
- if ! grep 'crashkernel=' /proc/cmdline; then
- echo "Fail: error changing Boot Loader, no crashkernel=."
- exit 1
- fi
-
- SetupKdump
-
- # Creat log directory.
- mkdir -p "../${log}/$(hostname).$(date +%F-%T)"
-
- echo "Gather system information."
-
- ldir=$(ls -td "../${log}/$(hostname)."* | head -1)
- ./sysinfo.sh >"${ldir}/system.info"
-
- else
- PrepareVerify
-
- VerifyTest
-
- if [ "${i}" = END ]; then
- # We are done.
- break
- fi
-
- fi
-
- RunTest
-
- # Some tests could not reboot target. They can hung up
- # machine or leave it working. But we need to do all
- # tests. So we are going to reboot if we are in wrong
- # place.
-
- sleep 3600
- echo "$(date +%F-%T): manually reboot for test ${i}." >>"${ldir}/status"
- /sbin/shutdown -r now
- sleep 60
- fi
-
- # No test is scheduled to run.
- count=$((count + 1))
- last=${i}
- done
-fi
-
-if [ "${ITERATION}" -eq 1 ]; then
- # We are done.
- break
-
-else
- # Run the next iteration.
- sed -i "s/\(^ITERATION\)=.*/\1=$((ITERATION - 1))/" \
- "../${conf}"
-fi
-
-done
-
-# We are done.
-# Reset.
-sed -i "s/\(^REBOOT\)=.*/\1=0/" "../${conf}"
-crontab -r
-ldir=$(ls -td "../${log}/$(hostname)."* | head -1)
-echo "$(date +%F-%T): test run complete." >>"${ldir}/status"
-
-exit 0
diff --git a/testcases/kdump/sample/runkdump.BASIC_LKDTM.RHEL b/testcases/kdump/sample/runkdump.BASIC_LKDTM.RHEL
deleted file mode 100644
index 15a6e5426c..0000000000
--- a/testcases/kdump/sample/runkdump.BASIC_LKDTM.RHEL
+++ /dev/null
@@ -1,76 +0,0 @@
-# Repeation of test.
-ITERATION=1
-
-# Vmcore verification using crash command.
-# Require kernel-debuginfo and crash packages.
-CRASH=0
-
-# Reboot count. New test should start from 0.
-REBOOT=0
-
-# Kernel debuginfo.
-VMLINUX="/usr/lib/debug/lib/modules/$(uname -r)/vmlinux"
-
-# Where vmcore will be saved.
-# /var/crash for Red Hat.
-# /var/log/dump for SUSE.
-COREDIR=/var/crash
-
-# Enable dump with filtering.
-FILTER=0
-# makedumpfile options.
-MAKE_OPTIONS=
-
-# Delay in seconds when dumping to a network destination.
-LINK_DELAY=
-
-# The list of testcases. Please see doc for the overview of
-# those tests.
-
-# ACS ACP ACB ACE ACL
-#CRASHER="ACS ACP ACB ACE ACL"
-
-# KPIDB KPIEB KPTEE KPBL
-BASIC_LKDTM="KPIDB KPIEB KPTEE KPBL"
-
-# KPIDE KPIDL KPIDP KPIDO
-# KPIEE KPIEL KPIEP KPIEO
-# KPTEB KPTEL KPTEP KPTEO
-# KPBB KPBE KPBP KPBO
-# KPMSB KPMSE KPMSL KPMSP KPMSO
-# KPTB KPTE KPTL KPTP KPTO
-# KPSB KPSE KPSL KPSP KPSO
-# KPIB KPIE KPIL KPIP KPIO
-EXTRA_LKDTM="
-KPIDE KPIDL KPIDP KPIDO
-KPIEE KPIEL KPIEP KPIEO
-KPTEB KPTEL KPTEP KPTEO
-KPBB KPBE KPBP KPBO
-KPMSB KPMSE KPMSL KPMSP KPMSO
-KPTB KPTE KPTL KPTP KPTO
-KPSB KPSE KPSL KPSP KPSO
-KPIB KPIE KPIL KPIP KPIO
-"
-
-# KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB
-#EXTRA_DUMP="KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB"
-
-# Dump vmcore on an EXT3 partition.
-EXT3_PART=
-
-# Dump vmcore on an EXT3 partition with a LABEL.
-EXT3_LABEL=
-
-# Dump vmcore on an EXT3 partition with a partition UID.
-EXT3_UID=
-
-# Dump vmcore on a RAW partition.
-RAW_PART=
-
-# Dump vmcore on network.
-SCP_PATH=
-# Password for user@server.
-SCP_PASS=
-
-# Dump vmcore on a mounted NFS filesystem.
-NFS_PATH=
diff --git a/testcases/kdump/sample/runkdump.BASIC_LKDTM.SLES b/testcases/kdump/sample/runkdump.BASIC_LKDTM.SLES
deleted file mode 100644
index b1f8fc0073..0000000000
--- a/testcases/kdump/sample/runkdump.BASIC_LKDTM.SLES
+++ /dev/null
@@ -1,76 +0,0 @@
-# Repeation of test.
-ITERATION=1
-
-# Vmcore verification using crash command.
-# Require kernel-debuginfo and crash packages.
-CRASH=0
-
-# Reboot count. New test should start from 0.
-REBOOT=0
-
-# Kernel debuginfo.
-VMLINUX="/usr/lib/debug/lib/modules/$(uname -r)/vmlinux"
-
-# Where vmcore will be saved.
-# /var/crash for Red Hat.
-# /var/log/dump for SUSE.
-COREDIR=/var/log/dump
-
-# Enable dump with filtering.
-FILTER=0
-# makedumpfile options.
-MAKE_OPTIONS=
-
-# Delay in seconds when dumping to a network destination.
-LINK_DELAY=
-
-# The list of testcases. Please see doc for the overview of
-# those tests.
-
-# ACS ACP ACB ACE ACL
-#CRASHER="ACS ACP ACB ACE ACL"
-
-# KPIDB KPIEB KPTEE KPBL
-BASIC_LKDTM="KPIDB KPIEB KPTEE KPBL"
-
-# KPIDE KPIDL KPIDP KPIDO
-# KPIEE KPIEL KPIEP KPIEO
-# KPTEB KPTEL KPTEP KPTEO
-# KPBB KPBE KPBP KPBO
-# KPMSB KPMSE KPMSL KPMSP KPMSO
-# KPTB KPTE KPTL KPTP KPTO
-# KPSB KPSE KPSL KPSP KPSO
-# KPIB KPIE KPIL KPIP KPIO
-EXTRA_LKDTM="
-KPIDE KPIDL KPIDP KPIDO
-KPIEE KPIEL KPIEP KPIEO
-KPTEB KPTEL KPTEP KPTEO
-KPBB KPBE KPBP KPBO
-KPMSB KPMSE KPMSL KPMSP KPMSO
-KPTB KPTE KPTL KPTP KPTO
-KPSB KPSE KPSL KPSP KPSO
-KPIB KPIE KPIL KPIP KPIO
-"
-
-# KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB
-#EXTRA_DUMP="KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB"
-
-# Dump vmcore on an EXT3 partition.
-EXT3_PART=
-
-# Dump vmcore on an EXT3 partition with a LABEL.
-EXT3_LABEL=
-
-# Dump vmcore on an EXT3 partition with a partition UID.
-EXT3_UID=
-
-# Dump vmcore on a RAW partition.
-RAW_PART=
-
-# Dump vmcore on network.
-SCP_PATH=
-# Password for user@server.
-SCP_PASS=
-
-# Dump vmcore on a mounted NFS filesystem.
-NFS_PATH=
diff --git a/testcases/kdump/sample/runkdump.CRASHER.RHEL b/testcases/kdump/sample/runkdump.CRASHER.RHEL
deleted file mode 100644
index d094df1396..0000000000
--- a/testcases/kdump/sample/runkdump.CRASHER.RHEL
+++ /dev/null
@@ -1,76 +0,0 @@
-# Repeation of test.
-ITERATION=1
-
-# Vmcore verification using crash command.
-# Require kernel-debuginfo and crash packages.
-CRASH=0
-
-# Reboot count. New test should start from 0.
-REBOOT=0
-
-# Kernel debuginfo.
-VMLINUX="/usr/lib/debug/lib/modules/$(uname -r)/vmlinux"
-
-# Where vmcore will be saved.
-# /var/crash for Red Hat.
-# /var/log/dump for SUSE.
-COREDIR=/var/crash
-
-# Enable dump with filtering.
-FILTER=0
-# makedumpfile options.
-MAKE_OPTIONS=
-
-# Delay in seconds when dumping to a network destination.
-LINK_DELAY=
-
-# The list of testcases. Please see doc for the overview of
-# those tests.
-
-# ACS ACP ACB ACE ACL
-CRASHER="ACS ACP ACB ACE ACL"
-
-# KPIDB KPIEB KPTEE KPBL
-BASIC_LKDTM="KPIDB KPIEB KPTEE KPBL"
-
-# KPIDE KPIDL KPIDP KPIDO
-# KPIEE KPIEL KPIEP KPIEO
-# KPTEB KPTEL KPTEP KPTEO
-# KPBB KPBE KPBP KPBO
-# KPMSB KPMSE KPMSL KPMSP KPMSO
-# KPTB KPTE KPTL KPTP KPTO
-# KPSB KPSE KPSL KPSP KPSO
-# KPIB KPIE KPIL KPIP KPIO
-EXTRA_LKDTM="
-KPIDE KPIDL KPIDP KPIDO
-KPIEE KPIEL KPIEP KPIEO
-KPTEB KPTEL KPTEP KPTEO
-KPBB KPBE KPBP KPBO
-KPMSB KPMSE KPMSL KPMSP KPMSO
-KPTB KPTE KPTL KPTP KPTO
-KPSB KPSE KPSL KPSP KPSO
-KPIB KPIE KPIL KPIP KPIO
-"
-
-# KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB
-EXTRA_DUMP="KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB"
-
-# Dump vmcore on an EXT3 partition.
-EXT3_PART=
-
-# Dump vmcore on an EXT3 partition with a LABEL.
-EXT3_LABEL=
-
-# Dump vmcore on an EXT3 partition with a partition UID.
-EXT3_UID=
-
-# Dump vmcore on a RAW partition.
-RAW_PART=
-
-# Dump vmcore on network.
-SCP_PATH=
-# Password for user@server.
-SCP_PASS=
-
-# Dump vmcore on a mounted NFS filesystem.
-NFS_PATH=
diff --git a/testcases/kdump/sample/runkdump.CRASHER.SLES b/testcases/kdump/sample/runkdump.CRASHER.SLES
deleted file mode 100644
index d708e0c982..0000000000
--- a/testcases/kdump/sample/runkdump.CRASHER.SLES
+++ /dev/null
@@ -1,76 +0,0 @@
-# Repeation of test.
-ITERATION=1
-
-# Vmcore verification using crash command.
-# Require kernel-debuginfo and crash packages.
-CRASH=0
-
-# Reboot count. New test should start from 0.
-REBOOT=0
-
-# Kernel debuginfo.
-VMLINUX="/usr/lib/debug/lib/modules/$(uname -r)/vmlinux"
-
-# Where vmcore will be saved.
-# /var/crash for Red Hat.
-# /var/log/dump for SUSE.
-COREDIR=/var/log/dump
-
-# Enable dump with filtering.
-FILTER=0
-# makedumpfile options.
-MAKE_OPTIONS=
-
-# Delay in seconds when dumping to a network destination.
-LINK_DELAY=
-
-# The list of testcases. Please see doc for the overview of
-# those tests.
-
-# ACS ACP ACB ACE ACL
-CRASHER="ACS ACP ACB ACE ACL"
-
-# KPIDB KPIEB KPTEE KPBL
-BASIC_LKDTM="KPIDB KPIEB KPTEE KPBL"
-
-# KPIDE KPIDL KPIDP KPIDO
-# KPIEE KPIEL KPIEP KPIEO
-# KPTEB KPTEL KPTEP KPTEO
-# KPBB KPBE KPBP KPBO
-# KPMSB KPMSE KPMSL KPMSP KPMSO
-# KPTB KPTE KPTL KPTP KPTO
-# KPSB KPSE KPSL KPSP KPSO
-# KPIB KPIE KPIL KPIP KPIO
-EXTRA_LKDTM="
-KPIDE KPIDL KPIDP KPIDO
-KPIEE KPIEL KPIEP KPIEO
-KPTEB KPTEL KPTEP KPTEO
-KPBB KPBE KPBP KPBO
-KPMSB KPMSE KPMSL KPMSP KPMSO
-KPTB KPTE KPTL KPTP KPTO
-KPSB KPSE KPSL KPSP KPSO
-KPIB KPIE KPIL KPIP KPIO
-"
-
-# KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB
-EXTRA_DUMP="KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB"
-
-# Dump vmcore on an EXT3 partition.
-EXT3_PART=
-
-# Dump vmcore on an EXT3 partition with a LABEL.
-EXT3_LABEL=
-
-# Dump vmcore on an EXT3 partition with a partition UID.
-EXT3_UID=
-
-# Dump vmcore on a RAW partition.
-RAW_PART=
-
-# Dump vmcore on network.
-SCP_PATH=
-# Password for user@server.
-SCP_PASS=
-
-# Dump vmcore on a mounted NFS filesystem.
-NFS_PATH=
diff --git a/testcases/kdump/sample/runkdump.EXTRA_LKDTM.RHEL b/testcases/kdump/sample/runkdump.EXTRA_LKDTM.RHEL
deleted file mode 100644
index aac72f82fb..0000000000
--- a/testcases/kdump/sample/runkdump.EXTRA_LKDTM.RHEL
+++ /dev/null
@@ -1,76 +0,0 @@
-# Repeation of test.
-ITERATION=1
-
-# Vmcore verification using crash command.
-# Require kernel-debuginfo and crash packages.
-CRASH=0
-
-# Reboot count. New test should start from 0.
-REBOOT=0
-
-# Kernel debuginfo.
-VMLINUX="/usr/lib/debug/lib/modules/$(uname -r)/vmlinux"
-
-# Where vmcore will be saved.
-# /var/crash for Red Hat.
-# /var/log/dump for SUSE.
-COREDIR=/var/crash
-
-# Enable dump with filtering.
-FILTER=0
-# makedumpfile options.
-MAKE_OPTIONS=
-
-# Delay in seconds when dumping to a network destination.
-LINK_DELAY=
-
-# The list of testcases. Please see doc for the overview of
-# those tests.
-
-# ACS ACP ACB ACE ACL
-#CRASHER="ACS ACP ACB ACE ACL"
-
-# KPIDB KPIEB KPTEE KPBL
-#BASIC_LKDTM="KPIDB KPIEB KPTEE KPBL"
-
-# KPIDE KPIDL KPIDP KPIDO
-# KPIEE KPIEL KPIEP KPIEO
-# KPTEB KPTEL KPTEP KPTEO
-# KPBB KPBE KPBP KPBO
-# KPMSB KPMSE KPMSL KPMSP KPMSO
-# KPTB KPTE KPTL KPTP KPTO
-# KPSB KPSE KPSL KPSP KPSO
-# KPIB KPIE KPIL KPIP KPIO
-EXTRA_LKDTM="
-KPIDE KPIDL KPIDP KPIDO
-KPIEE KPIEL KPIEP KPIEO
-KPTEB KPTEL KPTEP KPTEO
-KPBB KPBE KPBP KPBO
-KPMSB KPMSE KPMSL KPMSP KPMSO
-KPTB KPTE KPTL KPTP KPTO
-KPSB KPSE KPSL KPSP KPSO
-KPIB KPIE KPIL KPIP KPIO
-"
-
-# KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB
-#EXTRA_DUMP="KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB"
-
-# Dump vmcore on an EXT3 partition.
-EXT3_PART=
-
-# Dump vmcore on an EXT3 partition with a LABEL.
-EXT3_LABEL=
-
-# Dump vmcore on an EXT3 partition with a partition UID.
-EXT3_UID=
-
-# Dump vmcore on a RAW partition.
-RAW_PART=
-
-# Dump vmcore on network.
-SCP_PATH=
-# Password for user@server.
-SCP_PASS=
-
-# Dump vmcore on a mounted NFS filesystem.
-NFS_PATH=
diff --git a/testcases/kdump/sample/runkdump.EXTRA_LKDTM.SLES b/testcases/kdump/sample/runkdump.EXTRA_LKDTM.SLES
deleted file mode 100644
index 2f78d0cb9c..0000000000
--- a/testcases/kdump/sample/runkdump.EXTRA_LKDTM.SLES
+++ /dev/null
@@ -1,76 +0,0 @@
-# Repeation of test.
-ITERATION=1
-
-# Vmcore verification using crash command.
-# Require kernel-debuginfo and crash packages.
-CRASH=0
-
-# Reboot count. New test should start from 0.
-REBOOT=0
-
-# Kernel debuginfo.
-VMLINUX="/usr/lib/debug/lib/modules/$(uname -r)/vmlinux"
-
-# Where vmcore will be saved.
-# /var/crash for Red Hat.
-# /var/log/dump for SUSE.
-COREDIR=/var/log/dump
-
-# Enable dump with filtering.
-FILTER=0
-# makedumpfile options.
-MAKE_OPTIONS=
-
-# Delay in seconds when dumping to a network destination.
-LINK_DELAY=
-
-# The list of testcases. Please see doc for the overview of
-# those tests.
-
-# ACS ACP ACB ACE ACL
-#CRASHER="ACS ACP ACB ACE ACL"
-
-# KPIDB KPIEB KPTEE KPBL
-#BASIC_LKDTM="KPIDB KPIEB KPTEE KPBL"
-
-# KPIDE KPIDL KPIDP KPIDO
-# KPIEE KPIEL KPIEP KPIEO
-# KPTEB KPTEL KPTEP KPTEO
-# KPBB KPBE KPBP KPBO
-# KPMSB KPMSE KPMSL KPMSP KPMSO
-# KPTB KPTE KPTL KPTP KPTO
-# KPSB KPSE KPSL KPSP KPSO
-# KPIB KPIE KPIL KPIP KPIO
-EXTRA_LKDTM="
-KPIDE KPIDL KPIDP KPIDO
-KPIEE KPIEL KPIEP KPIEO
-KPTEB KPTEL KPTEP KPTEO
-KPBB KPBE KPBP KPBO
-KPMSB KPMSE KPMSL KPMSP KPMSO
-KPTB KPTE KPTL KPTP KPTO
-KPSB KPSE KPSL KPSP KPSO
-KPIB KPIE KPIL KPIP KPIO
-"
-
-# KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB
-#EXTRA_DUMP="KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB"
-
-# Dump vmcore on an EXT3 partition.
-EXT3_PART=
-
-# Dump vmcore on an EXT3 partition with a LABEL.
-EXT3_LABEL=
-
-# Dump vmcore on an EXT3 partition with a partition UID.
-EXT3_UID=
-
-# Dump vmcore on a RAW partition.
-RAW_PART=
-
-# Dump vmcore on network.
-SCP_PATH=
-# Password for user@server.
-SCP_PASS=
-
-# Dump vmcore on a mounted NFS filesystem.
-NFS_PATH=
--
2.49.0
More information about the ltp
mailing list