[roll] Roll fuchsia [check-licenses] Refactor directory tests

To use go:embed to pull in testdata. This yields more predictable paths
and simplifies test setup.

Also this makes it easier to migrate these tests from GN to Bazel,
which is what brought me here initially.

Note the license file paths changed because their relative path
prefixes changed from something like
`host_x64/gen/tools/check-licenses/directory/testdata/simple/root` to
just `testdata/simple/root`.

Ideally the we'd be passing the fs.ReadDirFS around, but the libraries
used by check-licenses all expects file paths, and changing that is
non-trivial. So for simplicity I just dumped all file content loaded
through go:embed into test temp dir.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1413699
Original-Revision: 7d8c793d725d792845eb8b0692711294379b5c95
GitOrigin-RevId: c01711f68d7764004ee5fc60829a5d5f315ad5f8
Change-Id: I4d86de07d54b0461794dfe9aa58c236d135cc65b
1 file changed
tree: d3ab25828d8717e3e4a9020a3c7c02f47416dbb5
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. flower
  6. jiri.lock
  7. MILESTONE
  8. minimal
  9. prebuilts
  10. README.md
  11. stem
  12. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.