summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Make ./check check for long lines (with excptions); fix long linesLars Wirzenius2012-02-272-3/+7
|
* Add missing copyright years to files missing itLars Wirzenius2012-02-271-1/+1
|
* Fix overriding of build system commandsLars Wirzenius2012-02-151-0/+1
| | | | | This time, with testing. For a five line method, this was surprisingly tricky to get right. Should sleep properly at night...
* Verify distributed-build with local workers works the same as "build".Jannis Pohlmann2012-01-254-0/+85
| | | | | | | This commit adds black box tests for building a single chunk and a stratum with a chunk using as many local workers as morph thinks make sense. The expected stdout of these tests is supposed to be the same as for the build-{chunk,stratum}.script tests.
* Port everything to using Treeish objects instead of (repo, ref).Jannis Pohlmann2012-01-202-123/+123
| | | | | | | | | | | This affects pretty much every part of morph, so this might not be fully working and stable yet. This commit also introduces the "update-gits" command that can be used to update all cached repositories from the list of base URLs. The tree walk when resolving the Treeish objects in Builder.get_cache_id() is a bit similar to what we do in BuildDependencyGraph, maybe we can merge that one day.
* Actually make show-dependencies.setup create an invariant historyRob Taylor2012-01-191-2/+2
| | | | | tests/show-dependencies.setup was actually creating different histories on machines with different timezones.
* Comment tests/show-dependencies.setupRob Taylor2012-01-191-0/+3
| | | | | | Adds commentary that tests/show-dependencies.setup will now always produce a repository with commit sha1s that are always the same
* Make show-dependencies.setup always produce an identical git treeRob Taylor2012-01-191-1/+12
| | | | | Make sure author, comitter and dates are always the same so sha1s will always be consistent.
* Fix coding style, update copyrights, drop unused imports.Jannis Pohlmann2012-01-191-1/+1
|
* Add support for system images in BuildDependencyGraph and new builder.Jannis Pohlmann2012-01-191-0/+1
|
* Initial work on integrate the build order work into builder.Jannis Pohlmann2012-01-191-121/+121
|
* Fix missing-ref.script to return the exit code of morph, not sed.Lars Wirzenius2012-01-191-1/+1
|
* Fix cmdtests for SourceManager changesRob Taylor2012-01-192-9/+7
|
* Use /bin/bash for the show-dependencies test script.Jannis Pohlmann2012-01-162-2/+2
|
* Introduce the "show-dependencies" command and BuildDependencyGraph.Jannis Pohlmann2012-01-163-0/+479
| | | | | | | | The "show-dependencies" command takes a series of build tuples and dumps the resulting dependency graph (including strata and chunks at the moment) to the standard output. It also dumps the resulting build order which is a list of groups. These groups indicate which chunks and strata can be built in parallel and are not dependent on each other.
* remove system image build testLars Wirzenius2012-01-112-29/+0
| | | | | This test requires real root, and that's not acceptable for these tests. We'll test system image building in other ways, later.
* add method to compute recursive cache idLars Wirzenius2011-12-097-14/+102
| | | | | | | | | | | | | | | The cache id will be used as a prefix in filenames in the cache directory. The new way of computing it includes the cache ids of any components so that if chunk A is included in stratum B, and A changes, the new version of A has a new cache id, which means that when we compute cache id for B, it also changes. This will allow us to easily find out if we need to rebuild B. The test repository is split into two: one for the chunk, one for the stratum and system morphologies. This is so that the rebuild test can modify just the chunk, and does not need to trigger both builds. Signed-off-by: Lars Wirzenius <liw@liw.fi>
* if morph fails, dump its log to stderr so user can easily see itLars Wirzenius2011-12-093-3/+10
| | | | Signed-off-by: Lars Wirzenius <liw@liw.fi>
* disable distcc for checksLars Wirzenius2011-12-064-4/+4
| | | | We can't assume the host has distcc installed while running the checks.
* create cachedir at startup if it does not existLars Wirzenius2011-12-014-11/+0
| | | | | | | We don't create it if running as root, since that would mean a typo creates a directory in a place that may be awkward. Anyone running builds as root can go create the directory themselves.
* make --git-base-url add a slash to the end, if missingLars Wirzenius2011-12-014-4/+4
|
* add test case for referring to a missing branch in the repoLars Wirzenius2011-12-013-0/+33
| | | | Have to make sure it is caught properly.
* fix build-system test related changed so tests actually passLars Wirzenius2011-12-014-2/+5
|
* add simple system image build testLars Wirzenius2011-12-012-0/+42
|
* add new test case for building a simple stratumLars Wirzenius2011-12-012-0/+35
|
* add a stratum morphology to the test git repoLars Wirzenius2011-12-011-1/+16
|
* remove old stratum building testLars Wirzenius2011-12-012-39/+0
|
* remove old chunk building test caseLars Wirzenius2011-12-012-50/+0
|
* add test case for building a chunkLars Wirzenius2011-12-012-0/+41
|
* remove unnecessary backslashes in the test morphologyLars Wirzenius2011-12-011-2/+2
| | | | Too many levels of escaping confuses tired minds.
* add a script to set up the git repository for testsLars Wirzenius2011-12-011-0/+69
|
* Fix test case to use new syntaxLars Wirzenius2011-11-141-0/+0
|
* Clean up the environmentLars Wirzenius2011-11-032-2/+2
|
* Fix cmdtest testsLars Wirzenius2011-11-032-0/+13
|
* Prettify test script outputLars Wirzenius2011-11-031-1/+2
|
* Output multiple chunks when requestedLars Wirzenius2011-11-032-2/+2
|
* Add test with split chunksLars Wirzenius2011-11-033-1/+8
|
* Fix cmdtest tests to work with current morph usageLars Wirzenius2011-11-034-3/+4
|
* Normalize the output from tar for tests.Lars Wirzenius2011-10-182-2/+2
| | | | | | For whatever reasons, when running the tests on Debian squeeze and Debian wheezy, the output differs as to whether the pathnames start with "./" or not.
* Use create_stratum and unpack_stratum helper functions.Lars Wirzenius2011-10-171-6/+6
|
* Use morphlib.bins.create_chunk and unpack_chunk in builder.Lars Wirzenius2011-10-171-6/+6
|
* Avoid using the user's configs while running tests.Lars Wirzenius2011-10-112-2/+2
|
* Fix GPL version sentence grammar.Lars Wirzenius2011-10-062-2/+2
|
* Add description field to morphologies and binary metadata.Lars Wirzenius2011-10-051-0/+0
|
* Add metadata into binary.Lars Wirzenius2011-10-052-0/+4
|
* Build strata recursively.Lars Wirzenius2011-09-291-6/+1
| | | | If a chunk is missing, it will be built.
* Store blobs in cache directory.Lars Wirzenius2011-09-292-3/+6
|
* Add --cachedir option for specifying where build results go.Lars Wirzenius2011-09-292-3/+5
|
* Add "set -e" to test scripts.Lars Wirzenius2011-09-292-0/+4
|
* Adapt cmdtest tests to chunk morphs no longer having a "source" field.Lars Wirzenius2011-09-292-5/+7
|