Skip to content

Commit

Permalink
Add CABAL_TEST_OPTIONS for test-only options
Browse files Browse the repository at this point in the history
For example to run tests with -j1, but build without -j1
  • Loading branch information
harendra-kumar committed Oct 9, 2024
1 parent e575ff3 commit 7c4e1ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ SAFE_ENVVARS="\
CABAL_CHECK_RELAX \
CABAL_USE_STACK_SDIST \
CABAL_BUILD_OPTIONS \
CABAL_TEST_OPTIONS \
CABAL_DISABLE_DEPS \
CABAL_BUILD_TARGETS \
COVERAGE \
Expand Down Expand Up @@ -629,6 +630,7 @@ EOF
cabal_only_var CABAL_HACKAGE_MIRROR

cabal_only_var CABAL_BUILD_OPTIONS
cabal_only_var CABAL_TEST_OPTIONS
cabal_only_var CABAL_DISABLE_DEPS
cabal_only_var CABAL_BUILD_TARGETS
fi
Expand Down Expand Up @@ -1649,7 +1651,7 @@ build_and_test() {
echo
run_verbose_errexit $SDIST_CABALCMD v2-test \
--with-compiler "$COMPILER_EXE_PATH" \
$SHOW_DETAILS $GHCJS_FLAG $CABAL_BUILD_OPTIONS $CABAL_BUILD_TARGETS
$SHOW_DETAILS $GHCJS_FLAG $CABAL_BUILD_OPTIONS $CABAL_TEST_OPTIONS $CABAL_BUILD_TARGETS
fi ;;
esac
}
Expand Down

0 comments on commit 7c4e1ab

Please sign in to comment.