diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-08-21 16:36:46 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-08-26 12:12:02 +0200 |
commit | 34d055f69234475fa5e5eaaa9b4b0291f80a9913 (patch) | |
tree | a060373c9a9d80d57d3f878974f9bce7070e20b5 /test/end-to-end/cli | |
parent | 9e93d20d40ee1501b23c42b945dbf7e10420ac43 (diff) | |
download | justbuild-34d055f69234475fa5e5eaaa9b4b0291f80a9913.tar.gz |
install-cas --archive: Fix empty directories not added to archive
Also add empty directory in test script to ensure we don't regress
in the future. While there, fix some typos.
Diffstat (limited to 'test/end-to-end/cli')
-rw-r--r-- | test/end-to-end/cli/install-archive.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/end-to-end/cli/install-archive.sh b/test/end-to-end/cli/install-archive.sh index b3965870..b5a5821d 100644 --- a/test/end-to-end/cli/install-archive.sh +++ b/test/end-to-end/cli/install-archive.sh @@ -28,6 +28,7 @@ echo simple file > src/foo.txt (cd src && ln -s foo symlink) mkdir -p src/foo/bar echo another file > src/foo/bar/data.txt +mkdir -p src/empty # empty dir echo TREE=$("${JUST}" add-to-cas --local-build-root "${BUILD_ROOT_A}" src) @@ -84,7 +85,7 @@ RECONSTRUCTED_TREE=$(jq -r '.repositories."".workspace_root[1]' "${CONF}") # Build to get the tree unconditionally known to the local build root "${JUST}" build --local-build-root "${BUILD_ROOT_B}" -C "${CONF}" 2>&1 -# - installing the the tree as archive should give the same fiel +# - installing the tree as archive should give the same file "${JUST}" install-cas --local-build-root "${BUILD_ROOT_B}" \ -o "${ROOT}/reconstructed.tar" --archive "${TREE}::t" 2>&1 cmp "${ROOT}/src.tar" "${ROOT}/reconstructed.tar" 2>&1 |