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