on master help sign in
merge .cabal files and base building on a flag
1317074Mark Lentczner
tests/Setup.hsdeleted−4
@@ -1,4 +0,0 @@
1−import Distribution.Simple
2−main :: IO ()
3−main = defaultMain
4−
tests/uuid-tests.cabaldeleted−39
@@ -1,39 +0,0 @@
1−Name: uuid-tests
2−Version: 1.0.0
3−Copyright: (c) 2009 Antoine Latter
4−Author: Antoine Latter
5−Maintainer: aslatter@gmail.com
6−License: BSD3
7−License-file: ../LICENSE
8−
9−Category: Data
10−Build-Type: Simple
11−Cabal-Version: >= 1.6
12−
13−Description:
14− This is a set of test programs for testing the uuid package.
15−
16−Synopsis: This is a set of test programs for testing the uuid package.
17−
18−Homepage: http://community.haskell.org/~aslatter/code/uuid/
19−Bug-Reports: mailto:aslatter@gmail.com
20−
21−
22−Executable benchuuid
23− Main-Is: BenchUUID.hs
24− HS-Source-Dirs: . ..
25− Build-Depends: random, binary, bytestring, Crypto, maccatcher,
26− time, base >=3, base < 5,
27− criterion >= 0.3 && < 0.4, parallel >= 2.1 && < 2.3
28−
29− Extensions: DeriveDataTypeable
30−
31−Executable testuuid
32− Main-Is: TestUUID.hs
33− HS-Source-Dirs: . ..
34− Build-Depends: random, binary, bytestring, Crypto, maccatcher,
35− time, base >=3, base < 5,
36− HUnit >=1.2 && < 1.3, QuickCheck >=1.2 && < 1.3
37−
38− Extensions: DeriveDataTypeable
39−
uuid.cabal+24
@@ -24,6 +24,10 @@ Extra-Source-Files:
24 CHANGES
24 CHANGES
25 CONTRIBUTORS
25 CONTRIBUTORS
26
26
27+Flag test
28+ Description: Build unit test and benchmark programs.
29+ Default: False
30+
27Library
31Library
28 Build-Depends: random, binary, bytestring, Crypto, maccatcher,
32 Build-Depends: random, binary, bytestring, Crypto, maccatcher,
29 time, base >=3, base < 5
33 time, base >=3, base < 5
@@ -38,3 +42,23 @@ Library
38
42
39 Extensions: DeriveDataTypeable
43 Extensions: DeriveDataTypeable
40
44
45+Executable benchuuid
46+ Main-Is: BenchUUID.hs
47+ HS-Source-Dirs: tests .
48+ Build-Depends: random, binary, bytestring, Crypto, maccatcher,
49+ time, base >=3, base < 5,
50+ criterion >= 0.3 && < 0.4, parallel >= 2.1 && < 2.3
51+ Extensions: DeriveDataTypeable
52+ If !flag(test)
53+ Buildable: False
54+
55+Executable testuuid
56+ Main-Is: TestUUID.hs
57+ HS-Source-Dirs: tests .
58+ Build-Depends: random, binary, bytestring, Crypto, maccatcher,
59+ time, base >=3, base < 5,
60+ HUnit >=1.2 && < 1.3, QuickCheck >=1.2 && < 1.3
61+ Extensions: DeriveDataTypeable
62+ If !flag(test)
63+ Buildable: False
64+