diff options
author | Andi Kleen <ak@linux.intel.com> | 2009-12-14 16:13:42 +0100 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2009-12-14 16:13:42 +0100 |
commit | 8e86fde38a2c5b90a033bf0e91621a0aa4dd1a21 (patch) | |
tree | 8fe7d9f1771f4cd1b9f4ff979b8cc5b76f1bc5ba | |
parent | 589a59d436c18ea90bfe33b9836395d8c457bb56 (diff) | |
download | mce-test-8e86fde38a2c5b90a033bf0e91621a0aa4dd1a21.tar.gz |
Add standard "make test" in tsrc / run from top level Makefile
This runs all the standard functional tests for a quick test in hwpoison
Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | tsrc/Makefile | 19 | ||||
-rw-r--r-- | tsrc/README | 4 |
3 files changed, 24 insertions, 1 deletions
@@ -24,7 +24,9 @@ test: $(MAKE) reset ./drivers/simple/driver.sh simple.conf ./drivers/kdump/driver.sh kdump.conf + $(MAKE) -C tsrc test test-simple: $(MAKE) reset ./drivers/simple/driver.sh simple.conf + $(MAKE) -C tsrc test diff --git a/tsrc/Makefile b/tsrc/Makefile index 7643557..d8ab369 100644 --- a/tsrc/Makefile +++ b/tsrc/Makefile @@ -11,6 +11,8 @@ EXEKERNEL := tring ttable OBJ := $(addsuffix .o,${EXE}) OBJKERNEL := $(addsuffix .o,${EXEKERNEL}) +.PHONY: clean distclean see test hard soft standalone + all: standalone standalone: ${EXE} @@ -44,8 +46,23 @@ tinjpage: LDFLAGS += -lpthread clean: rm -f ${EXE} ${OBJ} rm -f ${EXEKERNEL} ${OBJKERNEL} - rm -f x.html + rm -f x.html unpoison-failed offlined distclean: clean +test: soft hard + +hard: standalone + ./tinjpage + ./tsimpleinj + if ! ./tkillpoison ; then echo "killed as expected" ; exit 0 ; else echo "didn't get killed" ; exit 1 ; fi + ./tprctl + +soft: standalone + ./tsoft + ./tsoftinj + echo "Running soft offliner for 60 seconds" + ./random_offline -t 60 + + diff --git a/tsrc/README b/tsrc/README index e7fc32f..015f9e7 100644 --- a/tsrc/README +++ b/tsrc/README @@ -1,6 +1,10 @@ These are some standalone test programs for various parts of the machine check code: +They can be all tested together by running "make test" +This requires root rights and a kernel with soft offlining and hard +offlining support. + To use ttable and tcases you need to specify a linux source tree with the mce improvements patchkit added with make LSRC=/path/to/linux or symlink the linux tree to ../linux |