| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0005492 | OCaml | Misc | public | 2012-01-23 16:09 | 2012-03-14 09:38 |
|
| Reporter | lefessan | |
| Assigned To | | |
| Priority | normal | Severity | feature | Reproducibility | have not tried |
| Status | acknowledged | Resolution | open | |
| Platform | | OS | | OS Version | |
| Product Version | 3.13.0+dev | |
| Target Version | | Fixed in Version | | |
|
| Summary | 0005492: testsuite does not check camlp4o compatibility |
| Description | Since any new construct in the language should be tested in the testsuite/, we should always verify that camlp4o generates correct code for these new constructs, to be sure that a new release is not shipped with no support for some new construct in camlp4o.
A patch to the testsuite/ makefile is provided.
|
| Tags | No tags attached. |
|
| Attached Files | testsuite_camlp4.patch [^] (1,322 bytes) 2012-01-23 16:09 [Show Content] [Hide Content]Index: testsuite/makefiles/Makefile.several
===================================================================
--- testsuite/makefiles/Makefile.several (revision 12070)
+++ testsuite/makefiles/Makefile.several (working copy)
@@ -13,6 +13,7 @@
FORTRAN_LIB=`if [ -z "$(F_FILES)" ]; then true; else echo '$(FORTRAN_LIBRARY)'; fi`
ADD_CFLAGS+=$(FORTRAN_LIB)
ADD_OPTFLAGS+=$(FORTRAN_LIB)
+ADD_CAMLP4="camlp4o"
check:
@if [ -n "$(FORTRAN_COMPILER)" -o -z "$(F_FILES)" ]; then $(MAKE) run-all; fi
@@ -27,6 +28,9 @@
@for file in *.ml; do \
printf " ... testing '$$file':"; \
$(MAKE) run-file DESC=ocamlc COMP='$(OCAMLC)' COMPFLAGS='$(ADD_COMPFLAGS) $(ADD_CFLAGS) $(O_FILES) -w a $(CMA_FILES) -I $(BASEDIR)/lib $(CMO_FILES)' FILE=$$file PROGRAM_ARGS=$(PROGRAM_ARGS) && \
+ if [ -z "$(NO_CAMLP4)" ]; then \
+ $(MAKE) run-file DESC=camlp4 COMP='$(OCAMLC)' COMPFLAGS='$(ADD_COMPFLAGS) -pp $(ADD_CAMLP4) $(ADD_CFLAGS) $(O_FILES) -w a $(CMA_FILES) -I $(BASEDIR)/lib $(CMO_FILES)' FILE=$$file PROGRAM_ARGS=$(PROGRAM_ARGS); \
+ fi && \
if [ -z "$(BYTECODE_ONLY)" ]; then \
$(MAKE) run-file DESC=ocamlopt COMP=$(PREFIX)/bin/ocamlopt COMPFLAGS='$(ADD_COMPFLAGS) $(ADD_OPTFLAGS) $(O_FILES) -w a $(CMXA_FILES) -I $(BASEDIR)/lib $(CMX_FILES)' FILE=$$file PROGRAM_ARGS=$(PROGRAM_ARGS); \
fi && \
|
|