Use the downloaded clang when building for armhf-debian
This makes it work on a barebones Stretch installation.
Also add building for this CPU to the CI script so we know it keeps
working, which means marking everything that's supposed to work
appropriately.
Change-Id: Ic050ce20eae45c6b23e0e42dddb24db3ebc70b84
diff --git a/aos/testing/BUILD b/aos/testing/BUILD
index 4f2fc83..93cd4bb 100644
--- a/aos/testing/BUILD
+++ b/aos/testing/BUILD
@@ -1,86 +1,89 @@
cc_library(
- name = 'googletest',
- visibility = ['//visibility:public'],
- srcs = [
- 'gtest_main.cc',
- ],
- deps = [
- '//third_party/googletest',
- ],
- testonly = True,
+ name = "googletest",
+ testonly = True,
+ srcs = [
+ "gtest_main.cc",
+ ],
+ compatible_with = [
+ "//tools:armhf-debian",
+ ],
+ visibility = ["//visibility:public"],
+ deps = [
+ "//third_party/googletest",
+ ],
)
cc_library(
- name = 'test_logging',
- visibility = ['//visibility:public'],
- srcs = [
- 'test_logging.cc',
- ],
- hdrs = [
- 'test_logging.h',
- ],
- deps = [
- ':googletest',
- '//aos/common/logging:implementations',
- '//aos:once',
- '//aos/common:mutex',
- ],
- testonly = True,
+ name = "test_logging",
+ testonly = True,
+ srcs = [
+ "test_logging.cc",
+ ],
+ hdrs = [
+ "test_logging.h",
+ ],
+ visibility = ["//visibility:public"],
+ deps = [
+ ":googletest",
+ "//aos:once",
+ "//aos/common:mutex",
+ "//aos/common/logging:implementations",
+ ],
)
cc_test(
- name = 'test_logging_test',
- srcs = [
- 'test_logging_test.cc',
- ],
- deps = [
- ':googletest',
- ':test_logging',
- '//aos/common/logging',
- ],
+ name = "test_logging_test",
+ srcs = [
+ "test_logging_test.cc",
+ ],
+ deps = [
+ ":googletest",
+ ":test_logging",
+ "//aos/common/logging",
+ ],
)
cc_library(
- name = 'prevent_exit',
- visibility = ['//visibility:public'],
- srcs = [
- 'prevent_exit.cc',
- ],
- hdrs = [
- 'prevent_exit.h',
- ],
- deps = [
- '//aos/common/logging',
- ],
- testonly = True,
+ name = "prevent_exit",
+ testonly = True,
+ srcs = [
+ "prevent_exit.cc",
+ ],
+ hdrs = [
+ "prevent_exit.h",
+ ],
+ visibility = ["//visibility:public"],
+ deps = [
+ "//aos/common/logging",
+ ],
)
cc_library(
- name = 'test_shm',
- visibility = ['//visibility:public'],
- srcs = [
- 'test_shm.cc',
- ],
- hdrs = [
- 'test_shm.h',
- ],
- deps = [
- '//aos/common:queues',
- '//aos/linux_code/ipc_lib:shared_mem',
- '//aos/common/logging',
- ':test_logging',
- ],
- testonly = True,
+ name = "test_shm",
+ testonly = True,
+ srcs = [
+ "test_shm.cc",
+ ],
+ hdrs = [
+ "test_shm.h",
+ ],
+ visibility = ["//visibility:public"],
+ deps = [
+ ":test_logging",
+ "//aos/common:queues",
+ "//aos/common/logging",
+ "//aos/linux_code/ipc_lib:shared_mem",
+ ],
)
cc_library(
- name = 'random_seed',
- visibility = ['//visibility:public'],
- srcs = [
- 'random_seed.cc',
- ],
- hdrs = [
- 'random_seed.h',
- ],
- testonly = True,
+ name = "random_seed",
+ testonly = True,
+ srcs = [
+ "random_seed.cc",
+ ],
+ hdrs = [
+ "random_seed.h",
+ ],
+ visibility = ["//visibility:public"],
)