diff options
author | Nicolas Ettlin <nicolas.ettlin@me.com> | 2018-07-05 13:00:32 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-10-02 06:59:37 +0000 |
commit | 5babb7ba51b903f8627531fe33e5cb679442e3c8 (patch) | |
tree | e597749431981e3d0b6c4017672ea1444363ddcf /tests | |
parent | 060d06906de5cde911ac43c6d41e17938e1abd0f (diff) |
Extend qtattributionscanner to handle Chromium third-party content
qtattributionscanner is a tool used to generate the documentation for
third-party modules at https://doc.qt.io/qt-5/licenses-used-in-qt.html.
This commit makes qtattributionscanner parse README.chromium files, in
addition to the qt_attribution.json files.
Task-number: QTBUG-69285
Change-Id: Ie0e92a788efe28175387a62550ae0f32f26979f5
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qtattributionsscanner/testdata/good/chromium/README_test.chromium | 9 | ||||
-rw-r--r-- | tests/auto/qtattributionsscanner/testdata/good/expected.json | 19 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tests/auto/qtattributionsscanner/testdata/good/chromium/README_test.chromium b/tests/auto/qtattributionsscanner/testdata/good/chromium/README_test.chromium new file mode 100644 index 000000000..26e221274 --- /dev/null +++ b/tests/auto/qtattributionsscanner/testdata/good/chromium/README_test.chromium @@ -0,0 +1,9 @@ +Name: Test +License: License + +Description: +Hello world! +Line 2 + +Local Modifications: +None diff --git a/tests/auto/qtattributionsscanner/testdata/good/expected.json b/tests/auto/qtattributionsscanner/testdata/good/expected.json index 2914dcc4b..f4ad1b360 100644 --- a/tests/auto/qtattributionsscanner/testdata/good/expected.json +++ b/tests/auto/qtattributionsscanner/testdata/good/expected.json @@ -1,5 +1,24 @@ [ { + "Copyright": "", + "Description": "Hello world!\nLine 2", + "DownloadLocation": "", + "Files": "", + "Homepage": "", + "Id": "chromium-test", + "License": "License", + "LicenseFile": "", + "LicenseId": "", + "Name": "Test", + "Path": "%{PWD}/chromium", + "QDocModule": "qtwebengine", + "QtParts": [ + "libs" + ], + "QtUsage": "Used in Qt WebEngine", + "Version": "" + }, + { "Copyright": "Copyright", "Description": "Multi\nLine\nDescription", "Homepage": "www.qt.io", |