(executable
 (name test)
 (modules test test_ns)
 (libraries fmt base64 camlzip bigstringaf checkseum.c de zl gz lzo alcotest))

(executable
 (name test_deflate)
 (modules test_deflate)
 (libraries fmt de bigstringaf alcotest))

(executable
 (name test_lzo)
 (modules test_lzo)
 (libraries fmt minilzo lzo bigstringaf alcotest))

(rule
 (alias runtest)
 (package decompress)
 (deps
  (:test test_deflate.exe)
  (source_tree corpus))
 (action
  (run %{test} --color=always)))

(rule
 (alias runtest)
 (package decompress)
 (deps
  (:test test.exe)
  (source_tree corpus))
 (action
  (run %{test} --color=always)))

(rule
 (alias runtest)
 (package decompress)
 (deps
  (:test test_lzo.exe))
 (action
  (run %{test} --color=always)))
