diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-09-20 17:19:54 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-09-21 16:06:08 +0100 |
commit | 3a8ee82f912399739b44688b0f71b04daa8c5c68 (patch) | |
tree | 17dbaebe2c382731bc9b32de7583bf6f6b38e913 /tests.branching | |
parent | e0555e433ea6611d161aa31b10d621905c95c5ae (diff) | |
download | morph-3a8ee82f912399739b44688b0f71b04daa8c5c68.tar.gz |
Add 'morph unpetrify'
Tested in the petrify test, to avoid duplication.
Diffstat (limited to 'tests.branching')
-rwxr-xr-x | tests.branching/petrify.script | 6 | ||||
-rw-r--r-- | tests.branching/petrify.stdout | 15 |
2 files changed, 21 insertions, 0 deletions
diff --git a/tests.branching/petrify.script b/tests.branching/petrify.script index fe516ffb..0b5ff018 100755 --- a/tests.branching/petrify.script +++ b/tests.branching/petrify.script @@ -34,4 +34,10 @@ cd "$DATADIR/workspace" cd master/baserock:morphs "$SRCDIR/scripts/test-morph" petrify +echo "Petrified:" +cat hello-stratum.morph + +"$SRCDIR/scripts/test-morph" unpetrify +echo +echo "Unpetrified:" cat hello-stratum.morph diff --git a/tests.branching/petrify.stdout b/tests.branching/petrify.stdout index 4aa2b2ea..249a8f59 100644 --- a/tests.branching/petrify.stdout +++ b/tests.branching/petrify.stdout @@ -1,3 +1,4 @@ +Petrified: { "name": "hello-stratum", "kind": "stratum", @@ -11,3 +12,17 @@ } ] } + +Unpetrified: +{ + "name": "hello-stratum", + "kind": "stratum", + "chunks": [ + { + "name": "hello", + "repo": "baserock:hello", + "ref": "master", + "build-depends": [] + } + ] +} |