summaryrefslogtreecommitdiff
path: root/morphlib/bins_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Unit tests: Fix up for changes to chunk construct apiRichard Maw2014-01-161-24/+15
|
* Add tests for listing a chunk's contentsRichard Dale2013-05-241-0/+9
|
* Rewrite test to not use with for gzip.GzipFileLars Wirzenius2013-03-131-2/+3
| | | | | | We (still) need this to work in Debian squeeze, for bootstrapping, and squeeze has Python 2.6, which has a GzipFile that does not implement the "with protocol". Boo hiss.
* Test that chunk artifacts are NOT compressedLars Wirzenius2013-03-111-1/+7
|
* python scripts: pep8ize codebaseRichard Maw2012-08-011-24/+27
| | | | | | | | | 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.
* bins_tests: fix tabsRichard Maw2012-07-051-3/+3
|
* unit tests: add tests for tarball extractionRichard Maw2012-07-051-1/+74
|
* Normalize timestamps of files in chunk artifactsLars Wirzenius2012-06-281-1/+1
| | | | | | | This avoids problems with clock skew between the machine that built an artifact and the machine the uses it. I ran into this problem during a test build of other changes in this patch series. We have seen it before, now it is fixed.
* morphlib.bins: remove create_stratumRichard Maw2012-06-141-27/+0
| | | | create_stratum is no longer used, since strata are now chunk lists
* morph: remove dead code and replace Execute with app.runcmdRichard Maw2012-05-301-5/+2
|
* builder: use the same tar extract logic for all artifactsRichard Maw2012-05-141-2/+2
| | | | | Before only the staging area had symbolic links handled, now strata and systems will have the same logic.
* Refactor tests to share more common codeLars Wirzenius2012-02-281-15/+18
|
* Remove pointless empty directory from testLars Wirzenius2012-02-281-2/+0
|
* Document why test ignore directory size and mtimeLars Wirzenius2012-02-281-0/+11
|
* Create chunks, strata in cache via temporary filesLars Wirzenius2012-02-271-6/+13
| | | | | This avoids problems with files with the right names but partial content, if morph is killed in the middle of writing the file.
* Fix mtime handling in tests for chunk and stratum creation and unpackingLars Wirzenius2012-02-011-4/+14
| | | | | | | | | | | | | | | | | | | | | Two things: * GNU tar does not, on Debian squeeze, set the full nanosecond timestamp value correctly. * The temporary directory from which the binaries get created gets modified (so the included files can be removed). Together, these things conspired to make the tests usually pass, but occasionally not, depending on timing. If everything happened within a whole calendar second, they passed. When the machine that runs our CI system got a lot of load from other things, tests sometimes, but not always, started taking more time, triggering the problem. Fix makes all non-directories have a known timestamp without subsecond fraction. Directories get ignored, since it's too hard to arrange for them to retain the timestamps when things get removed, and it doesn't really affect the usefulness of the test.
* Bump copyright years, get rid of long lines and unused imports.Jannis Pohlmann2012-01-231-1/+1
|
* Use self.assert* everywhere instead of the assert statement.Jannis Pohlmann2012-01-191-36/+39
|
* stop morph from using fakeroot and sudoLars Wirzenius2012-01-111-4/+2
| | | | | | | | | | | | | Instead, assume the whole build will be run, by the user, under fakeroot or sudo (the latter for system image builds). This allows us to run all non-system-image-build tests without root access at all. We now always create the cache directory, if missing, even if we're running as root. We no longer run ldconfig if ld.so.conf is missing. It is missing during our tests, but is (now) created by fhs-dirs for real builds.
* Fix tests to reflect changesRichard Maw2011-12-091-7/+14
| | | | | | | | bins now takes an Execute, so the test needed to be changed to also pass one Execute had to be changed to ignore a statement from coverage Also fixed Execute.runv not outputting its error. I think it is not logged this way, but it does get output like it was before. Also check no longer runs cmdtest from the home directory.
* Combine unpack_chunk and unpack_stratum into unpack_binaryLars Wirzenius2011-11-031-3/+3
|
* Include only files matching regexps, removes them from after adding themLars Wirzenius2011-11-031-7/+7
|
* Add tests for create_chunk's glob handlingLars Wirzenius2011-11-031-4/+29
|
* Add functions for creating and unpacking strata.Lars Wirzenius2011-10-171-0/+24
|
* Add functions for creating and unpacking binary chunks.Lars Wirzenius2011-10-171-0/+78