Skip to content

Commit 89295e4

Browse files
committed
M15: tag linalg describe blocks for selective test runs
Add @describetag :linalg to all linalg describe blocks so they can be included/excluded via mix test --only/--exclude linalg.
1 parent 68a7d3a commit 89295e4

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

test/emily/backend_fallbacks_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ defmodule Emily.Backend.FallbacksTest do
145145
end
146146

147147
describe "native linalg" do
148+
@describetag :linalg
148149
test "lu returns (p, l, u) and reconstructs input" do
149150
t = emily([[2.0, 1.0], [1.0, 3.0]])
150151
{p, l, u} = Nx.LinAlg.lu(t)

test/emily/backend_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ defmodule Emily.BackendTest do
674674
# ---------------- Linalg ----------------
675675

676676
describe "linalg" do
677+
@describetag :linalg
677678
property "lu: P * L * U ≈ A for random well-conditioned matrices" do
678679
check all(a <- square_matrix(), max_runs: @max_runs) do
679680
a_safe = make_well_conditioned(a)

test/emily/compiler_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ defmodule Emily.CompilerTest do
130130
end
131131

132132
describe "linalg" do
133+
@describetag :linalg
133134
test "dot product (matmul)" do
134135
a = Nx.iota({3, 4}, type: :f32)
135136
b = Nx.iota({4, 2}, type: :f32)

test/emily/native_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ defmodule Emily.NativeTest do
453453
# ---------- Linalg ----------
454454

455455
describe "linalg" do
456+
@describetag :linalg
456457
test "matmul: 2x3 @ 3x2" do
457458
a = f32([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], [2, 3])
458459
b = f32([7.0, 8.0, 9.0, 10.0, 11.0, 12.0], [3, 2])

0 commit comments

Comments
 (0)