~ubuntu-branches/debian/sid/ocaml/sid

« back to all changes in this revision

Viewing changes to testsuite/tests/tool-ocaml/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu
  • Date: 2011-04-21 21:35:08 UTC
  • mfrom: (1.1.11 upstream) (12.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110421213508-kg34453aqmb0moha
* Fixes related to -output-obj with g++ (in debian/patches):
  - add Declare-primitive-name-table-as-const-char
  - add Avoid-multiple-declarations-in-generated-.c-files-in
  - fix Embed-bytecode-in-C-object-when-using-custom: the closing
    brace for extern "C" { ... } was missing in some cases

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SHOULD_FAIL=t060-raise.ml
 
2
 
 
3
compile: lib.cmo
 
4
        @for file in t*.ml; do \
 
5
          printf " ... testing '$$file'"; \
 
6
          if [ `echo $(SHOULD_FAIL) | grep $$file` ]; then \
 
7
            $(OCAML) -w a lib.cmo $$file 2> /dev/null && (echo " => failed" && exit 1) || echo " => passed"; \
 
8
          else \
 
9
            $(OCAML) -w a lib.cmo $$file 2> /dev/null && echo " => passed" || (echo " => failed" && exit 1); \
 
10
          fi; \
 
11
        done
 
12
 
 
13
clean: defaultclean
 
14
        @rm -f ./a.out
 
15
 
 
16
include ../../makefiles/Makefile.common