Search in sources :

Example 1 with BitbakeRecipesParser

use of com.synopsys.integration.detectable.detectables.bitbake.parse.BitbakeRecipesParser in project synopsys-detect by blackducksoftware.

the class BitbakeRecipesParserTest method test.

@Test
void test() {
    BitbakeRecipesParser parser = new BitbakeRecipesParser();
    ShowRecipesResults results = parser.parseShowRecipes(showRecipesOutputLines);
    assertEquals(3, results.getLayerNames().size());
    assertTrue(results.getLayerNames().contains("meta"));
    assertEquals(4, results.getRecipesWithLayers().size());
    assertTrue(results.getRecipesWithLayers().containsKey("adcli"));
}
Also used : BitbakeRecipesParser(com.synopsys.integration.detectable.detectables.bitbake.parse.BitbakeRecipesParser) ShowRecipesResults(com.synopsys.integration.detectable.detectables.bitbake.data.ShowRecipesResults) Test(org.junit.jupiter.api.Test)

Aggregations

ShowRecipesResults (com.synopsys.integration.detectable.detectables.bitbake.data.ShowRecipesResults)1 BitbakeRecipesParser (com.synopsys.integration.detectable.detectables.bitbake.parse.BitbakeRecipesParser)1 Test (org.junit.jupiter.api.Test)1