(rule
 (with-outputs-to
  test.output
  (with-accepted-exit-codes
   (not 0)
   (run %{bin:ocaml-mdx} test test.md --prelude "env:foo"))))

(rule
 (alias runtest)
 (action
  (diff test.expected test.output)))
