Användning av hårdvaruemulering i automatiserad testning
2024 (Swedish)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesisAlternative title
Utilizing Hardware Emulation in Automated Testing (English)
Abstract [sv]
Det dyker konstant upp nya produkter i samhället som använder sig av nya teknologier. När företag utvecklar ett program för hårdvara kan tillgängligheten till hårdvaran vara låg. Målet med denna uppsats är att med hjälp av hårdvaruemulering öka tillgängligheten till hårdvaran och möjliggöra mer avancerad felsökning och testning. För att göra detta möjligt användes Docker och QEMU i samband med GitLabs CI/CD pipeline för att automatiskt testa ny kod på emulerad hårdvara. Med denna implementation testas nu programmet automatiskt vid en push till GitLab vilket minskar behovet av tillgänglig hårdvara. Det krävs dock ytterligare arbete för att verifiera paritet mellan emulatorn och den riktiga hårdvaran. Användning av hårdvaruemulering sparar på resurser i form av minskat behov av prototyp hårdvara och tillgänglighet till hårdvara generellt. Detta är positivt ur både ett ekonomiskt- och klimatperspektiv.
Abstract [en]
In today’s society there is a constant development of new products utilizing bleeding edge technologies. Companies might struggle to obtain new hardware utilizing such techonolgies. The goal with this project is to use hardware emulation to increase the availability of said hardware while also enabling the use of more advanced debugging and automated testing. Docker and QEMU is used in combination with GitLab’s CI/CD pipeline to make it possible to automatically test new code on emulated hardware. Using this implementation an application is now tested automatically when new code is pushed to GitLab which lowers the need to purchase and obtain real hardware. More work needs to be done to verify the parity between the emulator and the real hardware. The reduction in purchases will lead to both an economic and environmental benefit.
Place, publisher, year, edition, pages
2024. , p. 55
Keywords [sv]
QEMU, CI/CD pipeline, Pytest, Docker, Cortex A35, Xilinx, zcu104, Vitis, Vivado
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:kau:diva-101438OAI: oai:DiVA.org:kau-101438DiVA, id: diva2:1892433
External cooperation
Volvo Autonomous Solutions
Subject / course
Computer Science
Educational program
Bachelor Programme in Computer Science
Supervisors
Examiners
2024-08-272024-08-262026-02-12Bibliographically approved