Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Commit

Permalink
Rename Test to Selftest.
Browse files Browse the repository at this point in the history
  • Loading branch information
snowleopard committed Jan 27, 2016
1 parent 92a3ffb commit b06bae8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion shaking-up-ghc.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ executable ghc-shake
, Rules.Resources
, Rules.Wrappers.Ghc
, Rules.Wrappers.GhcPkg
, Selftest
, Settings
, Settings.Args
, Settings.Builders.Alex
Expand Down Expand Up @@ -104,7 +105,6 @@ executable ghc-shake
, Settings.Ways
, Stage
, Target
, Test
, Way

default-language: Haskell2010
Expand Down
4 changes: 2 additions & 2 deletions src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import qualified Rules.Gmp
import qualified Rules.Libffi
import qualified Rules.Oracles
import qualified Rules.Perl
import qualified Test
import qualified Selftest

main :: IO ()
main = shakeArgsWith options CmdLineFlag.cmdFlags $ \cmdLineFlags targets -> do
Expand All @@ -37,7 +37,7 @@ main = shakeArgsWith options CmdLineFlag.cmdFlags $ \cmdLineFlags targets -> do
, Rules.Perl.perlScriptRules
, Rules.generateTargets
, Rules.packageRules
, Test.testRules ]
, Selftest.selftestRules ]
options = shakeOptions
{ shakeChange = ChangeModtimeAndDigest
, shakeFiles = Base.shakeFilesPath
Expand Down
6 changes: 3 additions & 3 deletions src/Test.hs → src/Selftest.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Test (testRules) where
module Selftest (selftestRules) where

import Development.Shake
import Settings.Builders.Ar (chunksOfSize)
Expand All @@ -13,8 +13,8 @@ instance Arbitrary Way where
instance Arbitrary WayUnit where
arbitrary = arbitraryBoundedEnum

testRules :: Rules ()
testRules =
selftestRules :: Rules ()
selftestRules =
"selftest" ~> do
test $ \(x :: Way) -> read (show x) == x
test $ \n xs ->
Expand Down

0 comments on commit b06bae8

Please sign in to comment.