summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-07-27 12:43:37 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-07-27 17:15:01 +0200
commitd89c3e5e49f484c28569fed09f431240f557a677 (patch)
tree3721e7592eccef93d97b528de690b670806a796f /test
parent396c2edeb5e240f339cc51728a2ae1d83aded5e1 (diff)
downloadjustbuild-d89c3e5e49f484c28569fed09f431240f557a677.tar.gz
install-cas test: also verify the -P option
Diffstat (limited to 'test')
-rw-r--r--test/end-to-end/remote-execution/install-cas.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/end-to-end/remote-execution/install-cas.sh b/test/end-to-end/remote-execution/install-cas.sh
index 0a2f16a2..32e34624 100644
--- a/test/end-to-end/remote-execution/install-cas.sh
+++ b/test/end-to-end/remote-execution/install-cas.sh
@@ -66,4 +66,17 @@ mkdir -p "${OUTDIR}/stdout"
cmp "${OUTDIR}/stdout/local-raw" "${OUTDIR}/stdout/remote-raw"
cmp "${OUTDIR}/stdout/local" "${OUTDIR}/stdout/remote"
+# verify the -P option
+"${JUST}" install-cas ${REMOTE_ARGS} -P deep/inside/path/hello.txt \
+ -o "${OUTDIR}/path/remote" "${OUT}" 2>&1
+"${JUST}" install-cas ${LOCAL_ARGS} -P deep/inside/path/hello.txt \
+ -o "${OUTDIR}/path/local" "${OUT}" 2>&1
+echo
+ls -alR "${OUTDIR}/path"
+[ -f "${OUTDIR}/path/remote" ]
+grep World "${OUTDIR}/path/remote"
+[ -f "${OUTDIR}/path/local" ]
+grep World "${OUTDIR}/path/local"
+
+
echo OK