summaryrefslogtreecommitdiff
path: root/morphlib/util_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Modify morph to strip .morph extensions from parametersBen Brown2013-12-161-0/+22
|
* util: Add helper for splitting up huge iterablesRichard Maw2013-11-221-0/+11
| | | | | | | | This is used to split a large iterable into more manageable chunks. This is important when a consumer can only handle so much input at once e.g. A program can take a large, but finite number of arguments, xargs exists to handle this for shell programs.
* Utility function to convert all values in a dictionary to stringsTiago Gomes2013-08-161-0/+5
| | | | | | | | | This will be useful in the next commit, where we want to construct an environment to run a command from a dictionary. The cliapp runcmd method expects that the values in this dictionary are strings, so we need to convert them before.
* deploy: refactor environment argument parsingRichard Maw2013-08-131-0/+18
| | | | It is now a tested helper function in morphlib.util
* Add morphlib.util.find_root and find_leaf functionsLars Wirzenius2013-08-061-0/+39
| | | | | | | These will be used to find workspace and system branch root directories. Also accidentally removed some whitespace from ends of lines. Too lazy to split that into a separate commit.
* One 'arch' to rule them allSam Thursfield2013-03-151-9/+1
| | | | | | | | | | | | | Define a specific set of 4 architectures that Morph supports, and only expose that value to morphologies. Since GNU triplets are very common we also expose a GNU triplet. Other morphologies should work out their configuration based on MORPH_ARCH. This commit also removes the morphlib.util.arch() function, which detected the machine Morph is running on via 'uname -m'. Morph's architecture names do not necessarily map to the output of 'uname -m' so we should not rely on it anywhere.
* python scripts: pep8ize codebaseRichard Maw2012-08-011-6/+5
| | | | | | | | | 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.
* Bump copyright years, get rid of long lines and unused imports.Jannis Pohlmann2012-01-231-1/+1
|
* Add method for deciding how many concurrent make jobs to run.Lars Wirzenius2011-10-191-0/+15
|
* Move Builder.arch into util.arch.Lars Wirzenius2011-10-171-0/+8
| | | | This makes it easy to add a test case.
* Fix GPL version sentence grammar.Lars Wirzenius2011-10-061-1/+1
|
* Initial import.Lars Wirzenius2011-09-291-0/+36