github.phpd.cn/thought-machine/please@v12.2.0+incompatible/test/go_rules/BUILD (about)

     1  # Test on the builtin go rules
     2  subinclude('//build_defs:plz_e2e_test')
     3  
     4  go_library(
     5      name = 'go_rules_test_lib',
     6      srcs = ['go_rules_test_lib.go'],
     7      test_only = True,
     8      deps = [
     9          '//test/go_rules/test',
    10      ],
    11  )
    12  
    13  go_binary(
    14      name = 'go_rules_test_bin',
    15      srcs = ['go_rules_test_bin.go'],
    16      test_only = True,
    17      deps = [
    18          ':go_rules_test_lib',
    19          '//test/go_rules/test',
    20      ],
    21  )
    22  
    23  gentest(
    24      name = 'go_rules_test',
    25      data = [
    26          ':go_rules_test_bin',
    27      ],
    28      no_test_output = True,
    29      test_cmd = '$(location :go_rules_test_bin)',
    30  )
    31  
    32  # Test that doesn't have any actual test cases in it.
    33  go_test(
    34      name = 'empty_test',
    35      srcs = ['empty_test.go'],
    36  )
    37  
    38  # Test in which only one case passes
    39  go_test(
    40      name = 'single_test',
    41      srcs = ['single_test.go'],
    42      labels = ['manual'],
    43  )
    44  
    45  plz_e2e_test(
    46      name = 'go_test_spec_test',
    47      cmd = 'plz test //test/go_rules:single_test Test2',
    48  )