2017-10-27 13:31:57 +03:00
|
|
|
-- Copyright (c) 2014-present, Facebook, Inc.
|
|
|
|
-- All rights reserved.
|
|
|
|
--
|
|
|
|
-- This source code is distributed under the terms of a BSD license,
|
2017-12-08 15:26:13 +03:00
|
|
|
-- found in the LICENSE file.
|
2017-10-27 13:31:57 +03:00
|
|
|
|
2016-06-02 15:31:22 +03:00
|
|
|
{-# LANGUAGE CPP, OverloadedStrings #-}
|
|
|
|
module AllTests (allTests) where
|
2014-06-03 19:10:54 +04:00
|
|
|
|
|
|
|
import TestExampleDataSource
|
|
|
|
import BatchTests
|
|
|
|
import CoreTests
|
|
|
|
import DataCacheTest
|
2017-06-07 23:04:50 +03:00
|
|
|
#if __GLASGOW_HASKELL__ >= 801
|
2015-05-01 22:23:11 +03:00
|
|
|
import AdoTests
|
|
|
|
#endif
|
2016-06-05 00:23:09 +03:00
|
|
|
#if __GLASGOW_HASKELL__ >= 710
|
2016-05-07 04:14:27 +03:00
|
|
|
import ProfileTests
|
2016-06-05 00:23:09 +03:00
|
|
|
#endif
|
2016-07-01 18:18:37 +03:00
|
|
|
import MemoizationTests
|
2017-04-19 22:12:56 +03:00
|
|
|
import TestBadDataSource
|
2017-10-03 10:14:24 +03:00
|
|
|
import FullyAsyncTest
|
2014-06-03 19:10:54 +04:00
|
|
|
|
|
|
|
import Test.HUnit
|
|
|
|
|
2016-06-02 15:31:22 +03:00
|
|
|
allTests :: Test
|
|
|
|
allTests = TestList
|
2014-06-03 19:10:54 +04:00
|
|
|
[ TestLabel "ExampleDataSource" TestExampleDataSource.tests
|
2017-10-03 10:14:24 +03:00
|
|
|
, 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
|
2017-06-07 23:04:50 +03:00
|
|
|
#if __GLASGOW_HASKELL__ >= 801
|
2017-10-03 10:14:24 +03:00
|
|
|
, TestLabel "AdoTests" $ AdoTests.tests False
|
2015-05-01 22:23:11 +03:00
|
|
|
#endif
|
2016-06-05 00:23:09 +03:00
|
|
|
#if __GLASGOW_HASKELL__ >= 710
|
2016-05-07 04:14:27 +03:00
|
|
|
, TestLabel "ProfileTests" ProfileTests.tests
|
2016-06-05 00:23:09 +03:00
|
|
|
#endif
|
2016-07-01 18:18:37 +03:00
|
|
|
, TestLabel "MemoizationTests" MemoizationTests.tests
|
2017-04-19 22:12:56 +03:00
|
|
|
, TestLabel "BadDataSourceTests" TestBadDataSource.tests
|
2017-10-03 10:14:24 +03:00
|
|
|
, TestLabel "FullyAsyncTest" FullyAsyncTest.tests
|
2014-06-03 19:10:54 +04:00
|
|
|
]
|