diff options
author | Daniel Firth <dan.firth@codethink.co.uk> | 2013-10-28 17:56:23 +0000 |
---|---|---|
committer | Daniel Firth <dan.firth@codethink.co.uk> | 2013-10-30 12:20:00 +0000 |
commit | 6a315135ac6273c90f7dc35b7d4c49da158be487 (patch) | |
tree | c014c050030311112f32e97fe58197a7c7c062d1 /yarns/implementations.yarn | |
parent | 9f22da771ebfec1901d0fe90f87b1960aa578748 (diff) | |
download | morph-6a315135ac6273c90f7dc35b7d4c49da158be487.tar.gz |
Added scenario test for preventing cross-building
Diffstat (limited to 'yarns/implementations.yarn')
-rw-r--r-- | yarns/implementations.yarn | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn index d03e7ae0..7efff54e 100644 --- a/yarns/implementations.yarn +++ b/yarns/implementations.yarn @@ -128,6 +128,18 @@ another to hold a chunk. mkdir "$DATADIR/cache" mkdir "$DATADIR/tmp" + IMPLEMENTS GIVEN a system called (\S+) for architecture (\S+) in the git server + cat << EOF > "$DATADIR/gits/morphs/$MATCH_1.morph" + arch: $MATCH_2 + configuration-extensions: [] + description: A system called $MATCH_1 for architectures $MATCH_2 + kind: system + name: $MATCH_1 + strata: [] + EOF + run_in "$DATADIR/gits/morphs" git add "$MATCH_1.morph" + run_in "$DATADIR/gits/morphs" git commit -m "Added $MATCH_1 morphology." + Morphologies need to support having a null ref, which means look for the stratum in the same repository and ref. Testing this requires different morphologies. @@ -434,6 +446,19 @@ Generating a manifest. die "Output isn't what we expect" fi +Implementation sections for building +==================================== + + IMPLEMENTS WHEN attempting to build the system (\S+) in branch (\S+) + cd "$DATADIR/workspace/$MATCH_2" + attempt_morph build "$MATCH_1" + +Implementations sections for reading error messages +=================================================== + + IMPLEMENTS THEN the (init|build|checkout|branch) error message includes the string "(.*)" + grep "$MATCH_2" "$DATADIR/result-$MATCH_1" + IMPLEMENTS for test file and directory handling =============================================== |