From: Holger Freyther Date: Sun, 17 Sep 2006 19:33:35 +0000 (+0000) Subject: classes/test.bbclass: Add a new task called test which we can run after compile X-Git-Tag: Release-2010-05/1~9453^2~781^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41755fb3756a95642b14f560b889a0add9ddd7a2;p=openembedded.git classes/test.bbclass: Add a new task called test which we can run after compile packages/quilt/quilt-native.inc: Run make check for quilt native Run make check for quilt-native from the do_test task. This will run the first native test. If the test fails quilt will fail. The tests will only be run if you do INHERIT+=test --- diff --git a/classes/test.bbclass b/classes/test.bbclass new file mode 100644 index 0000000000..71afe88404 --- /dev/null +++ b/classes/test.bbclass @@ -0,0 +1,14 @@ +# +# Tasks specific to QA testing of packages +# +# For native and cross packages we want to test +# immediately for other packages we want to package +# the tests including a test +# + + +addtask test after do_compile +test_do_test () { + : +} + diff --git a/packages/quilt/quilt-native.inc b/packages/quilt/quilt-native.inc index c8bbdc8e07..b7ddd8bce8 100644 --- a/packages/quilt/quilt-native.inc +++ b/packages/quilt/quilt-native.inc @@ -14,3 +14,8 @@ EXTRA_OECONF = "--disable-nls" do_configure () { oe_runconf } + +do_test() { + oe_runmake check +} +