Haxl/tests/AllTests.hs

43 lines
1.2 KiB
Haskell
Raw Normal View History

-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-# LANGUAGE CPP, OverloadedStrings #-}
module AllTests (allTests) where
2014-06-03 19:10:54 +04:00
import TestExampleDataSource
import BatchTests
import CoreTests
import DataCacheTest
#if __GLASGOW_HASKELL__ >= 801
import AdoTests
#endif
#if __GLASGOW_HASKELL__ >= 710
import ProfileTests
#endif
import MemoizationTests
import TestBadDataSource
import FullyAsyncTest
2014-06-03 19:10:54 +04:00
import Test.HUnit
allTests :: Test
allTests = TestList
2014-06-03 19:10:54 +04:00
[ TestLabel "ExampleDataSource" TestExampleDataSource.tests
, TestLabel "BatchTests-future" $ BatchTests.tests True
, TestLabel "BatchTests-sync" $ BatchTests.tests False
2014-06-03 19:10:54 +04:00
, TestLabel "CoreTests" CoreTests.tests
, TestLabel "DataCacheTests" DataCacheTest.tests
#if __GLASGOW_HASKELL__ >= 801
, TestLabel "AdoTests" $ AdoTests.tests False
#endif
#if __GLASGOW_HASKELL__ >= 710
, TestLabel "ProfileTests" ProfileTests.tests
#endif
, TestLabel "MemoizationTests" MemoizationTests.tests
, TestLabel "BadDataSourceTests" TestBadDataSource.tests
, TestLabel "FullyAsyncTest" FullyAsyncTest.tests
2014-06-03 19:10:54 +04:00
]