Quantcast
Viewing all articles
Browse latest Browse all 540

[dune] How to specify dependency to an executable?

I’m developing an executable and want to cram-test it. But I don’t know a way to add a strict dependency from tests to my executable. MVP. The call dune build @install && dune test helps but I want a dependency…

➜  dune-exec-cram-demo git:(master) ✗ cat test.t/run.t                                                                                         4.12.1+flambda
  $ dune build
$ echo $PATH
  $ which asdf
  [1]
  $ asdf
  asdf: not found
  [127]
  $ qwe
  qwe: not found
  [127]
➜  dune-exec-cram-demo git:(master) ✗ cat test.t/dune                                                                                          4.12.1+flambda
(cram
 (deps
  %{workspace_root}/src/asdf
  %{workspace_root}/src/asdf.exe
  %{bin:asdf}
  %{bin:qwe}
  %{workspace_root}/qwe.exe))

(library
 (name lib1)
 (modules lib1))

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 540

Trending Articles