@@ -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+