[OCaml] Enable backtraces in tests.
authorPeter Zotov <whitequark@whitequark.org>
Thu, 30 Oct 2014 08:29:57 +0000 (08:29 +0000)
committerPeter Zotov <whitequark@whitequark.org>
Thu, 30 Oct 2014 08:29:57 +0000 (08:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220900 91177308-0d34-0410-b5e6-96231b3b80d8

14 files changed:
test/Bindings/Ocaml/analysis.ml
test/Bindings/Ocaml/bitreader.ml
test/Bindings/Ocaml/bitwriter.ml
test/Bindings/Ocaml/executionengine.ml
test/Bindings/Ocaml/ext_exc.ml
test/Bindings/Ocaml/ipo_opts.ml
test/Bindings/Ocaml/irreader.ml
test/Bindings/Ocaml/linker.ml
test/Bindings/Ocaml/passmgr_builder.ml
test/Bindings/Ocaml/scalar_opts.ml
test/Bindings/Ocaml/target.ml
test/Bindings/Ocaml/vectorize_opts.ml
test/Bindings/Ocaml/vmcore.ml
test/lit.cfg

index 84e1429279a46d83fbcc2613c3a30b413898ff11..68d5d65e1223583f2826d5e3cbb9ea495c6c199c 100644 (file)
@@ -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
  *)
index 28c04a6abc00c208fb34b2ceadf898a53a64cb26..81db5431aefa2f6077212cd67cc0c19118fae5bc 100644 (file)
@@ -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
index 746836508ebc716e1d14939a9b99f99c2d77a542..5d77b83bd6eb00106840ee14f68d19609699b969 100644 (file)
@@ -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
index 7d64f9f7f76cd0d17d5d52866d92fe4d234b90ea..5ef56f63e733b63cf942a6d3d99d346e370d8a13 100644 (file)
@@ -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
index c99bc04333fc62948226f9a6a4531d506e3d5d6b..7d40c2847a61e2b629cdb1d7bf75020460c53419 100644 (file)
@@ -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
  *)
index 26037f2fd938d2fda5418319a909031d91f3e6ec..e395424d334c311407cfecf3adb6165660507e0b 100644 (file)
@@ -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
  *)
index 52956c9fee4b8bec6590099fb3da0594698001d9..a64e01a40133e41ca47130f31d2a314396c94a3d 100644 (file)
@@ -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
  *)
index f859fdc5cf644471d8a84b26b71ba0e821e9b0b3..6ec87bfc5c2db07ac7949343d6f99c89bad5cbda 100644 (file)
@@ -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
  *)
index a7112231562f9a1bac673d4e72da139e3f122d97..cc8e9fcb0d0a92103fe8f87ed5d5a27f82b45984 100644 (file)
@@ -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
  *)
index 9ca53616dc47ef3d7b7c40c8384f8ec263010b7d..c3b4f6673ee93caf5ebf13bd847eb4430de1f3f0 100644 (file)
@@ -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
  *)
index 0a9738a35f4fde754d4a5192899dae05357ed6ec..dfde7e834391259400fab1b32c1d59bf074b0084 100644 (file)
@@ -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
index 9c5e7d005757e7f59dccc3ec00f319da9e0eeb84..536adac8c333f31ad80b4733d0695b9f64a4b9df 100644 (file)
@@ -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
  *)
index f1d27b47a2a9c807265b59ee374c5b5a81ba59e0..dc48d370ed0f1ff4ddb4d8bb54e745620dd26d8c 100644 (file)
@@ -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
index 4e9a5ad6efa015971d491c1693041a9d224ec027..af446b26ec37c8d8db4c5293eae9fd6da1571d2a 100644 (file)
@@ -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