diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-19 11:27:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-20 15:32:12 +0000 |
commit | 84d6be8ceb14b418b059212108c5a71a5950e6c3 (patch) | |
tree | 37affa6114853d352bfac886bcb845ba841b7428 | |
parent | dc7a6b9a73362de5e87439a852234fb1c59ca004 (diff) | |
download | openembedded-core-84d6be8ceb14b418b059212108c5a71a5950e6c3.tar.gz openembedded-core-84d6be8ceb14b418b059212108c5a71a5950e6c3.tar.bz2 openembedded-core-84d6be8ceb14b418b059212108c5a71a5950e6c3.zip |
oeqa/selftest/buildoptions: Add test for fortran compiler building
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/selftest/cases/buildoptions.py | 14 |
1 files changed, 14 insertions, 0 deletions
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') + |