-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #7 from #6 Reviewed By: ChrisKuklewicz Differential Revision: D25196223 fbshipit-source-id: 105933fe84296e465db6be72c50909ec881b52c9
- Loading branch information
1 parent
ecd48a5
commit 6cb3f38
Showing
15 changed files
with
285 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ packages: | |
server/thrift-server.cabal | ||
compiler/thrift-compiler.cabal | ||
util/thrift-util.cabal | ||
|
||
tests: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
packages: | ||
common/util/fb-util.cabal | ||
common/mangle/mangle.cabal | ||
lib/thrift-lib.cabal | ||
server/thrift-server.cabal | ||
compiler/thrift-compiler.cabal | ||
util/thrift-util.cabal | ||
|
||
tests: true | ||
|
||
-- IPV6 is disabled in the Github Actions environment, | ||
-- so we make sure the appropriate tests in those packages | ||
-- turn to IPV4. | ||
package thrift-lib | ||
flags: +tests_use_ipv4 | ||
package thrift-server | ||
flags: +tests_use_ipv4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
module TestRunner where | ||
module TestRunner (module TestRunner) where | ||
|
||
import Test.Hspec | ||
import Test.Hspec.Contrib.HUnit (fromHUnitTest) | ||
import Control.Monad | ||
import System.Exit | ||
import Test.HUnit | ||
|
||
testRunner :: Test -> IO () | ||
testRunner t = hspec (fromHUnitTest t) | ||
testRunner t = do | ||
Counts{..} <- runTestTT t | ||
when (errors + failures > 0) $ exitWith (ExitFailure 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
module TestRunner where | ||
module TestRunner (module TestRunner) where | ||
|
||
import Test.Hspec | ||
import Test.Hspec.Contrib.HUnit (fromHUnitTest) | ||
import Control.Monad | ||
import System.Exit | ||
import Test.HUnit | ||
|
||
testRunner :: Test -> IO () | ||
testRunner t = hspec (fromHUnitTest t) | ||
testRunner t = do | ||
Counts{..} <- runTestTT t | ||
when (errors + failures > 0) $ exitWith (ExitFailure 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cabal-version: 2.1 | ||
cabal-version: 3.6 | ||
|
||
name: thrift-haxl | ||
version: 0.1.0.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
module TestRunner where | ||
module TestRunner (module TestRunner) where | ||
|
||
import Test.Hspec | ||
import Test.Hspec.Contrib.HUnit (fromHUnitTest) | ||
import Control.Monad | ||
import System.Exit | ||
import Test.HUnit | ||
|
||
testRunner :: Test -> IO () | ||
testRunner t = hspec (fromHUnitTest t) | ||
testRunner t = do | ||
Counts{..} <- runTestTT t | ||
when (errors + failures > 0) $ exitWith (ExitFailure 1) |
Oops, something went wrong.