2019-02-11 22:18:56 +00:00
|
|
|
load("//:bzl_library.bzl", "bzl_library")
|
2019-01-25 19:34:15 +00:00
|
|
|
load(":build_test_tests.bzl", "build_test_test_suite")
|
2017-10-10 14:59:31 +00:00
|
|
|
load(":collections_tests.bzl", "collections_test_suite")
|
2023-08-22 19:41:36 +00:00
|
|
|
load(":common_settings_tests.bzl", "common_settings_test_suite")
|
2017-10-10 14:59:31 +00:00
|
|
|
load(":dicts_tests.bzl", "dicts_test_suite")
|
2024-04-24 18:53:32 +00:00
|
|
|
load(":modules_test.bzl", "modules_test_suite")
|
2018-11-26 22:31:29 +00:00
|
|
|
load(":new_sets_tests.bzl", "new_sets_test_suite")
|
2018-04-17 16:33:38 +00:00
|
|
|
load(":partial_tests.bzl", "partial_test_suite")
|
2017-10-10 14:59:31 +00:00
|
|
|
load(":paths_tests.bzl", "paths_test_suite")
|
|
|
|
load(":selects_tests.bzl", "selects_test_suite")
|
2019-03-26 09:52:27 +00:00
|
|
|
load(":shell_tests.bzl", "shell_args_test_gen", "shell_test_suite")
|
2017-10-10 14:59:31 +00:00
|
|
|
load(":structs_tests.bzl", "structs_test_suite")
|
2022-04-04 21:56:21 +00:00
|
|
|
load(":subpackages_tests.bzl", "subpackages_test_suite")
|
2018-05-08 22:13:31 +00:00
|
|
|
load(":types_tests.bzl", "types_test_suite")
|
2019-02-14 21:54:42 +00:00
|
|
|
load(":unittest_tests.bzl", "unittest_passing_tests_suite")
|
2018-01-12 17:18:55 +00:00
|
|
|
load(":versions_tests.bzl", "versions_test_suite")
|
2017-10-10 14:59:31 +00:00
|
|
|
|
2024-05-01 21:24:18 +00:00
|
|
|
package(
|
|
|
|
default_applicable_licenses = ["//:license"],
|
|
|
|
default_testonly = 1,
|
|
|
|
)
|
2017-10-10 14:59:31 +00:00
|
|
|
|
2024-05-02 18:38:05 +00:00
|
|
|
licenses(["notice"])
|
|
|
|
|
2019-03-18 12:23:15 +00:00
|
|
|
exports_files(
|
|
|
|
["unittest.bash"],
|
|
|
|
visibility = ["//tests:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
2019-01-25 19:34:15 +00:00
|
|
|
build_test_test_suite()
|
|
|
|
|
2017-10-10 14:59:31 +00:00
|
|
|
collections_test_suite()
|
|
|
|
|
2023-08-22 19:41:36 +00:00
|
|
|
common_settings_test_suite()
|
|
|
|
|
2017-10-10 14:59:31 +00:00
|
|
|
dicts_test_suite()
|
|
|
|
|
2024-04-24 18:53:32 +00:00
|
|
|
modules_test_suite()
|
|
|
|
|
2019-05-28 21:54:22 +00:00
|
|
|
new_sets_test_suite()
|
|
|
|
|
2018-04-17 16:33:38 +00:00
|
|
|
partial_test_suite()
|
|
|
|
|
2017-10-10 14:59:31 +00:00
|
|
|
paths_test_suite()
|
|
|
|
|
|
|
|
selects_test_suite()
|
|
|
|
|
|
|
|
shell_test_suite()
|
|
|
|
|
|
|
|
structs_test_suite()
|
2018-01-12 17:18:55 +00:00
|
|
|
|
2022-04-04 21:56:21 +00:00
|
|
|
subpackages_test_suite()
|
|
|
|
|
2018-05-08 22:13:31 +00:00
|
|
|
types_test_suite()
|
|
|
|
|
2019-02-14 21:54:42 +00:00
|
|
|
unittest_passing_tests_suite()
|
|
|
|
|
2018-01-12 17:18:55 +00:00
|
|
|
versions_test_suite()
|
2019-02-11 22:18:56 +00:00
|
|
|
|
|
|
|
bzl_library(
|
2019-02-14 21:54:42 +00:00
|
|
|
name = "unittest_tests_bzl",
|
2019-02-11 22:18:56 +00:00
|
|
|
srcs = ["unittest_tests.bzl"],
|
2019-02-14 21:54:42 +00:00
|
|
|
visibility = ["//visibility:private"],
|
2019-02-11 22:18:56 +00:00
|
|
|
deps = ["//lib:unittest"],
|
|
|
|
)
|
|
|
|
|
|
|
|
sh_test(
|
|
|
|
name = "unittest_e2e_test",
|
|
|
|
srcs = ["unittest_test.sh"],
|
|
|
|
data = [
|
|
|
|
":unittest.bash",
|
2019-02-14 21:54:42 +00:00
|
|
|
":unittest_tests_bzl",
|
2020-04-03 14:54:55 +00:00
|
|
|
"//lib:dicts",
|
|
|
|
"//lib:new_sets",
|
|
|
|
"//lib:sets",
|
|
|
|
"//lib:types",
|
|
|
|
"//lib:unittest",
|
2019-02-11 22:18:56 +00:00
|
|
|
"//toolchains/unittest:test_deps",
|
|
|
|
"@bazel_tools//tools/bash/runfiles",
|
|
|
|
],
|
|
|
|
tags = ["local"],
|
|
|
|
)
|
2019-02-19 20:16:36 +00:00
|
|
|
|
|
|
|
sh_test(
|
|
|
|
name = "analysis_test_e2e_test",
|
|
|
|
srcs = ["analysis_test_test.sh"],
|
|
|
|
data = [
|
|
|
|
":unittest.bash",
|
|
|
|
"//rules:analysis_test.bzl",
|
|
|
|
"@bazel_tools//tools/bash/runfiles",
|
|
|
|
],
|
|
|
|
tags = ["local"],
|
|
|
|
)
|
2019-03-26 09:52:27 +00:00
|
|
|
|
2019-06-14 19:22:54 +00:00
|
|
|
sh_test(
|
|
|
|
name = "common_settings_e2e_test",
|
|
|
|
srcs = ["common_settings_test.sh"],
|
|
|
|
data = [
|
|
|
|
":unittest.bash",
|
|
|
|
"//rules:common_settings.bzl",
|
|
|
|
"@bazel_tools//tools/bash/runfiles",
|
|
|
|
],
|
|
|
|
tags = ["local"],
|
|
|
|
)
|
|
|
|
|
2019-03-26 09:52:27 +00:00
|
|
|
shell_args_test_gen(
|
|
|
|
name = "shell_spawn_e2e_test_src",
|
|
|
|
)
|
|
|
|
|
|
|
|
sh_test(
|
|
|
|
name = "shell_spawn_e2e_test",
|
|
|
|
srcs = [":shell_spawn_e2e_test_src"],
|
|
|
|
)
|