Search in sources :

Example 11 with RunfilesSupplier

use of com.google.devtools.build.lib.actions.RunfilesSupplier in project bazel by bazelbuild.

the class RunfilesSupplierImplTest method testGetManifestsWhenSupplied.

@Test
public void testGetManifestsWhenSupplied() {
    Artifact manifest = new Artifact(new PathFragment("manifest"), rootDir);
    RunfilesSupplier underTest = new RunfilesSupplierImpl(new PathFragment("ignored"), Runfiles.EMPTY, manifest);
    assertThat(underTest.getManifests()).containsExactly(manifest);
}
Also used : PathFragment(com.google.devtools.build.lib.vfs.PathFragment) Artifact(com.google.devtools.build.lib.actions.Artifact) RunfilesSupplier(com.google.devtools.build.lib.actions.RunfilesSupplier) Test(org.junit.Test)

Aggregations

RunfilesSupplier (com.google.devtools.build.lib.actions.RunfilesSupplier)11 Test (org.junit.Test)11 Artifact (com.google.devtools.build.lib.actions.Artifact)9 PathFragment (com.google.devtools.build.lib.vfs.PathFragment)9 EmptyRunfilesSupplier (com.google.devtools.build.lib.actions.EmptyRunfilesSupplier)7 ActionInputFileCache (com.google.devtools.build.lib.actions.ActionInputFileCache)6 Runfiles (com.google.devtools.build.lib.analysis.Runfiles)6 RunfilesSupplierImpl (com.google.devtools.build.lib.analysis.RunfilesSupplierImpl)6 ImmutableList (com.google.common.collect.ImmutableList)1 CompositeRunfilesSupplier (com.google.devtools.build.lib.actions.CompositeRunfilesSupplier)1 MutableList (com.google.devtools.build.lib.syntax.SkylarkList.MutableList)1 IOException (java.io.IOException)1 List (java.util.List)1