1*bcb5dc79SHONG Yifanload("//:bzl_library.bzl", "bzl_library") 2*bcb5dc79SHONG Yifanload(":build_test_tests.bzl", "build_test_test_suite") 3*bcb5dc79SHONG Yifanload(":collections_tests.bzl", "collections_test_suite") 4*bcb5dc79SHONG Yifanload(":common_settings_tests.bzl", "common_settings_test_suite") 5*bcb5dc79SHONG Yifanload(":dicts_tests.bzl", "dicts_test_suite") 6*bcb5dc79SHONG Yifanload(":modules_test.bzl", "modules_test_suite") 7*bcb5dc79SHONG Yifanload(":new_sets_tests.bzl", "new_sets_test_suite") 8*bcb5dc79SHONG Yifanload(":partial_tests.bzl", "partial_test_suite") 9*bcb5dc79SHONG Yifanload(":paths_tests.bzl", "paths_test_suite") 10*bcb5dc79SHONG Yifanload(":selects_tests.bzl", "selects_test_suite") 11*bcb5dc79SHONG Yifanload(":shell_tests.bzl", "shell_args_test_gen", "shell_test_suite") 12*bcb5dc79SHONG Yifanload(":structs_tests.bzl", "structs_test_suite") 13*bcb5dc79SHONG Yifanload(":subpackages_tests.bzl", "subpackages_test_suite") 14*bcb5dc79SHONG Yifanload(":types_tests.bzl", "types_test_suite") 15*bcb5dc79SHONG Yifanload(":unittest_tests.bzl", "unittest_passing_tests_suite") 16*bcb5dc79SHONG Yifanload(":versions_tests.bzl", "versions_test_suite") 17*bcb5dc79SHONG Yifan 18*bcb5dc79SHONG Yifanpackage( 19*bcb5dc79SHONG Yifan default_applicable_licenses = ["//:license"], 20*bcb5dc79SHONG Yifan default_testonly = 1, 21*bcb5dc79SHONG Yifan) 22*bcb5dc79SHONG Yifan 23*bcb5dc79SHONG Yifanlicenses(["notice"]) 24*bcb5dc79SHONG Yifan 25*bcb5dc79SHONG Yifanexports_files( 26*bcb5dc79SHONG Yifan ["unittest.bash"], 27*bcb5dc79SHONG Yifan visibility = ["//tests:__subpackages__"], 28*bcb5dc79SHONG Yifan) 29*bcb5dc79SHONG Yifan 30*bcb5dc79SHONG Yifanbuild_test_test_suite() 31*bcb5dc79SHONG Yifan 32*bcb5dc79SHONG Yifancollections_test_suite() 33*bcb5dc79SHONG Yifan 34*bcb5dc79SHONG Yifancommon_settings_test_suite() 35*bcb5dc79SHONG Yifan 36*bcb5dc79SHONG Yifandicts_test_suite() 37*bcb5dc79SHONG Yifan 38*bcb5dc79SHONG Yifanmodules_test_suite() 39*bcb5dc79SHONG Yifan 40*bcb5dc79SHONG Yifannew_sets_test_suite() 41*bcb5dc79SHONG Yifan 42*bcb5dc79SHONG Yifanpartial_test_suite() 43*bcb5dc79SHONG Yifan 44*bcb5dc79SHONG Yifanpaths_test_suite() 45*bcb5dc79SHONG Yifan 46*bcb5dc79SHONG Yifanselects_test_suite() 47*bcb5dc79SHONG Yifan 48*bcb5dc79SHONG Yifanshell_test_suite() 49*bcb5dc79SHONG Yifan 50*bcb5dc79SHONG Yifanstructs_test_suite() 51*bcb5dc79SHONG Yifan 52*bcb5dc79SHONG Yifansubpackages_test_suite() 53*bcb5dc79SHONG Yifan 54*bcb5dc79SHONG Yifantypes_test_suite() 55*bcb5dc79SHONG Yifan 56*bcb5dc79SHONG Yifanunittest_passing_tests_suite() 57*bcb5dc79SHONG Yifan 58*bcb5dc79SHONG Yifanversions_test_suite() 59*bcb5dc79SHONG Yifan 60*bcb5dc79SHONG Yifanbzl_library( 61*bcb5dc79SHONG Yifan name = "unittest_tests_bzl", 62*bcb5dc79SHONG Yifan srcs = ["unittest_tests.bzl"], 63*bcb5dc79SHONG Yifan visibility = ["//visibility:private"], 64*bcb5dc79SHONG Yifan deps = ["//lib:unittest"], 65*bcb5dc79SHONG Yifan) 66*bcb5dc79SHONG Yifan 67*bcb5dc79SHONG Yifansh_test( 68*bcb5dc79SHONG Yifan name = "unittest_e2e_test", 69*bcb5dc79SHONG Yifan srcs = ["unittest_test.sh"], 70*bcb5dc79SHONG Yifan data = [ 71*bcb5dc79SHONG Yifan ":unittest.bash", 72*bcb5dc79SHONG Yifan ":unittest_tests_bzl", 73*bcb5dc79SHONG Yifan "//lib:dicts", 74*bcb5dc79SHONG Yifan "//lib:new_sets", 75*bcb5dc79SHONG Yifan "//lib:sets", 76*bcb5dc79SHONG Yifan "//lib:types", 77*bcb5dc79SHONG Yifan "//lib:unittest", 78*bcb5dc79SHONG Yifan "//toolchains/unittest:test_deps", 79*bcb5dc79SHONG Yifan "@bazel_tools//tools/bash/runfiles", 80*bcb5dc79SHONG Yifan ], 81*bcb5dc79SHONG Yifan tags = ["local"], 82*bcb5dc79SHONG Yifan) 83*bcb5dc79SHONG Yifan 84*bcb5dc79SHONG Yifansh_test( 85*bcb5dc79SHONG Yifan name = "analysis_test_e2e_test", 86*bcb5dc79SHONG Yifan srcs = ["analysis_test_test.sh"], 87*bcb5dc79SHONG Yifan data = [ 88*bcb5dc79SHONG Yifan ":unittest.bash", 89*bcb5dc79SHONG Yifan "//rules:analysis_test.bzl", 90*bcb5dc79SHONG Yifan "@bazel_tools//tools/bash/runfiles", 91*bcb5dc79SHONG Yifan ], 92*bcb5dc79SHONG Yifan tags = ["local"], 93*bcb5dc79SHONG Yifan) 94*bcb5dc79SHONG Yifan 95*bcb5dc79SHONG Yifansh_test( 96*bcb5dc79SHONG Yifan name = "common_settings_e2e_test", 97*bcb5dc79SHONG Yifan srcs = ["common_settings_test.sh"], 98*bcb5dc79SHONG Yifan data = [ 99*bcb5dc79SHONG Yifan ":unittest.bash", 100*bcb5dc79SHONG Yifan "//rules:common_settings.bzl", 101*bcb5dc79SHONG Yifan "@bazel_tools//tools/bash/runfiles", 102*bcb5dc79SHONG Yifan ], 103*bcb5dc79SHONG Yifan tags = ["local"], 104*bcb5dc79SHONG Yifan) 105*bcb5dc79SHONG Yifan 106*bcb5dc79SHONG Yifanshell_args_test_gen( 107*bcb5dc79SHONG Yifan name = "shell_spawn_e2e_test_src", 108*bcb5dc79SHONG Yifan) 109*bcb5dc79SHONG Yifan 110*bcb5dc79SHONG Yifansh_test( 111*bcb5dc79SHONG Yifan name = "shell_spawn_e2e_test", 112*bcb5dc79SHONG Yifan srcs = [":shell_spawn_e2e_test_src"], 113*bcb5dc79SHONG Yifan) 114