X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=time-w3c.git;a=blobdiff_plain;f=Setup.hs;h=60a326f276468501a09b8a484bb4c5cdda91b06a;hp=cd7dc32771c50dfce0f84edbdd953488e9dd68cd;hb=6f8578a5f973cf4687dbea90c7a42c008925a2ec;hpb=3d738487d6fb1077d139fd689279a1ebd27a9fdc diff --git a/Setup.hs b/Setup.hs index cd7dc32..60a326f 100644 --- a/Setup.hs +++ b/Setup.hs @@ -1,3 +1,9 @@ #!/usr/bin/env runhaskell import Distribution.Simple -main = defaultMain +import System.Cmd +import System.Exit + +main = defaultMainWithHooks (simpleUserHooks { runTests = runTestUnit }) + where + runTestUnit _ _ _ _ + = system "./dist/build/W3CDateTimeUnitTest/W3CDateTimeUnitTest" >> return ()