File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -38,22 +38,23 @@ args=(
3838)
3939
4040cabal --store-dir=store update
41- cabal --store-dir=store v2-build " ${args[@]} " cabal-install
41+ cabal --store-dir=store v2-build " ${args[@]} " cabal-install:exe:cabal cabal-testsuite:cabal-tests
4242
4343mkdir -p " out"
4444# shellcheck disable=SC2154
4545cp " $( cabal --store-dir=store list-bin " ${args[@]} " cabal-install:exe:cabal) " " out/cabal$ext "
46+ cp " $( cabal --store-dir=store list-bin " ${args[@]} " cabal-testsuite:cabal-tests) " " out/cabal-tests$ext "
4647cp dist-newstyle/cache/plan.json " out/plan.json"
4748cd " out/"
4849
4950# create tarball/zip
5051TARBALL_PREFIX=" cabal-install-$( " ./cabal" --numeric-version) "
5152case " ${TARBALL_EXT} " in
5253 zip)
53- zip " ${TARBALL_PREFIX} -${ARTIFACT} .${TARBALL_EXT} " " cabal${ext} " plan.json
54+ zip " ${TARBALL_PREFIX} -${ARTIFACT} .${TARBALL_EXT} " " cabal${ext} " " cabal-tests ${ext} " plan.json
5455 ;;
5556 tar.xz)
56- tar caf " ${TARBALL_PREFIX} -${ARTIFACT} .${TARBALL_EXT} " " cabal${ext} " plan.json
57+ tar caf " ${TARBALL_PREFIX} -${ARTIFACT} .${TARBALL_EXT} " " cabal${ext} " " cabal-tests ${ext} " plan.json
5758 ;;
5859 * )
5960 fail " Unknown TARBALL_EXT: ${TARBALL_EXT} "
Original file line number Diff line number Diff line change @@ -26,12 +26,7 @@ cabal --store-dir=store update
2626
2727# TODO: we want to avoid building here... we should just
2828# be using the previously built 'cabal-tests' binary
29- cabal --store-dir=store run \
30- --disable-profiling \
31- --enable-executable-stripping \
32- --project-file=cabal.release.project \
33- ${ADD_CABAL_ARGS} \
34- cabal-testsuite:cabal-tests -- \
29+ " $( pwd) /out/cabal-tests" \
3530 --with-cabal " $( pwd) /out/cabal" \
3631 --intree-cabal-lib " $( pwd) " \
3732 --test-tmp " $( pwd) /testdb" \
You can’t perform that action at this time.
0 commit comments