File: runner.ml

package info (click to toggle)
extlib 1.7.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 632 kB
  • sloc: ml: 6,980; makefile: 128; sh: 42; ansic: 31
file content (9 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
(** test runner *)

let () =
  let filter =
    match Array.to_list Sys.argv with
    | [] | [_] -> None
    | _::l -> Some (List.map String.lowercase l)
  in
  exit (if Util.run_all filter then 0 else 1)