Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change build incantations to use cabal's test stanza for KAT tests.

  • Loading branch information...
commit b908b7b963266efb33ec3255edd02cd02db639da 1 parent 997cdc9
Vincent Hanquez authored
Showing with 13 additions and 28 deletions.
  1. 0  Tests.hs → Tests/KAT.hs
  2. +13 −28 cryptohash.cabal
0  Tests.hs → Tests/KAT.hs
View
File renamed without changes
41 cryptohash.cabal
View
@@ -14,7 +14,7 @@ Maintainer: Vincent Hanquez <vincent@snarc.org>
Synopsis: collection of crypto hashes, fast, pure and practical
Category: Data, Cryptography
Build-Type: Simple
-Cabal-Version: >=1.6
+Cabal-Version: >=1.8
Homepage: http://github.com/vincenthz/hs-cryptohash
data-files: README.md
@@ -24,10 +24,6 @@ extra-source-files:
cbits/skein.h cbits/skein256.h cbits/skein512.h
cbits/tiger.h cbits/whirlpool.h
-Flag test
- Description: Build unit test
- Default: False
-
Flag benchmark
Description: Build benchmark test
Default: False
@@ -75,29 +71,18 @@ Library
cbits/whirlpool.c
Include-Dirs: cbits
-Executable Tests
- Main-Is: Tests.hs
- Extensions: ForeignFunctionInterface
- C-sources: cbits/sha1.c
- cbits/sha256.c
- cbits/sha512.c
- cbits/sha3.c
- cbits/md2.c
- cbits/md4.c
- cbits/md5.c
- cbits/ripemd.c
- cbits/skein256.c
- cbits/skein512.c
- cbits/tiger.c
- cbits/whirlpool.c
- if flag(test)
- Buildable: True
- Build-depends: base >= 4, HUnit, bytestring
- else
- Buildable: False
- if flag(cryptoapi)
- Build-depends: crypto-api >= 0.5, tagged >= 0.1, cereal >= 0.2
- cpp-options: -DHAVE_CRYPTOAPI
+Test-Suite test-kat
+ type: exitcode-stdio-1.0
+ hs-source-dirs: Tests
+ Main-Is: KAT.hs
+ Build-depends: base >= 4 && < 5
+ , bytestring
+ , HUnit
+ , QuickCheck >= 2
+ , test-framework >= 0.3.3 && < 0.7
+ , test-framework-quickcheck2 >= 0.2.9 && < 0.3
+ , test-framework-hunit
+ , cryptohash
Executable Bench
Main-Is: Bench.hs
Please sign in to comment.
Something went wrong with that request. Please try again.