From 3a8ee82f912399739b44688b0f71b04daa8c5c68 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Thu, 20 Sep 2012 17:19:54 +0100 Subject: Add 'morph unpetrify' Tested in the petrify test, to avoid duplication. --- tests.branching/petrify.script | 6 ++++++ tests.branching/petrify.stdout | 15 +++++++++++++++ 2 files changed, 21 insertions(+) (limited to 'tests.branching') 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": [] + } + ] +} -- cgit v1.2.1