mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 20:27:58 +02:00
oeqa/buildoptions: check that Fortran code actually cross-compiles
Don't just test that we can build the cross-compiler, but test that it actually can cross-compile some Fortran. The quadmath dependency is now handled in gcc-runtime and isn't needed in this test (as per local.conf.sample.extended changes). There's also no need to build libgfortran explicitly, as fortran-helloworld depends on it. (From OE-Core rev: 4b43c655ed5ff8b9d2662730526811220b21ff8c) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f0c76ce18c
commit
bb75a12425
@@ -162,17 +162,14 @@ class ArchiverTest(OESelftestTestCase):
|
||||
self.assertTrue((g.glob(src_file_glob) and g.glob(tar_file_glob)), "Couldn't find .src.rpm and .tar.gz files under %s/allarch*/xcursor*" % deploy_dir_src)
|
||||
|
||||
class ToolchainOptions(OESelftestTestCase):
|
||||
|
||||
def test_toolchain_fortran(self):
|
||||
"""
|
||||
Test whether we can enable and build fortran and its supporting libraries
|
||||
Test that Fortran works by building a Hello, World binary.
|
||||
"""
|
||||
|
||||
features = 'FORTRAN_forcevariable = ",fortran"\n'
|
||||
features += 'RUNTIMETARGET_append_pn-gcc-runtime = " libquadmath"\n'
|
||||
self.write_config(features)
|
||||
|
||||
bitbake('gcc-runtime libgfortran')
|
||||
bitbake('fortran-helloworld')
|
||||
|
||||
class SourceMirroring(OESelftestTestCase):
|
||||
# Can we download everything from the Yocto Sources Mirror over http only
|
||||
|
||||
Reference in New Issue
Block a user