summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* use "set -eu" in scriptsLars Wirzenius2012-03-229-9/+9
| | | | Except in the missing-ref script, since that one breaks with -e.
* Remove unused variableLars Wirzenius2012-03-221-1/+0
|
* Simplify by removing unnecessary variablesLars Wirzenius2012-03-221-4/+1
|
* Simplify how morph gets called by using config fileLars Wirzenius2012-03-221-4/+2
| | | | | Cant' use tests/morph here, because we don't want logging for this test.
* Simply calls to morph by using tests/morph wrapperLars Wirzenius2012-03-227-64/+13
|
* Add helper script to be used from tests to run morphLars Wirzenius2012-03-222-0/+35
| | | | | The helper script makes it easier for the test scripts to invoke morph.
* Empty and initialize the test data dir anew for each testLars Wirzenius2012-03-229-20/+23
| | | | | | | | | | | | | This avoids accidentally having tests that depend on each other. It would be bad to have tests/bar.script do something and then tests/foo.script only work because of that something: if tests/bar.script later changes, then the later test starts breaking. Keeping tests independent is good practice. We don't seem to have had such dependencies yet, so this is a pre-emptive defensive move. Also, this means we can use simpler names in $DATADIR, instead of embedding the test name in everything. This further simplifies the act of creating new tests.
* tar: add -h option to extractionRichard Maw2012-03-161-1/+1
| | | | | | This should stop tar from replacing symbolic links with directories and instead follow the symbolic links, extracting the files into the linked directories
* tests: name clash better description and no trapRichard Maw2012-03-121-3/+6
| | | | | | | | | | Add a description for what the script is testing, namely whether two chunks in the same repository and branch can be confused for each other. Also unpack in DATADIR so no trap trickery is needed. traps aren't stacked and they aren't fully portable, so avoiding using them has its advantages
* give the test script a better nameRichard Maw2012-03-081-0/+0
|
* fix test permissionsRichard Maw2012-03-081-0/+0
|
* tests: add test script for morph name hackRichard Maw2012-03-081-0/+66
| | | | | If two morphs have the same "name" field then one could be built from the command line, which would occupy the same cache space
* 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
|