From d643233d9c13ba07e146c4c84b5bda7d54e25323 Mon Sep 17 00:00:00 2001 From: Frank Hunleth Date: Mon, 7 Jun 2021 20:06:36 -0400 Subject: [PATCH] Add unit test to verify Erlang This makes sure that Erlang is tested like LFE and Elixir. --- test/nerves_ssh_test.exs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/nerves_ssh_test.exs b/test/nerves_ssh_test.exs index 298f876..39c0749 100644 --- a/test/nerves_ssh_test.exs +++ b/test/nerves_ssh_test.exs @@ -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)})