summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-09-29 12:36:51 +0100
committerLars Wirzenius <liw@liw.fi>2011-09-29 12:36:51 +0100
commita2c4584418bf71c7f7ee04e333e8f53375104e63 (patch)
treec31238b776e589b5c5d4f4a61a754cbcfb5f7a0d /tests
parent37a8d96202cb0d5fd8465faaf402b5c68ef1458a (diff)
downloadmorph-a2c4584418bf71c7f7ee04e333e8f53375104e63.tar.gz
Add --cachedir option for specifying where build results go.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/hello-chunk.script5
-rwxr-xr-xtests/hello-stratum.script3
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/hello-chunk.script b/tests/hello-chunk.script
index 1dd99e99..60839abb 100755
--- a/tests/hello-chunk.script
+++ b/tests/hello-chunk.script
@@ -21,5 +21,6 @@ set -e
tar -C "$DATADIR" -xf tests/hello-chunk.tar.gz
./morph build "$DATADIR/hello/hello.morph" \
- --chunk-repo="file://$DATADIR/hello" --chunk-ref=master
-tar -tf "$DATADIR/hello/hello.chunk" | LC_ALL=C sort
+ --chunk-repo="file://$DATADIR/hello" --chunk-ref=master \
+ --cachedir="$DATADIR"
+tar -tf "$DATADIR/hello.chunk" | LC_ALL=C sort
diff --git a/tests/hello-stratum.script b/tests/hello-stratum.script
index 16ecdded..76055ba9 100755
--- a/tests/hello-stratum.script
+++ b/tests/hello-stratum.script
@@ -21,7 +21,8 @@ set -e
tar -C "$DATADIR" -xf tests/hello-chunk.tar.gz
./morph build "$DATADIR/hello/hello.morph" \
- --chunk-repo="file://$DATADIR/hello" --chunk-ref=master
+ --chunk-repo="file://$DATADIR/hello" --chunk-ref=master \
+ --cachedir="$DATADIR"
cp tests/hello-stratum.morph "$DATADIR"
./morph build "$DATADIR/hello-stratum.morph" --git-base-url "file://$DATADIR/"