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-21 10:21:00 +0000 |
| commit | 04315672fcc9d5b0f8de9afdaa9f39890d645afd (patch) | |
| tree | 75378647f0c353e133e6ce400a401e3eec979bf3 | |
| parent | 57ba094ad757425b32d602a79311455d2dafe08b (diff) | |
| download | poky-04315672fcc9d5b0f8de9afdaa9f39890d645afd.tar.gz | |
oeqa/selftest/buildoptions: Add test for fortran compiler building
(From OE-Core rev: 84d6be8ceb14b418b059212108c5a71a5950e6c3)
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): | |||
| 164 | src_file_glob = str(pkgs_path[0]) + "/xcursor*.src.rpm" | 164 | src_file_glob = str(pkgs_path[0]) + "/xcursor*.src.rpm" |
| 165 | tar_file_glob = str(pkgs_path[0]) + "/xcursor*.tar.gz" | 165 | tar_file_glob = str(pkgs_path[0]) + "/xcursor*.tar.gz" |
| 166 | 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) | 166 | 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) |
| 167 | |||
| 168 | class ToolchainOptions(OESelftestTestCase): | ||
| 169 | |||
| 170 | def test_toolchain_fortran(self): | ||
| 171 | """ | ||
| 172 | Test whether we can enable and build fortran and its supporting libraries | ||
| 173 | """ | ||
| 174 | |||
| 175 | features = 'FORTRAN_forcevariable = ",fortran"\n' | ||
| 176 | features += 'RUNTIMETARGET_append_pn-gcc-runtime = " libquadmath"\n' | ||
| 177 | self.write_config(features) | ||
| 178 | |||
| 179 | bitbake('gcc-runtime libgfortran') | ||
| 180 | |||
