summaryrefslogtreecommitdiff
path: root/morphlib/buildsystem_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove support for definitions version 6Tiago Gomes2016-03-251-32/+0
| | | | Change-Id: I603b5172902b5249874ea3bb90de59db5a908185
* Add support for Baserock definitions version 7Sam Thursfield2015-10-141-0/+9
| | | | | | | | | | | | | | | | | | | | | | This adds a new 'Defaults' class to represent definitions defaults The Python 'jsonschema' module is used to validate the contents of the Defaults file. This module is already included in Baserock 'build' and 'devel' reference systems by way of the 'openstack-common' stratum. This commit embeds a copy of the JSON-Schema schema for the DEFAULTS file. I think the canonical location of this schema should be in the reference definitions.git, for now. In future, the schemas should maybe have their own repos. Either way, Morph should embed a copy for the time being so that we are sure the schema matches how Morph expects to parse the file. Morph's automated tests are all updated to use definitions version 7. I removed most of the tests for built-in build systems, because the built-ins themselves are no longer part of Morph. Only the mechanism for defining them needs to be tested now. Change-Id: I65f8f1c967683ef605852bfae5c68518e53f9981
* Remove support for Baserock definitions format versions 3, 4 and 5Sam Thursfield2015-09-181-98/+0
| | | | Change-Id: Iad95af65bd5c528d2e72f5b2ffa80a01152f50ff
* Use the modern way of the GPL copyright header: URL instead real addressJavier Jardón2015-03-161-3/+2
| | | | Change-Id: I992dc0c1d40f563ade56a833162d409b02be90a0
* buildsystem: Generate a Morphology not textAdam Coldrick2014-08-141-4/+4
| | | | | Rather than generating the text of a morphology which is later loaded, generate a Morphology object and return that.
* Update copyright yearLars Wirzenius2013-05-301-1/+1
| | | | Shameless self-approval.
* Add detection for cmake and qmake build systemsRichard Dale2013-05-291-0/+51
| | | | Add tests for cmake and qmake build systems
* Fix spelling mistakesSam Thursfield2012-11-121-1/+1
|
* Refactor build system code for easier testingSam Thursfield2012-08-241-18/+6
|
* Use git ls-tree to autodetect build systemSam Thursfield2012-08-241-54/+22
| | | | | | | The cost of one git ls-tree call is roughly the same as one git cat-file call. Therefore, when autodetecting the build system, it is much faster to list the tree once and then search for the required files than to call git cat-file for every possible one.
* buildsystem: Fix incorrect testcaseSam Thursfield2012-08-241-2/+2
|
* python scripts: pep8ize codebaseRichard Maw2012-08-011-21/+20
| | | | | | | | | This was done with the aid of the pep8 script, available by running `easy_install pep8`. It may be worth making this part of ./check, but that will require putting pep8 into the development tools stratum. This should be easy, given pep8 has no external dependencies.
* Make build system autodetection use an file existence function passed inLars Wirzenius2012-03-301-8/+20
|
* Change detect_build_system to not default to manualLars Wirzenius2012-03-301-2/+2
| | | | | | We do not want a manual build system if there is no morphology, since building with a no-op manual build system just hides the fact that the chunk can't be built because a morphology is missing.
* Make build system class return artificial text for missing morphologyLars Wirzenius2012-03-301-0/+5
|
* Add indexing access to the various commands in build systemsLars Wirzenius2012-03-301-3/+21
|
* Add tests for looking up autotools, dummy build systemsLars Wirzenius2012-03-301-0/+8
|
* Add a dummy build systemLars Wirzenius2012-03-301-0/+18
|
* Add looking up of build systems by nameLars Wirzenius2012-03-301-0/+13
|
* Add autodetection for autotools, and a factory functionLars Wirzenius2012-03-301-4/+24
|
* STart a build system abstraction with autodetectionLars Wirzenius2012-03-301-0/+72