Skip to content

Commit ff003fa

Browse files
committed
Fix paths.
1 parent 84cc2b5 commit ff003fa

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

Cabal/doc/nix-local-build.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,13 @@ version of cabal-install:
188188
defining a library built with GHC 8.0.1 on 64-bit Linux is
189189
``dist-newstyle/build/x86_64-linux/ghc-8.0.1/p-0.1``. When
190190
per-component builds are enabled (any non-Custom package), a
191-
subcomponent like an executable or test suite named ``pexe`` will be
191+
subcomponent like an executable or named ``pexe`` will be
192192
stored at
193-
``dist-newstyle/build/x86_64-linux/ghc-8.0.1/p-0.1/c/pexe``; thus,
193+
``dist-newstyle/build/x86_64-linux/ghc-8.0.1/p-0.1/x/pexe``; thus,
194194
the full path of the executable is
195-
``dist-newstyle/build/x86_64-linux/ghc-8.0.1/p-0.1/c/pexe/build/pexe/pexe``
195+
``dist-newstyle/build/x86_64-linux/ghc-8.0.1/p-0.1/x/pexe/build/pexe/pexe``.
196+
If a component is a test suite, `x` is replaced with `t`, and for benchmarks
197+
with `b` - so you get paths like `.../t/ptest/...` and `.../b/pbench/...`
196198
(you can see why we want this to be an implementation detail!)
197199

198200
The paths are a bit longer in HEAD but the benefit is that you can

travis-common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CABAL_TESTSUITE_BDIR="${TRAVIS_BUILD_DIR}/dist-newstyle/build/$ARCH/ghc-$GHCVER/
1616
CABAL_INSTALL_BDIR="${TRAVIS_BUILD_DIR}/dist-newstyle/build/$ARCH/ghc-$GHCVER/cabal-install-${CABAL_VERSION}"
1717
CABAL_INSTALL_SETUP="${CABAL_INSTALL_BDIR}/setup/setup"
1818
SOLVER_BENCHMARKS_BDIR="${TRAVIS_BUILD_DIR}/dist-newstyle/build/$ARCH/ghc-$GHCVER/solver-benchmarks-${CABAL_VERSION}"
19-
HACKAGE_REPO_TOOL_BDIR="${TRAVIS_BUILD_DIR}/dist-newstyle/build/$ARCH/ghc-$GHCVER/hackage-repo-tool-${HACKAGE_REPO_TOOL_VERSION}/c/hackage-repo-tool"
19+
HACKAGE_REPO_TOOL_BDIR="${TRAVIS_BUILD_DIR}/dist-newstyle/build/$ARCH/ghc-$GHCVER/hackage-repo-tool-${HACKAGE_REPO_TOOL_VERSION}/x/hackage-repo-tool"
2020

2121
# ---------------------------------------------------------------------
2222
# Timing / diagnostic output

travis-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ timed ${CABAL_INSTALL_BDIR}/build/cabal/cabal update
179179

180180
if [ "x$TEST_SOLVER_BENCHMARKS" = "xYES" ]; then
181181
timed cabal new-build $jobs solver-benchmarks:hackage-benchmark solver-benchmarks:unit-tests
182-
timed ${SOLVER_BENCHMARKS_BDIR}/c/unit-tests/build/unit-tests/unit-tests $TEST_OPTIONS
182+
timed ${SOLVER_BENCHMARKS_BDIR}/t/unit-tests/build/unit-tests/unit-tests $TEST_OPTIONS
183183
fi
184184

185185
unset CABAL_BUILDDIR

travis/upload.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ cp $TRAVIS_BUILD_DIR/travis/id_rsa .
7070
cp $TRAVIS_BUILD_DIR/travis-install.sh .
7171
cp $TRAVIS_BUILD_DIR/travis-common.sh .
7272
# The binaries to test (statically linked, of course!)
73-
cp ${CABAL_BDIR}/c/unit-tests/build/unit-tests/unit-tests Cabal
74-
cp ${CABAL_BDIR}/c/check-tests/build/check-tests/check-tests Cabal
75-
cp ${CABAL_BDIR}/c/parser-tests/build/parser-tests/parser-tests Cabal
76-
cp ${CABAL_BDIR}/c/hackage-tests/build/hackage-tests/hackage-tests Cabal
73+
cp ${CABAL_BDIR}/t/unit-tests/build/unit-tests/unit-tests Cabal
74+
cp ${CABAL_BDIR}/t/check-tests/build/check-tests/check-tests Cabal
75+
cp ${CABAL_BDIR}/t/parser-tests/build/parser-tests/parser-tests Cabal
76+
cp ${CABAL_BDIR}/t/hackage-tests/build/hackage-tests/hackage-tests Cabal
7777
if [ "x$CABAL_LIB_ONLY" != "xYES" ]; then
7878
cp ${CABAL_INSTALL_BDIR}/build/cabal/cabal cabal-install
7979
fi

0 commit comments

Comments
 (0)