-
Notifications
You must be signed in to change notification settings - Fork 2
/
nightly_test.hs
44 lines (31 loc) · 1.02 KB
/
nightly_test.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env runhaskell
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -fwarn-unused-imports #-}
-- MUST be run from the directory containing this script.
import System.Environment
import NightlyTester
import HSH
repo = "Haskell-CnC"
----------------------------------------------------------------------------------------------------
-- Main Script
main =
getArgs >>= \ emails ->
runNightlyTest (mkDefaultConfig repo emails) $
do
gitReportHead
reportMachineInfo
section "Clean and build everything"
mrun "make clean"
mrun "cabal configure"
mrun "cabal build"
section "Spec-Compiler Unit Tests:"
mrun "./dist/build/cnc/cnc --selftest"
section "Spec-Compiler System Tests:"
group$ do cd "tests_spec"
mrun "make test"
-- Not going for the whole shebang yet:
-- section "Haskell CnC Runtime Tests - Unit and System"
-- mrun "./dist/build/haskell-cnc-runTests/haskell-cnc-runTests"
-- section "Haskell CnC Runtime Example programs"
-- TODO factor out from haskell-cnc-runTests
newline