summaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2021-12-30 23:13:06 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2021-12-30 23:18:29 +0100
commitd1f00d188698c52c07a5881fc0088e4163976e5e (patch)
treec4d080cdfe9d4c38694461a9bb1280987e3e76de /src/Main.hs
parenta6b07d2758c185cde10a0b07161c18c288c02cfc (diff)
Test mode for erebos-tester
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 2c56a00..7fb6ff3 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -39,6 +39,7 @@ import State
import Storage
import Storage.Merge
import Sync
+import Test
data Options = Options
{ optServer :: ServerOptions
@@ -109,6 +110,8 @@ main = do
BC.putStrLn . showRefDigest . refDigest . storedRef . idData =<< interactiveIdentityUpdate idt
| otherwise -> error "invalid identity"
+ ["test"] -> runTestTool st
+
args -> do
opts <- case getOpt Permute options args of
(o, [], []) -> return (foldl (flip id) defaultOptions o)