arjunguha / haskell-couchdb

Haskell bindings for CouchDB

This URL has Read+Write access

haskell-couchdb / Setup.lhs
100755 14 lines (10 sloc) 0.381 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env runhaskell
> import Distribution.Simple
> import System.Directory (setCurrentDirectory)
> import System.Process (runCommand,waitForProcess)
 
 
> main = defaultMainWithHooks simpleUserHooks { runTests = tests }
 
> tests _ _ _ _ = do
> setCurrentDirectory "src"
> h <- runCommand "/usr/bin/env runhaskell Database.CouchDB.Tests"
> waitForProcess h
> return ()