diff options
Diffstat (limited to 'meta/recipes-kernel/kmod/kmod')
-rw-r--r-- | meta/recipes-kernel/kmod/kmod/ptest.patch | 8 | ||||
-rwxr-xr-x | meta/recipes-kernel/kmod/kmod/run-ptest | 4 |
2 files changed, 5 insertions, 7 deletions
diff --git a/meta/recipes-kernel/kmod/kmod/ptest.patch b/meta/recipes-kernel/kmod/kmod/ptest.patch index c6479b2fb5..831dbcb909 100644 --- a/meta/recipes-kernel/kmod/kmod/ptest.patch +++ b/meta/recipes-kernel/kmod/kmod/ptest.patch | |||
@@ -15,10 +15,10 @@ diff -ruN a/Makefile.am b/Makefile.am | |||
15 | + @for file in $(TESTSUITE); do \ | 15 | + @for file in $(TESTSUITE); do \ |
16 | + install $$file $(DESTDIR)/testsuite; \ | 16 | + install $$file $(DESTDIR)/testsuite; \ |
17 | + done; | 17 | + done; |
18 | + @cp Makefile $(DESTDIR) | 18 | + @sed -e 's/^Makefile/_Makefile/' < Makefile > $(DESTDIR)/Makefile |
19 | + @sed -i 's/^Makefile/_Makefile/' ${DESTDIR}/Makefile | 19 | + @$(MKDIR_P) $(DESTDIR)/tools |
20 | + @tar -czf $(DESTDIR)/tools.tgz $(noinst_SCRIPTS) $(noinst_PROGRAMS) | 20 | + @cp $(noinst_SCRIPTS) $(noinst_PROGRAMS) $(DESTDIR)/tools |
21 | + @tar -C testsuite -czf $(DESTDIR)/testsuite.tgz rootfs-pristine .libs | 21 | + @cp -r testsuite/rootfs testsuite/.libs $(DESTDIR)/testsuite |
22 | + | 22 | + |
23 | # ------------------------------------------------------------------------------ | 23 | # ------------------------------------------------------------------------------ |
24 | # custom release helpers | 24 | # custom release helpers |
diff --git a/meta/recipes-kernel/kmod/kmod/run-ptest b/meta/recipes-kernel/kmod/kmod/run-ptest index fac24fd6e1..37adec3d2f 100755 --- a/meta/recipes-kernel/kmod/kmod/run-ptest +++ b/meta/recipes-kernel/kmod/kmod/run-ptest | |||
@@ -1,5 +1,3 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | tar -xzf tools.tgz | 2 | touch testsuite/stamp-rootfs |
3 | tar -C testsuite -xzf testsuite.tgz | ||
4 | make rootfs | ||
5 | make -k runtest-TESTS 2>/dev/null| grep -e ^PASS -e ^FAIL | 3 | make -k runtest-TESTS 2>/dev/null| grep -e ^PASS -e ^FAIL |