Skip to content

Commit a014540

Browse files
authored
Use test sharding to parallelise the tests. (#544)
1 parent e30aa04 commit a014540

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

larq_compute_engine/mlir/tests/lit_test.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def lce_lit_test(
3939
srcs = [driver],
4040
size = size,
4141
data = data + [test_file],
42+
shard_count = 2,
4243
args = ["$(location %s)" % (test_file,)],
4344
**kwargs
4445
)

larq_compute_engine/tests/qemu_test.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ def lce_qemu_test_suite(
3535
# Finally create a new sh_test target
3636
native.sh_test(
3737
name = sh_name,
38-
size = "medium",
38+
size = "large",
3939
srcs = [src],
4040
args = [test_path],
4141
data = [test, qemu_data],
42+
shard_count = 2,
4243
)
4344

4445
# And add that sh_test target to the list

0 commit comments

Comments
 (0)