mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 23:29:51 +00:00
[OCaml] Enable backtraces in tests.
llvm-svn: 220900
This commit is contained in:
parent
c22ad454f5
commit
a82eb3aeff
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/analysis.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.analysis -linkpkg %T/analysis.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.analysis -linkpkg %T/analysis.ml -o %t
|
||||
* RUN: %t
|
||||
* XFAIL: vg_leak
|
||||
*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/bitreader.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.bitreader -package llvm.bitwriter -linkpkg %T/bitreader.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.bitreader -package llvm.bitwriter -linkpkg %T/bitreader.ml -o %t
|
||||
* RUN: %t %t.bc
|
||||
* RUN: llvm-dis < %t.bc
|
||||
* XFAIL: vg_leak
|
||||
|
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/bitwriter.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.bitreader -package llvm.bitwriter -linkpkg %T/bitwriter.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.bitreader -package llvm.bitwriter -linkpkg %T/bitwriter.ml -o %t
|
||||
* RUN: %t %t.bc
|
||||
* RUN: llvm-dis < %t.bc
|
||||
* XFAIL: vg_leak
|
||||
|
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/executionengine.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.executionengine -linkpkg %T/executionengine.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.executionengine -linkpkg %T/executionengine.ml -o %t
|
||||
* RUN: %t
|
||||
* REQUIRES: native, object-emission
|
||||
* XFAIL: vg_leak
|
||||
|
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/ext_exc.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.bitreader -linkpkg %T/ext_exc.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.bitreader -linkpkg %T/ext_exc.ml -o %t
|
||||
* RUN: %t
|
||||
* XFAIL: vg_leak
|
||||
*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/ipo_opts.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.ipo -linkpkg %T/ipo_opts.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.ipo -linkpkg %T/ipo_opts.ml -o %t
|
||||
* RUN: %t %t.bc
|
||||
* XFAIL: vg_leak
|
||||
*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/irreader.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.irreader -linkpkg %T/irreader.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.irreader -linkpkg %T/irreader.ml -o %t
|
||||
* RUN: %t
|
||||
* XFAIL: vg_leak
|
||||
*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/linker.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.linker -linkpkg %T/linker.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.linker -linkpkg %T/linker.ml -o %t
|
||||
* RUN: %t
|
||||
* XFAIL: vg_leak
|
||||
*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/passmgr_builder.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.passmgr_builder -linkpkg %T/passmgr_builder.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.passmgr_builder -linkpkg %T/passmgr_builder.ml -o %t
|
||||
* RUN: %t %t.bc
|
||||
* XFAIL: vg_leak
|
||||
*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/scalar_opts.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.scalar_opts -linkpkg %T/scalar_opts.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.scalar_opts -linkpkg %T/scalar_opts.ml -o %t
|
||||
* RUN: %t %t.bc
|
||||
* XFAIL: vg_leak
|
||||
*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/target.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.target -package llvm.executionengine -linkpkg %T/target.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.target -package llvm.executionengine -linkpkg %T/target.ml -o %t
|
||||
* RUN: %t %t.bc
|
||||
* REQUIRES: native, object-emission
|
||||
* XFAIL: vg_leak
|
||||
|
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/vectorize_opts.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.vectorize -linkpkg %T/vectorize_opts.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.vectorize -linkpkg %T/vectorize_opts.ml -o %t
|
||||
* RUN: %t %t.bc
|
||||
* XFAIL: vg_leak
|
||||
*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(* RUN: cp %s %T/vmcore.ml
|
||||
* RUN: %ocamlcomp -warn-error A -package llvm.analysis -package llvm.bitwriter -linkpkg %T/vmcore.ml -o %t
|
||||
* RUN: %ocamlcomp -g -warn-error A -package llvm.analysis -package llvm.bitwriter -linkpkg %T/vmcore.ml -o %t
|
||||
* RUN: %t %t.bc
|
||||
* RUN: llvm-dis < %t.bc > %t.ll
|
||||
* RUN: FileCheck %s < %t.ll
|
||||
|
@ -108,6 +108,9 @@ if 'OCAMLPATH' in os.environ:
|
||||
else:
|
||||
config.environment['OCAMLPATH'] = llvm_ocaml_lib
|
||||
|
||||
# Set up OCAMLRUNPARAM to enable backtraces in OCaml tests.
|
||||
config.environment['OCAMLRUNPARAM'] = 'b'
|
||||
|
||||
###
|
||||
|
||||
import os
|
||||
|
Loading…
Reference in New Issue
Block a user