Skip to content

Commit 14fe8fd

Browse files
authored
Merge pull request #113 from jmid/test-cond-tweaks
Test condition tweaks
2 parents f4e08c0 + 694f046 commit 14fe8fd

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

test/dune

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,15 @@
9898
(name backtrace)
9999
(libraries domainslib)
100100
(modules backtrace)
101-
(enabled_if (and (= %{arch_sixtyfour} true) (<> %{architecture} power) (<> %{architecture} s390x))))
102-
;; disabled temporarily on bytecode switches https://github.com/ocaml/dune/issues/7845
101+
(enabled_if (<> %{system} mingw64)) ;; triggers a known issue on mingw https://github.com/ocaml/ocaml/pull/12231
102+
(modes byte native))
103+
;; byte_complete .exes don't include debug+trace info https://github.com/ocaml/dune/issues/7845
104+
;; so on a bytecode switch/platform we build a plain bytecode version w/trace info
105+
;; and rename it to .exe
106+
(rule
107+
(target backtrace.exe)
108+
(action (copy backtrace.bc backtrace.exe))
109+
(enabled_if (and (= %{bin-available:ocamlopt} false) (<> %{system} mingw64))))
103110

104111
(test
105112
(name off_by_one)
@@ -112,16 +119,14 @@
112119
(name task_one_dep)
113120
(modules task_one_dep)
114121
(libraries qcheck-multicoretests-util qcheck-core qcheck-core.runner domainslib)
115-
(enabled_if (and (= %{arch_sixtyfour} true) (<> %{architecture} power) (<> %{architecture} s390x)))
116-
;; takes forever on bytecode
122+
(enabled_if %{bin-available:ocamlopt}) ;; takes forever on bytecode
117123
(action (run %{test} --verbose)))
118124

119125
(test
120126
(name task_more_deps)
121127
(modules task_more_deps)
122128
(libraries qcheck-multicoretests-util qcheck-core qcheck-core.runner domainslib)
123-
(enabled_if (and (= %{arch_sixtyfour} true) (<> %{architecture} power) (<> %{architecture} s390x)))
124-
;; takes forever on bytecode
129+
(enabled_if %{bin-available:ocamlopt}) ;; takes forever on bytecode
125130
(action (run %{test} --verbose)))
126131

127132
(test

0 commit comments

Comments
 (0)