Search in sources :

Example 6 with BitbakeEnvironment

use of com.synopsys.integration.detectable.detectables.bitbake.data.BitbakeEnvironment in project synopsys-detect by blackducksoftware.

the class BuildFileFinderTest method testFindingBasedOnArchitecture.

@Test
void testFindingBasedOnArchitecture() {
    File buildDir = FunctionalTestFiles.asFile("/bitbake/builddir_arch");
    // This test adds architecture.
    BitbakeEnvironment bitbakeEnvironment = new BitbakeEnvironment("testarch", null);
    Optional<File> licensesManifestFile = finder.findLicenseManifestFile(buildDir, "targetimage", bitbakeEnvironment);
    assertTrue(licensesManifestFile.isPresent());
    assertTrue(licensesManifestFile.get().isFile());
}
Also used : BitbakeEnvironment(com.synopsys.integration.detectable.detectables.bitbake.data.BitbakeEnvironment) File(java.io.File) Test(org.junit.jupiter.api.Test) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest) FunctionalTest(com.synopsys.integration.detectable.annotations.FunctionalTest)

Aggregations

BitbakeEnvironment (com.synopsys.integration.detectable.detectables.bitbake.data.BitbakeEnvironment)6 File (java.io.File)4 Test (org.junit.jupiter.api.Test)3 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)3 FunctionalTest (com.synopsys.integration.detectable.annotations.FunctionalTest)2 BitbakeEnvironmentParser (com.synopsys.integration.detectable.detectables.bitbake.parse.BitbakeEnvironmentParser)2 List (java.util.List)2 Optional (java.util.Optional)2 Logger (org.slf4j.Logger)2 LoggerFactory (org.slf4j.LoggerFactory)2 GraphParser (com.paypal.digraph.parser.GraphParser)1 DependencyGraph (com.synopsys.integration.bdio.graph.DependencyGraph)1 ExecutableTarget (com.synopsys.integration.detectable.ExecutableTarget)1 CodeLocation (com.synopsys.integration.detectable.detectable.codelocation.CodeLocation)1 ExecutableFailedException (com.synopsys.integration.detectable.detectable.executable.ExecutableFailedException)1 EnumListFilter (com.synopsys.integration.detectable.detectable.util.EnumListFilter)1 BitbakeCommandRunner (com.synopsys.integration.detectable.detectables.bitbake.collect.BitbakeCommandRunner)1 BuildFileFinder (com.synopsys.integration.detectable.detectables.bitbake.collect.BuildFileFinder)1 ShowRecipesResults (com.synopsys.integration.detectable.detectables.bitbake.data.ShowRecipesResults)1 BitbakeGraph (com.synopsys.integration.detectable.detectables.bitbake.model.BitbakeGraph)1