on master help sign in
merge .cabal files and base building on a flag
commit13170742c111e026809ad0c32090a72b15e26192 authorMark Lentczner <markl@glyphic.com> dateTue 29 Dec 2009, 04:15 (17 years ago) parentcad54a8
3 files changed+24−43
tests/Setup.hs−4 tests/uuid-tests.cabal−39 uuid.cabal+24
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:
2424 CHANGES
2525 CONTRIBUTORS
2626
27+Flag test
28+ Description: Build unit test and benchmark programs.
29+ Default: False
30+
2731Library
2832 Build-Depends: random, binary, bytestring, Crypto, maccatcher,
2933 time, base >=3, base < 5
@@ -38,3 +42,23 @@ Library
3842
3943 Extensions: DeriveDataTypeable
4044
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+