diff options
author | Saul Wold <sgw@linux.intel.com> | 2013-10-07 17:06:27 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-18 15:49:58 +0100 |
commit | f2c4d8022da45259da0f424e8b8709933fb3a862 (patch) | |
tree | 61fda9d7a56ddccf87c884b598256279cfba21e6 | |
parent | 89b569bca7b270e83f305bdc16ddc066ff406e95 (diff) | |
download | poky-f2c4d8022da45259da0f424e8b8709933fb3a862.tar.gz |
check: add check recipe for kbd to use for creating unit tests
enable ptest support for check itself
(From OE-Core rev: 675b48d12325ca791797cd26fd0d1aae50003da6)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/check/check_0.9.10.bb | 20 | ||||
-rw-r--r-- | meta/recipes-support/check/files/ptest.patch | 29 | ||||
-rw-r--r-- | meta/recipes-support/check/files/run-ptest | 3 |
3 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-support/check/check_0.9.10.bb b/meta/recipes-support/check/check_0.9.10.bb new file mode 100644 index 0000000000..78eec145e9 --- /dev/null +++ b/meta/recipes-support/check/check_0.9.10.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | DESCRIPTION = "Library to read the extended image information (EXIF) from JPEG pictures" | ||
2 | HOMEPAGE = "http://sourceforge.net/projects/check" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "LGPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
6 | |||
7 | |||
8 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BP}.tar.gz \ | ||
9 | file://run-ptest \ | ||
10 | file://ptest.patch \ | ||
11 | " | ||
12 | |||
13 | SRC_URI[md5sum] = "6d10a8efb9a683467b92b3bce97aeb30" | ||
14 | SRC_URI[sha256sum] = "823819235753e94ae0bcab3c46cc209de166c32ff2f52cefe120597db4403e6d" | ||
15 | |||
16 | inherit autotools ptest | ||
17 | |||
18 | RDEPENDS_${PN} = "make" | ||
19 | |||
20 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-support/check/files/ptest.patch b/meta/recipes-support/check/files/ptest.patch new file mode 100644 index 0000000000..3cb2b25e05 --- /dev/null +++ b/meta/recipes-support/check/files/ptest.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | Index: check-0.9.10/Makefile.am | ||
2 | =================================================================== | ||
3 | --- check-0.9.10.orig/Makefile.am | ||
4 | +++ check-0.9.10/Makefile.am | ||
5 | @@ -45,6 +45,9 @@ ACLOCAL_AMFLAGS = -I m4 | ||
6 | doc/check_html: | ||
7 | $(MAKE) -C doc check_html | ||
8 | |||
9 | +install-ptest: | ||
10 | + $(MAKE) -C tests install-ptest | ||
11 | + | ||
12 | # check we can do a clean build, including docs. | ||
13 | # perhaps we should check for out of date (svn st -u) and modified files. | ||
14 | prereleasecheck: doc/check_html | ||
15 | Index: check-0.9.10/tests/Makefile.am | ||
16 | =================================================================== | ||
17 | --- check-0.9.10.orig/tests/Makefile.am | ||
18 | +++ check-0.9.10/tests/Makefile.am | ||
19 | @@ -81,3 +81,10 @@ ex_xml_output_LDADD = $(top_builddir)/sr | ||
20 | AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src | ||
21 | |||
22 | CLEANFILES = *~ *.log *.xml test_logfile | ||
23 | + | ||
24 | +install-ptest: | ||
25 | + @$(MKDIR_P) $(DESTDIR)/tests | ||
26 | + @for file in $(noinst_PROGRAMS) $(EXTRA_DIST); do \ | ||
27 | + install -m 0755 $$file $(DESTDIR)/tests; \ | ||
28 | + done; | ||
29 | + @sed -e 's/^Makefile/_Makefile/' < Makefile > $(DESTDIR)/Makefile | ||
diff --git a/meta/recipes-support/check/files/run-ptest b/meta/recipes-support/check/files/run-ptest new file mode 100644 index 0000000000..d4969ef4d1 --- /dev/null +++ b/meta/recipes-support/check/files/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | make -k check-TESTS | ||
3 | |||