Search in sources :

Example 1 with BaseSpawn

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

the class PopulateTreeArtifactActionTest method testSpawnArguments.

@Test
public void testSpawnArguments() throws Exception {
    PopulateTreeArtifactAction action = createPopulateTreeArtifactAction();
    BaseSpawn spawn = (BaseSpawn) action.createSpawn();
    assertThat(spawn.getArguments()).containsExactly("unzipBinary", "x", "myArchive.zip", "-d", "test/archive_member", "@archiveManifest.txt").inOrder();
}
Also used : BaseSpawn(com.google.devtools.build.lib.actions.BaseSpawn) Test(org.junit.Test)

Aggregations

BaseSpawn (com.google.devtools.build.lib.actions.BaseSpawn)1 Test (org.junit.Test)1