From e2640e6dfa5c125b2350b96543dd9150cc003f8d Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Wed, 30 Nov 2016 21:41:39 -0500 Subject: [PATCH] cli.test: add case from #90 Closes #90 Signed-off-by: Vincent Batts --- test/cli/0007.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/cli/0007.sh diff --git a/test/cli/0007.sh b/test/cli/0007.sh new file mode 100644 index 0000000..3b21db1 --- /dev/null +++ b/test/cli/0007.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -e + +name=$(basename $0) +root="$(dirname $(dirname $(dirname $0)))" +gomtree=$(readlink -f ${root}/gomtree) +left=$(mktemp -d /tmp/go-mtree.XXXXXX) +right=$(mktemp -d /tmp/go-mtree.XXXXXX) + +echo "[${name}] Running in ${left} and ${right}" + +touch ${left}/one +touch ${left}/two +cp -a ${left}/one ${right}/ + +$gomtree -K "sha256digest" -p ${left} -c > /tmp/left.mtree +$gomtree -k "sha256digest" -p ${right} -f /tmp/left.mtree +rm -fr ${left} ${right}