Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an integration test for canton-repl #12772

Merged
merged 14 commits into from
Feb 8, 2022
Prev Previous commit
Next Next commit
.
  • Loading branch information
sofiafaro-da committed Feb 7, 2022
commit 0ab8c398e92170494d2d664e4a0ccdf365fcda8f
Original file line number Diff line number Diff line change
Expand Up @@ -810,17 +810,21 @@ cantonTests = testGroup "daml sandbox"
let cmd = unwords
-- NOTE (Sofia): We need `script` on Linux and Mac because of this ammonite issue:
-- https://github.com/com-lihaoyi/Ammonite/issues/276
[ (if isWindows then "" else "script -q -- tty.txt ") <> "daml canton-repl"
[ "daml canton-repl"
, "--port", show ledgerApiPort
, "--admin-api-port", show adminApiPort
, "--domain-public-port", show domainPublicApiPort
, "--domain-admin-port", show domainAdminApiPort
]
wrappedCmd
| isWindows = cmd
| isMac = concat ["script -q tty.txt ", cmd]
| otherwise = concat ["script --quiet --command '", cmd, "'"]
input = unlines
[ "sandbox.health.running"
, "local.health.running"
]
proc' = (shell cmd) { cwd = Just dir }
proc' = (shell wrappedCmd) { cwd = Just dir }
output <- readCreateProcess proc' input
hPutStrLn stderr "canton-repl output:"
hPutStrLn stderr output
Expand Down