Haxl/tests/AllTests.hs
Gergely Szilvasy 19b024634b resolve test runner conflict
Summary: We use a FB-specific test runner in fbcode. As a result currently tests/Main.hs is different on github to allow 'cabal test' to pass. This diff resolves the difference by creating a common list of tests and two separate entry points for running the tests: tests/Main.hs for internal use, and tests/TestMain.hs for github. tests/Main.hs will (eventually) be excluded from the public sources.

Reviewed By: simonmar

Differential Revision: D3371609

fbshipit-source-id: 46a7382df814687230db43136acd496d0c5ebca9
2016-06-02 06:44:43 -07:00

26 lines
609 B
Haskell

{-# LANGUAGE CPP, OverloadedStrings #-}
module AllTests (allTests) where
import TestExampleDataSource
import BatchTests
import CoreTests
import DataCacheTest
#ifdef HAVE_APPLICATIVEDO
import AdoTests
#endif
import ProfileTests
import Test.HUnit
allTests :: Test
allTests = TestList
[ TestLabel "ExampleDataSource" TestExampleDataSource.tests
, TestLabel "BatchTests" BatchTests.tests
, TestLabel "CoreTests" CoreTests.tests
, TestLabel "DataCacheTests" DataCacheTest.tests
#ifdef HAVE_APPLICATIVEDO
, TestLabel "AdoTests" AdoTests.tests
#endif
, TestLabel "ProfileTests" ProfileTests.tests
]