From dca81a23bcec19ab7562322c2eb988b286afe944 Mon Sep 17 00:00:00 2001 From: Sam T Date: Tue, 14 May 2013 12:01:47 +0400 Subject: + Add hunit tests. --- krpc.cabal | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'krpc.cabal') diff --git a/krpc.cabal b/krpc.cabal index b9bd0f1a..bb3fdea6 100644 --- a/krpc.cabal +++ b/krpc.cabal @@ -42,18 +42,28 @@ library - -executable exsample-client +test-suite test-client + type: exitcode-stdio-1.0 main-is: Client.hs other-modules: Shared - build-depends: base == 4.*, krpc, bytestring - hs-source-dirs: examples + build-depends: base == 4.* + , bytestring + , krpc + + , HUnit + , test-framework + , test-framework-hunit -executable exsample-server + hs-source-dirs: tests + +executable test-server main-is: Server.hs other-modules: Shared - build-depends: base == 4.*, krpc, bytestring - hs-source-dirs: examples + build-depends: base == 4.* + , bytestring + , krpc + + hs-source-dirs: tests -- cgit v1.2.3