diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-05-30 20:29:35 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-05-30 20:29:35 +0300 |
commit | 144565fabff7c872b7c45970bb0e30235b2e9324 (patch) | |
tree | 68cca1a3308264b218d128c8055baebc62a90add /test cases | |
parent | 16e032c2890487f56cf8cffdf7b0c241482116be (diff) | |
download | meson-144565fabff7c872b7c45970bb0e30235b2e9324.zip meson-144565fabff7c872b7c45970bb0e30235b2e9324.tar.gz meson-144565fabff7c872b7c45970bb0e30235b2e9324.tar.bz2 |
Added method to get current project name.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/common/49 subproject/meson.build | 2 | ||||
-rw-r--r-- | test cases/common/49 subproject/subprojects/sublib/meson.build | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test cases/common/49 subproject/meson.build b/test cases/common/49 subproject/meson.build index 1e05ddf..c6ec116 100644 --- a/test cases/common/49 subproject/meson.build +++ b/test cases/common/49 subproject/meson.build @@ -2,6 +2,8 @@ project('subproj user', 'c', version : '2.3.4', license : 'mylicense') +assert(meson.project_name() == 'subproj user', 'Incorrect project name') + sub = subproject('sublib', version : '1.0.0') if meson.project_version() != '2.3.4' diff --git a/test cases/common/49 subproject/subprojects/sublib/meson.build b/test cases/common/49 subproject/subprojects/sublib/meson.build index 3da031b..269f815 100644 --- a/test cases/common/49 subproject/subprojects/sublib/meson.build +++ b/test cases/common/49 subproject/subprojects/sublib/meson.build @@ -6,6 +6,8 @@ if not meson.is_subproject() error('Claimed to be master project even though we are a subproject.') endif +assert(meson.project_name() == 'subproject', 'Incorrect subproject name') + if meson.project_version() != '1.0.0' error('Incorrect version string in subproject.') endif |