| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Except in the missing-ref script, since that one breaks with -e.
|
| |
|
| |
|
|
|
|
|
| |
Cant' use tests/morph here, because we don't want logging for this
test.
|
| |
|
|
|
|
|
| |
The helper script makes it easier for the test scripts to
invoke morph.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
This should stop tar from replacing symbolic links with directories
and instead follow the symbolic links, extracting the files into
the linked directories
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
| |
If two morphs have the same "name" field then one could be built
from the command line, which would occupy the same cache space
|
| |
|
| |
|
|
|
|
|
| |
This time, with testing. For a five line method, this was surprisingly
tricky to get right. Should sleep properly at night...
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
tests/show-dependencies.setup was actually creating different
histories on machines with different timezones.
|
|
|
|
|
|
| |
Adds commentary that tests/show-dependencies.setup will now
always produce a repository with commit sha1s that are always
the same
|
|
|
|
|
| |
Make sure author, comitter and dates are always the same so sha1s
will always be consistent.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This test requires real root, and that's not acceptable for these
tests. We'll test system image building in other ways, later.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
|
|
| |
We can't assume the host has distcc installed while running the checks.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Have to make sure it is caught properly.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Too many levels of escaping confuses tired minds.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|