diff options
author | Tudor Florea <tudor.florea@enea.com> | 2013-07-19 19:31:34 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-24 11:35:35 +0100 |
commit | 18f39e545674d7405cbdf4486a911c577177706f (patch) | |
tree | 23be69f7009d7f57f0e7e8085aa1d1b601165d61 /meta/recipes-kernel/kmod/kmod | |
parent | bbab6e78f437eedfbb7dcb09c2d5c57ee71210a3 (diff) | |
download | ast2050-yocto-poky-18f39e545674d7405cbdf4486a911c577177706f.zip ast2050-yocto-poky-18f39e545674d7405cbdf4486a911c577177706f.tar.gz |
kmod: Add ptest
Install kmod test suite and run it as ptest.
(From OE-Core rev: 152c973227e41b7736457b7f8c40849cc71b45ca)
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/kmod/kmod')
-rw-r--r-- | meta/recipes-kernel/kmod/kmod/ptest.patch | 25 | ||||
-rwxr-xr-x | meta/recipes-kernel/kmod/kmod/run-ptest | 5 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kmod/kmod/ptest.patch b/meta/recipes-kernel/kmod/kmod/ptest.patch new file mode 100644 index 0000000..839d2a6 --- /dev/null +++ b/meta/recipes-kernel/kmod/kmod/ptest.patch @@ -0,0 +1,25 @@ +Add 'install-ptest' rule. + +Signed-off-by: Tudor Florea <tudor.florea@enea.com> +Upstream-status: Pending + +diff -ruN a/Makefile.am b/Makefile.am +--- a/Makefile.am 2013-07-12 17:11:05.278331557 +0200 ++++ b/Makefile.am 2013-07-12 17:14:27.033788016 +0200 +@@ -204,6 +204,16 @@ + + distclean-local: $(DISTCLEAN_LOCAL_HOOKS) + ++install-ptest: ++ @$(MKDIR_P) $(DESTDIR)/testsuite ++ @for file in $(TESTSUITE); do \ ++ install $$file $(DESTDIR)/testsuite; \ ++ done; ++ @cp Makefile $(DESTDIR) ++ @sed -i 's/^Makefile/_Makefile/' ${DESTDIR}/Makefile ++ @tar -czf $(DESTDIR)/tools.tgz $(noinst_SCRIPTS) $(noinst_PROGRAMS) ++ @tar -C testsuite -czf $(DESTDIR)/testsuite.tgz rootfs-pristine .libs ++ + # ------------------------------------------------------------------------------ + # custom release helpers + # ------------------------------------------------------------------------------ diff --git a/meta/recipes-kernel/kmod/kmod/run-ptest b/meta/recipes-kernel/kmod/kmod/run-ptest new file mode 100755 index 0000000..fac24fd --- /dev/null +++ b/meta/recipes-kernel/kmod/kmod/run-ptest @@ -0,0 +1,5 @@ +#!/bin/sh +tar -xzf tools.tgz +tar -C testsuite -xzf testsuite.tgz +make rootfs +make -k runtest-TESTS 2>/dev/null| grep -e ^PASS -e ^FAIL |