File: test.hs

package info (click to toggle)
happy 2.1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 656 kB
  • sloc: yacc: 2,501; haskell: 1,329; makefile: 273
file content (9 lines) | stat: -rw-r--r-- 360 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import Data.List (intercalate)
import GHC.Conc (numCapabilities)
import System.Process (system)
import System.Exit (exitWith)

main = do
  let jFlag = "-j" ++ show numCapabilities -- to run tests in parallel, run `cabal test --test-options="+RTS -N"`
  let cmd = ["make", jFlag, "-k", "-C", "tests", "clean", "all"]
  system (intercalate " " cmd) >>= exitWith