1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

oeqa/selftest/buildoptions: Add test for fortran compiler building

(From OE-Core rev: 84d6be8ceb14b418b059212108c5a71a5950e6c3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2017-12-19 11:27:54 +00:00
parent 57ba094ad7
commit 04315672fc
@@ -164,3 +164,17 @@ class ArchiverTest(OESelftestTestCase):
src_file_glob = str(pkgs_path[0]) + "/xcursor*.src.rpm"
tar_file_glob = str(pkgs_path[0]) + "/xcursor*.tar.gz"
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
"""
features = 'FORTRAN_forcevariable = ",fortran"\n'
features += 'RUNTIMETARGET_append_pn-gcc-runtime = " libquadmath"\n'
self.write_config(features)
bitbake('gcc-runtime libgfortran')