#!/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 ()