Merge pull request #1574 from objmagic/objmagic/fix-make-one-parallel

Fix in testsuite: `make one DIR=` and `make parallel`
master
Gabriel Scherer 2018-01-31 11:33:03 +01:00 committed by GitHub
commit a5d9a704d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -240,6 +240,10 @@ Working version
- MPR#7712, GPR#1576: assertion failure with type abbreviations
(Thomas Refis, report by Michael O'Connor, review by Jacques Garrigue)
- GPR#1530, GPR#1574: testsuite, fix 'make parallel' and 'make one DIR=...'
to work on ocamltest-based tests.
(Runhang Li and Sébastien Hinderer, review by Gabriel Scherer)
4.06 maintenance branch
-----------------------

View File

@ -88,7 +88,7 @@ legacy:
.PHONY: legacy-without-report
legacy-without-report: lib tools
@for dir in tests/*; do \
$(MAKE) $(NO_PRINT) exec-one DIR=$$dir; \
$(MAKE) $(NO_PRINT) exec-one DIR=$$dir LEGACY=y; \
done 2>&1 | tee -a _log
@$(MAKE) $(NO_PRINT) retries
@ -200,6 +200,14 @@ exec-one:
echo "Running tests from '$$DIR' ..."; \
cd $(DIR) && \
$(MAKE) TERM=dumb BASEDIR=$(BASEDIR) || echo '=> unexpected error'; \
elif [ -f $(DIR)/ocamltests ] && [ -z $(LEGACY) ] ; then \
echo "Running tests from '$$DIR' ..."; \
file=$(DIR)/ocamltests; \
(IFS=$$(printf "\r\n"); while read testfile; do \
TERM=dumb OCAMLTESTDIR=$(BASEDIR)/$(DIR)/_ocamltest \
$(ocamltest) $(DIR)/$$testfile || \
touch $(failstamp); \
done < $$file) || touch $(failstamp); \
fi
.PHONY: clean-one