Skip to content

Commit

Permalink
Add unit test to verify Erlang
Browse files Browse the repository at this point in the history
This makes sure that Erlang is tested like LFE and Elixir.
  • Loading branch information
fhunleth committed Jun 8, 2021
1 parent 053587e commit d643233
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/nerves_ssh_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ defmodule NervesSshTest do
assert {:ok, ":started_again?", 0} == ssh_run(":started_again?")
end

@tag :has_good_sshd_exec
test "erlang exec works" do
options = %{@nerves_ssh_config | shell: :erlang, exec: :erlang}
start_supervised!({NervesSSH, options})
assert {:ok, "3", 0} == ssh_run("1 + 2.", @username_login)
end

@tag :has_good_sshd_exec
test "lfe exec works" do
start_supervised!({NervesSSH, Map.put(@nerves_ssh_config, :exec, :lfe)})
Expand Down

0 comments on commit d643233

Please sign in to comment.