summaryrefslogtreecommitdiff
path: root/unittests/allplatformstests.py
diff options
context:
space:
mode:
authorDaniele Nicolodi <daniele@grinta.net>2024-10-12 13:00:03 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2024-10-13 19:35:58 +0300
commitec7a81ad8620ef0f94be7f84eb946bc90ad1446c (patch)
tree7184c729122630cb97e91e466c919b4794dbd2cc /unittests/allplatformstests.py
parent83d9b21401ec338efeff231316c06aa78e862843 (diff)
downloadmeson-ec7a81ad8620ef0f94be7f84eb946bc90ad1446c.tar.gz
mintro: Add license and license_files to project introspection data
Diffstat (limited to 'unittests/allplatformstests.py')
-rw-r--r--unittests/allplatformstests.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index ca4b194e6..afea39742 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -3021,6 +3021,8 @@ class AllPlatformTests(BasePlatformTests):
expected = {
'descriptive_name': 'proj',
'version': 'undefined',
+ 'license': ['unknown'],
+ 'license_files': [],
'subproject_dir': 'subprojects',
'subprojects': [
{
@@ -3415,7 +3417,14 @@ class AllPlatformTests(BasePlatformTests):
self.assertListEqual(dependencies_to_find, [])
# Check projectinfo
- self.assertDictEqual(res['projectinfo'], {'version': '1.2.3', 'descriptive_name': 'introspection', 'subproject_dir': 'subprojects', 'subprojects': []})
+ self.assertDictEqual(res['projectinfo'], {
+ 'version': '1.2.3',
+ 'license': ['unknown'],
+ 'license_files': [],
+ 'descriptive_name': 'introspection',
+ 'subproject_dir': 'subprojects',
+ 'subprojects': []
+ })
# Check targets
targets_to_find = {