diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2013-02-25 10:13:34 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2013-03-13 15:20:02 +0000 |
commit | 0cc3de60d6282d22108ea59f169a0749be5e59ea (patch) | |
tree | 2bef9ed79c0b4d9e128b3095e72ccce4a525a532 /tests.build/build-system-cpan.script | |
parent | 84807d4d7c23f45d4f0a0f87e6c7ba7ba7470936 (diff) | |
download | morph-0cc3de60d6282d22108ea59f169a0749be5e59ea.tar.gz |
Add 'prefix' property for chunks within strata
Morph no longer supports setting the prefix using the --prefix
argument / setting. This was only used in tests and during bootstrap.
If a chunk build-depends on a chunk within a stratum which has
a custom prefix, that prefix is appended to the PATH in the build
environment.
Diffstat (limited to 'tests.build/build-system-cpan.script')
-rwxr-xr-x | tests.build/build-system-cpan.script | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/tests.build/build-system-cpan.script b/tests.build/build-system-cpan.script index 19e45e42..b1823eb5 100755 --- a/tests.build/build-system-cpan.script +++ b/tests.build/build-system-cpan.script @@ -54,7 +54,29 @@ git add hello.morph git commit --quiet -m 'convert hello into a perl cpan project' -"$SRCDIR/scripts/test-morph" build-morphology --prefix=/ \ +# Set 'prefix' of hello to something custom +cd "$DATADIR/morphs-repo" +cat <<EOF > hello-stratum.morph +{ + "name": "hello-stratum", + "kind": "stratum", + "chunks": [ + { + "name": "hello", + "repo": "test:chunk-repo", + "ref": "farrokh", + "build-depends": [], + "build-mode": "test", + "prefix": "/" + } + ] +} +EOF +git add hello-stratum.morph +git commit -q -m "Set custom install prefix for hello" + + +"$SRCDIR/scripts/test-morph" build-morphology \ test:morphs-repo master hello-system for chunk in "$DATADIR/cache/artifacts/"*.chunk.* |