Skip to content

Commit

Permalink
Add -no-rebuild options for test-one and promote-one (#1391)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncik-roberts authored May 17, 2023
1 parent 2d34752 commit 5fc4b59
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ocaml/Makefile.common-jst
Original file line number Diff line number Diff line change
Expand Up @@ -307,15 +307,19 @@ promote-failed:

runtest-upstream: test

test-one: install_for_test
test-one: install_for_test test-one-no-rebuild

test-one-no-rebuild:
(export OCAMLSRCDIR=$$(pwd)/_runtest; \
export CAML_LD_LIBRARY_PATH=$$(pwd)/_runtest/lib/ocaml/stublibs; \
if $$(which gfortran > /dev/null 2>&1); then \
export LIBRARY_PATH=$$(dirname $$(gfortran -print-file-name=libgfortran.a)); \
fi; \
cd _runtest/testsuite && make one $(if $(TEST),TEST="tests/$(TEST)") $(if $(DIR),DIR="tests/$(DIR)"))

promote-one: install_for_test
promote-one: install_for_test promote-one-no-rebuild

promote-one-no-rebuild:
(export OCAMLSRCDIR=$$(pwd)/_runtest; \
export CAML_LD_LIBRARY_PATH=$$(pwd)/_runtest/lib/ocaml/stublibs; \
if $$(which gfortran > /dev/null 2>&1); then \
Expand Down

0 comments on commit 5fc4b59

Please sign in to comment.