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

     1  # Test on filegroups using 'require'.
     2  filegroup(
     3      name = 'require_filegroup',
     4      srcs = ['//test/proto_rules:test_proto'],
     5      requires = ['cc_hdrs'],
     6  )
     7  
     8  sh_test(
     9      name = 'filegroup_require_test',
    10      src = 'filegroup_require_test.sh',
    11      data = [':require_filegroup'],
    12  )
    13  
    14  # Test on having a symlink to an output
    15  genrule(
    16      name = 'test_symlinks',
    17      outs = [
    18          'test1.txt',
    19          'test2.txt',
    20      ],
    21      cmd = 'echo "test" > test1.txt && ln -s test1.txt test2.txt',
    22  )