mirror of
https://github.com/facebook/Haxl.git
synced 2024-12-24 01:04:21 +03:00
19b024634b
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
26 lines
609 B
Haskell
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
|
|
]
|