Skip to content

Instantly share code, notes, and snippets.

@g2p
Created October 19, 2016 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save g2p/63afb5e92052fe0a8f65b78ec9e5ac71 to your computer and use it in GitHub Desktop.
Save g2p/63afb5e92052fe0a8f65b78ec9e5ac71 to your computer and use it in GitHub Desktop.
qtest extract ocamlbuild integration
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")]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment