quox/tests/Tests.idr
rhiannon morris e3384d4e6e support TAP 13 for /usr/bin/prove's benefit
13 doesn't support test trees so we gotta flatten it >:(
2022-05-02 00:21:35 +02:00

18 lines
311 B
Idris

module Tests
import Options
import TAP
import Tests.Lexer
import Tests.Equal
import System
allTests = [Equal.tests]
main = do
opts <- getTestOpts
go <- case opts.tapVersion of
"13" => pure TAP.mainFlat
"14" => pure TAP.main
_ => die "unrecognised TAP version; use 13 or 14"
go allTests