Skip to content

Commit 7b45179

Browse files
committed
Add test case for alpine linux
1 parent ae29d16 commit 7b45179

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/rustler_precompiled_test.exs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@ defmodule RustlerPrecompiledTest do
6060
RustlerPrecompiled.target(config, @available_targets, @available_nif_versions)
6161
end
6262

63+
test "x86_64 in a PC running Alpine Linux" do
64+
target_system = %{arch: "x86_64", vendor: "alpine", os: "linux", abi: "musl"}
65+
66+
config = %{
67+
target_system: target_system,
68+
nif_version: "2.14",
69+
os_type: {:unix, :linux}
70+
}
71+
72+
assert {:ok, "nif-2.14-x86_64-unknown-linux-musl"} =
73+
RustlerPrecompiled.target(config, @available_targets, @available_nif_versions)
74+
end
75+
6376
test "x86_64 or amd64 in a PC running Linux" do
6477
target_system = %{arch: "amd64", vendor: "pc", os: "linux", abi: "gnu"}
6578

0 commit comments

Comments
 (0)