Skip to content

Commit

Permalink
Add test case for alpine linux
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Aug 27, 2024
1 parent ae29d16 commit 7b45179
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/rustler_precompiled_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ defmodule RustlerPrecompiledTest do
RustlerPrecompiled.target(config, @available_targets, @available_nif_versions)
end

test "x86_64 in a PC running Alpine Linux" do
target_system = %{arch: "x86_64", vendor: "alpine", os: "linux", abi: "musl"}

config = %{
target_system: target_system,
nif_version: "2.14",
os_type: {:unix, :linux}
}

assert {:ok, "nif-2.14-x86_64-unknown-linux-musl"} =
RustlerPrecompiled.target(config, @available_targets, @available_nif_versions)
end

test "x86_64 or amd64 in a PC running Linux" do
target_system = %{arch: "amd64", vendor: "pc", os: "linux", abi: "gnu"}

Expand Down

0 comments on commit 7b45179

Please sign in to comment.