diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2024-01-22 17:24:34 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2024-01-22 17:29:45 +0100 |
commit | da077db52d0af2ce3cf6590e77c9b85de21ef23b (patch) | |
tree | fb3bc76d30727b19f86590f2f2430ebce37387ba /test | |
parent | 3eef9c42eadfe9088814cb93ece7435fe97fe8fb (diff) | |
download | justbuild-da077db52d0af2ce3cf6590e77c9b85de21ef23b.tar.gz |
tests: Run mirror tests for fetch and setup
Diffstat (limited to 'test')
-rw-r--r-- | test/end-to-end/just-mr/just-mr-mirrors.test.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/end-to-end/just-mr/just-mr-mirrors.test.sh b/test/end-to-end/just-mr/just-mr-mirrors.test.sh index 74a64579..beb8f73c 100644 --- a/test/end-to-end/just-mr/just-mr-mirrors.test.sh +++ b/test/end-to-end/just-mr/just-mr-mirrors.test.sh @@ -165,6 +165,10 @@ cat > test-repos.json <<EOF } EOF +rm -rf ${BUILDROOT} ${DISTFILES}/* +${JUST_MR_CPP} -C test-repos.json --norc --local-build-root ${BUILDROOT} ${DISTDIR_ARGS} -j 32 fetch --all -o ${DISTFILES} + +rm -rf ${BUILDROOT} ${DISTFILES}/* CONFIG_CPP=$(${JUST_MR_CPP} -C test-repos.json --norc --local-build-root ${BUILDROOT} ${DISTDIR_ARGS} -j 32 setup --all) if [ ! -s "${CONFIG_CPP}" ]; then exit 1 @@ -172,8 +176,6 @@ fi ### Using .just-local specifications -rm -rf ${BUILDROOT} - cat > test-repos.json <<EOF { "repositories": { "git_repo_1": @@ -238,6 +240,10 @@ cat > just-local.json <<EOF } EOF +rm -rf ${BUILDROOT} ${DISTFILES}/* +${JUST_MR_CPP} -C test-repos.json --norc --local-build-root ${BUILDROOT} --checkout-locations just-local.json -j 32 fetch --all -o ${DISTFILES} + +rm -rf ${BUILDROOT} ${DISTFILES}/* CONFIG_CPP=$(${JUST_MR_CPP} -C test-repos.json --norc --local-build-root ${BUILDROOT} --checkout-locations just-local.json -j 32 setup --all) if [ ! -s "${CONFIG_CPP}" ]; then exit 1 |