]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
file: run test suite when building natively
authorRoss Burton <ross.burton@intel.com>
Mon, 4 Nov 2019 12:14:57 +0000 (12:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Nov 2019 10:36:19 +0000 (10:36 +0000)
As we apply the same patches to native and target builds of file, we can verify
that the patches are not breaking by executing the test suite during the build
of file-native.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/file/file_5.37.bb

index 80e8b91058b1f4acb73ec870b08313f85fd956fc..a96ccc0d39970c8a054d6fdf88bf23779319d8a7 100644 (file)
@@ -29,6 +29,10 @@ EXTRA_OEMAKE_append_class-nativesdk = "-e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/
 
 FILES_${PN} += "${datadir}/misc/*.mgc"
 
+do_compile_append_class-native() {
+       oe_runmake check
+}
+
 do_install_append_class-native() {
        create_cmdline_wrapper ${D}/${bindir}/file \
                --magic-file ${datadir}/misc/magic.mgc