From 84d6be8ceb14b418b059212108c5a71a5950e6c3 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 19 Dec 2017 11:27:54 +0000 Subject: oeqa/selftest/buildoptions: Add test for fortran compiler building Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/buildoptions.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/buildoptions.py b/meta/lib/oeqa/selftest/cases/buildoptions.py index cf221c33af..e60e32dadf 100644 --- a/meta/lib/oeqa/selftest/cases/buildoptions.py +++ b/meta/lib/oeqa/selftest/cases/buildoptions.py @@ -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') + -- cgit 1.2.3-korg