From e673826fbab90b1bb3b1b93277cab0e489fec190 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 28 Jun 2012 16:10:39 +0100 Subject: Add check for missing build depends in strata This will make a build fail if the morphology is missing explicit build dependencies. Also fix test causes so that ./check passes. --- tests/build-stratum-with-submodules.script | 3 ++- tests/morphless-chunks.script | 3 ++- tests/setup | 3 ++- tests/stratum-overlap-warns.setup | 12 ++++++++---- 4 files changed, 14 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/build-stratum-with-submodules.script b/tests/build-stratum-with-submodules.script index 7d44caf6..c2d97817 100755 --- a/tests/build-stratum-with-submodules.script +++ b/tests/build-stratum-with-submodules.script @@ -53,7 +53,8 @@ cat < "$morphs/submod-stratum.morph" { "name": "parent", "repo": "test:parent-repo", - "ref": "master" + "ref": "master", + "build-depends": [] } ] } diff --git a/tests/morphless-chunks.script b/tests/morphless-chunks.script index 584a4e09..956bd7c1 100755 --- a/tests/morphless-chunks.script +++ b/tests/morphless-chunks.script @@ -48,7 +48,8 @@ cat << EOF > alfred.morph { "name": "morphless", "repo": "test:morphless", - "ref": "master" + "ref": "master", + "build-depends": [] } ] } diff --git a/tests/setup b/tests/setup index 5a6668a3..179502f8 100755 --- a/tests/setup +++ b/tests/setup @@ -94,7 +94,8 @@ cat < hello-stratum.morph { "name": "hello", "repo": "test:chunk-repo", - "ref": "farrokh" + "ref": "farrokh", + "build-depends": [] } ] } diff --git a/tests/stratum-overlap-warns.setup b/tests/stratum-overlap-warns.setup index 94aed05a..4dff3ddb 100755 --- a/tests/stratum-overlap-warns.setup +++ b/tests/stratum-overlap-warns.setup @@ -33,22 +33,26 @@ cat <overlap-stratum.morph { "name": "dirs", "repo": "test:chunk-repo", - "ref": "overlap" + "ref": "overlap", + "build-depends": [] }, { "name": "overlap-foobar", "repo": "test:chunk-repo", - "ref": "overlap" + "ref": "overlap", + "build-depends": ["dirs"] }, { "name": "overlap-fooqux", "repo": "test:chunk-repo", - "ref": "overlap" + "ref": "overlap", + "build-depends": ["overlap-foobar"] }, { "name": "overlap-foo-baz", "repo": "test:chunk-repo", - "ref": "overlap" + "ref": "overlap", + "build-depends": ["overlap-fooqux"] } ] } -- cgit v1.2.1