Skip to content

Instantly share code, notes, and snippets.

@g2p
Created October 19, 2016 10:44
Show Gist options
  • Select an option

  • Save g2p/63afb5e92052fe0a8f65b78ec9e5ac71 to your computer and use it in GitHub Desktop.

Select an option

Save g2p/63afb5e92052fe0a8f65b78ec9e5ac71 to your computer and use it in GitHub Desktop.

Revisions

  1. g2p created this gist Oct 19, 2016.
    7 changes: 7 additions & 0 deletions myocamlbuild.ml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    open Ocamlbuild_plugin;;

    rule "qtest extract"
    ~prod:"%_tests.ml"
    ~deps:["%.ml"]
    (fun env build ->
    Cmd(S[A"qtest"; A"extract"; A"-o"; P(env "%_tests.ml"); P(env "%.ml")]))