Skip to content

Commit b8d66de

Browse files
committed
test: use find & execute technique
1 parent c99c098 commit b8d66de

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/mainline-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ jobs:
3636
run: |
3737
for archive in artifacts/*.tar.gz; do
3838
tar -xzf "$archive" -C / --overwrite --recursive-unlink
39-
for test in /opt/hcpu/tests/*; do $test; done
39+
find /opt/hcpu/tests -type f -executable -exec {} \;
4040
done

tools/packaging/BUILD.bazel

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@rules_pkg//:pkg.bzl", "pkg_tar")
2-
load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "pkg_attributes")
2+
load("@rules_pkg//pkg:mappings.bzl", "pkg_attributes", "pkg_files")
33
load("//tools/packaging:vars.bzl", "pkg_vars")
44

55
config_setting(
@@ -9,31 +9,29 @@ config_setting(
99

1010
pkg_files(
1111
name = "dist_files",
12-
attributes = pkg_attributes(
13-
mode = "755"
14-
),
1512
srcs = [
1613
"//src/Assembler:hcasm",
1714
"//src/Emulator:hcemul",
1815
],
16+
attributes = pkg_attributes(
17+
mode = "755",
18+
),
1919
prefix = "usr/bin",
2020
)
2121

2222
pkg_files(
2323
name = "dist_tests",
24-
attributes = pkg_attributes(
25-
mode = "755"
26-
),
2724
srcs = [
2825
"//tests/Integration:packaged-integration-test",
2926
"//tests/Modular:packaged-modular-test",
3027
"//tests/Pog:packaged-test-pog",
3128
],
29+
attributes = pkg_attributes(
30+
mode = "755",
31+
),
3232
prefix = "opt/hcpu/tests",
3333
)
3434

35-
36-
3735
pkg_vars(
3836
name = "dist_vars",
3937
platform = select({

0 commit comments

Comments
 (0)