use of net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser in project memory-map-plugin by Praqma.
the class MemoryMapGccParserTest method testParsingOfMemorySegmentInLinkerCommandFile.
@Test
public void testParsingOfMemorySegmentInLinkerCommandFile() throws IOException {
GccMemoryMapParser parser = new GccMemoryMapParser();
String fileNameLinker = MemoryMapGccParserTest.class.getResource("prom.ld").getFile();
String fileNameMap = MemoryMapGccParserTest.class.getResource("prom.map").getFile();
assertNotNull(fileNameLinker);
assertNotNull(fileNameMap);
File f = new File(fileNameLinker);
MemoryMapConfigMemory mem = parser.parseConfigFile(f);
File f2 = new File(fileNameMap);
parser.parseMapFile(f2, mem);
}
use of net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser in project memory-map-plugin by Praqma.
the class GccMemoryMapParserIT method gcc484_testUsageValues.
@Test
public void gcc484_testUsageValues() throws Exception {
MemoryMapGraphConfiguration graphConfiguration = new MemoryMapGraphConfiguration("rom", "484");
GccMemoryMapParser parser = createParser(graphConfiguration);
parser.setMapFile("map.map");
parser.setConfigurationFile("link.ld");
HashMap<String, String> expectedValues = new HashMap<>();
expectedValues.put("rom", "0x01000000");
expectedValues.put("ram", "0x04000000");
expectedValues.put(".data", "0x00000000");
expectedValues.put(".bss", "0x00000000");
expectedValues.put(".text", "0x0000013c");
TestUtils.testUsageValues(jenkins, parser, "gcc484.zip", expectedValues);
}
Aggregations