-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prototype(ldfi v2): add basic project structure including testsuite
- Loading branch information
1 parent
33dbd29
commit d2bd105
Showing
7 changed files
with
108 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Copyright (c) 2021 Symbiont Inc. | ||
|
||
All rights reserved. |
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,6 @@ | ||
module Main where | ||
|
||
import Ldfi | ||
|
||
main :: IO () | ||
main = print (ldfi exTraces) |
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,13 @@ | ||
packages: . | ||
|
||
with-compiler: ghc-8.10.3 | ||
|
||
-- reject-unconstrained-dependencies: all | ||
|
||
constraints: | ||
|
||
package ldfi | ||
ghc-options: -Wall | ||
|
||
allow-older: * | ||
allow-newer: * |
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,25 +1,53 @@ | ||
cabal-version: >=1.10 | ||
-- Initial package description 'ldfi.cabal' generated by 'cabal init'. | ||
-- For further documentation, see http://haskell.org/cabal/users-guide/ | ||
|
||
name: ldfi | ||
version: 0.0.0 | ||
-- synopsis: | ||
-- description: | ||
-- bug-reports: | ||
-- license: | ||
synopsis: Lineage-driven fault injection | ||
description: See README at <https://github.com/symbiont-io/detsys-testkit/tree/main/src/ldfi#readme> | ||
bug-reports: https://github.com/symbiont-io/detsys-testkit/issues | ||
license: AllRightsReserved | ||
license-file: LICENSE | ||
author: Stevan Andjelkovic | ||
maintainer: stevana@users.noreply.github.com | ||
-- copyright: | ||
-- category: | ||
maintainer: symbiont-stevan-andjelkovic@users.noreply.github.com | ||
copyright: Copyright (c) 2021 Symbiont Inc | ||
category: Testing, Distributed Systems | ||
build-type: Simple | ||
extra-source-files: CHANGELOG.md | ||
tested-with: GHC ==8.10.3 | ||
|
||
library | ||
hs-source-dirs: src/ | ||
exposed-modules: Ldfi | ||
-- GHC boot libraries | ||
-- (https://gitlab.haskell.org/ghc/ghc/-/blob/master/packages) | ||
build-depends: | ||
base >=4.14 && <4.15 | ||
, containers | ||
default-language: Haskell2010 | ||
|
||
test-suite test | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test/ | ||
main-is: Driver.hs | ||
build-depends: | ||
base | ||
, containers | ||
, HUnit | ||
, ldfi | ||
, tasty | ||
, tasty-hunit | ||
other-modules: | ||
LdfiTest | ||
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-ignore-asserts | ||
default-language: Haskell2010 | ||
|
||
executable ldfi | ||
main-is: Main.hs | ||
-- other-modules: | ||
-- other-extensions: | ||
build-depends: base >=4.13 && <4.14 | ||
-- hs-source-dirs: | ||
default-language: Haskell2010 | ||
hs-source-dirs: app | ||
main-is: Main.hs | ||
build-depends: | ||
base | ||
, ldfi | ||
default-language: Haskell2010 | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/symbiont-io/detsys-testkit |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{-# OPTIONS_GHC -F -pgmF tasty-discover #-} |
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,13 @@ | ||
module LdfiTest where | ||
|
||
import Test.HUnit | ||
|
||
import Ldfi | ||
|
||
------------------------------------------------------------------------ | ||
|
||
unit_cache :: Assertion | ||
unit_cache = | ||
assertEqual "" | ||
(ldfi exTraces) | ||
(And [Var "A",Var "B"] :&& (Var "C" :|| And [Var "R",Var "S1",Var "S2"])) |