test(ldgen): added test simulating a .*.c file

pull/13114/head
Jakob Hasse 2024-01-25 17:40:40 +08:00
rodzic bd56ca48be
commit 65373e126a
2 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -17,3 +17,10 @@ Sections:
Idx Name Size VMA LMA File off Algn
0 .literal.ěščřžýáíé 00000018 00000000 00000000 00000034 2**2
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
o_suffix.c.o: file format elf32-littleriscv
Sections:
Idx Name Size VMA LMA File off Algn
0 .find_me 00000000 00000000 00000000 00000034 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE

Wyświetl plik

@ -236,6 +236,9 @@ class EntityDBTest(unittest.TestCase):
sections = self.entities.get_sections('ěščřžýáíé.a', 'FreeRTOS-ěščřžýáíé')
self.assertEqual(set(sections), set(['.literal.ěščřžýáíé']))
sections = self.entities.get_sections('ěščřžýáíé.a', 'o_suffix')
self.assertEqual(set(sections), set(['.find_me']))
if __name__ == '__main__':
unittest.main()