[#25] Improve test coverage by adding delays

This commit is contained in:
Radon Rosborough 2020-09-27 09:04:51 -07:00
parent 53b3abda6e
commit 73b17c8110
1 changed files with 13 additions and 6 deletions

View File

@ -791,6 +791,8 @@ main(application-name(), application-arguments());
aliases: ["iex", "exs"], aliases: ["iex", "exs"],
name: "Elixir", name: "Elixir",
repl: "iex", repl: "iex",
input: `DELAY: 1
123 * 234`,
main: "main.exs", main: "main.exs",
run: "iex main.exs", run: "iex main.exs",
scope: { scope: {
@ -799,12 +801,13 @@ main(application-name(), application-arguments());
123 * 234 123 * 234
end end
end`, end`,
input: `Scope.x`, input: `DELAY: 1
Scope.x`,
}, },
lsp: { start: "/opt/elixir-ls/language_server.sh" }, lsp: { start: "/opt/elixir-ls/language_server.sh" },
template: `IO.puts("Hello, world!") template: `IO.puts("Hello, world!")
`, `,
skip: ["repl", "runrepl", "scope", "lsp"], skip: ["lsp"],
}, },
elm: { elm: {
name: "Elm", name: "Elm",
@ -1544,11 +1547,12 @@ PLEASE GIVE UP
aliases: ["lsc", "ls"], aliases: ["lsc", "ls"],
name: "LiveScript", name: "LiveScript",
repl: "lsc", repl: "lsc",
input: `DELAY: 1
123 * 234`,
main: "main.ls", main: "main.ls",
run: "lsc -r ./main.ls", run: "lsc -r ./main.ls",
template: `console.log "Hello, world!" template: `console.log "Hello, world!"
`, `,
skip: ["repl", "runrepl"],
}, },
llvm: { llvm: {
name: "LLVM", name: "LLVM",
@ -2096,13 +2100,13 @@ x`,
monacoLang: "redis", monacoLang: "redis",
repl: repl:
"rm -f socket; (redis-server --port 0 --unixsocket socket &); until [[ -e socket ]]; do sleep 0.01; done; redis-cli -s socket", "rm -f socket; (redis-server --port 0 --unixsocket socket &); until [[ -e socket ]]; do sleep 0.01; done; redis-cli -s socket",
input: `EVAL "return 123 * 234" 0`, input: `DELAY: 3
EVAL "return 123 * 234" 0`,
main: "main.redis", main: "main.redis",
run: run:
"rm -f socket; (redis-server --port 0 --unixsocket socket &); until [[ -e socket ]]; do sleep 0.01; done; redis-cli -s socket < main.redis; redis-cli -s socket", "rm -f socket; (redis-server --port 0 --unixsocket socket &); until [[ -e socket ]]; do sleep 0.01; done; redis-cli -s socket < main.redis; redis-cli -s socket",
template: `ECHO "Hello, world!" template: `ECHO "Hello, world!"
`, `,
skip: ["repl", "runrepl"],
}, },
restructuredtext: { restructuredtext: {
aliases: ["rst"], aliases: ["rst"],
@ -2246,14 +2250,17 @@ binding_irb.run(IRB.conf)
aliases: ["sci"], aliases: ["sci"],
name: "Scilab", name: "Scilab",
repl: "scilab-cli", repl: "scilab-cli",
input: `DELAY: 1
123 * 234`,
main: "main.sci", main: "main.sci",
run: "scilab-cli -f main.sci", run: "scilab-cli -f main.sci",
scope: { scope: {
code: `x = 123 * 234`, code: `x = 123 * 234`,
input: `DELAY: 1
x`,
}, },
template: `disp("Hello, world!") template: `disp("Hello, world!")
`, `,
skip: ["repl", "runrepl", "scope"],
}, },
scss: { scss: {
name: "SCSS", name: "SCSS",