Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 521

How to define “sub-aliases” of runtest

$
0
0

I am trying to define tests specific to Wasm and others specific to Javascript. I have tried the following:

(rule
 (alias runtest-js)
 (action
  (run node %{dep:./link.bc.js})))

(rule
  (alias runtest-wasm)
  (action
    (run node %{dep:./link.bc.wasm.js})))

(alias
  (name runtest)
  (deps runtest-js runtest-wasm))

but Dune says:

$ dune build runtest
Error: No rule found for test/runtest-js
-> required by alias test/runtest in test/dune:31
Error: No rule found for test/runtest-wasm
-> required by alias test/runtest in test/dune:31

What am I missing?

Edit: I forgot to specify that the dune file I’m showing lives in the subdirectory test/.

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 521

Trending Articles