From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f178.google.com (mail-il1-f178.google.com [209.85.166.178]) by mx.groups.io with SMTP id smtpd.web12.693.1654275011721076494 for ; Fri, 03 Jun 2022 09:50:11 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZeU6kWF2; spf=pass (domain: gmail.com, ip: 209.85.166.178, mailfrom: ayushdevel1325@gmail.com) Received: by mail-il1-f178.google.com with SMTP id r3so7513798ilt.8 for ; Fri, 03 Jun 2022 09:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=pQRPi0Rfj0KQmzmPhiJiboZhtDkwjOqC+3JUM/2tEuI=; b=ZeU6kWF2IuoINRHHo/K334gIVqoMAxDcH2jdT28czDM2gZKNq+Z3316q6Hw791SgyR 9lPsJR0oyX+v1MqwAC0nqODnF+dgeWwzitJ9hwKrSnQkgp6nM3FQeaMyREOzJpNULAfn 3O9etWxXHHQ34QvE/SPvR8i71zhdfKVx8hwrLYJpT0LiCN4LmwVicYQlTi+H3N57ZLqL wzhjsA46YkkhTHUtPvJEmBIBQKJ2gwe45iUhr12J7kD0tRU2KF44jbuD+uhGDgrmMeCV FdzcZPUKw1vxIgq5uA9qxyfbSqlLv7cdHARzwrJm8orvPaFpsB46d3oNxmnggqltrDCH aMdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pQRPi0Rfj0KQmzmPhiJiboZhtDkwjOqC+3JUM/2tEuI=; b=RLmhMomnVyR55NyEIa8lu+VAkws+j8jF67knPha9KQi/kvy3ThwTQayjhU33dHVbpN EQ7Rl7QMAgOMl7TTOJA9p2il5NrmtCjRimnPrRXNEb6XgU8X+rQ5OFKx6B7zaIu+toBP 94KqxHL7ZjveYxU79VfZafFiNdU+Q7pQEKF8GNnhC4EGcAmdsH39Ot4clL0OfrMuWCmt 1R2pT0I/9iC6RwiJs4z+2uBaZhkRQQ7WSgLfyy8+oJchNBFKP/D8FKrTJTNWK0ZP0mzQ Jl40hZSif5+Qb8YEmcrbm3GSe+j9nB7UDFHuK0mkRo8zVpX6miUASUWKDGmyonnH4SCf f0OQ== X-Gm-Message-State: AOAM533SoLlp2Eyimxx99VNwIb1/ViXO2wN5ha+s77RDq0ycqKSPo+3p 2sJwZp/sV6RHACs1Mkec1P2sJrqEUjsmXvrhxK1ylnHluVhiBZIX X-Google-Smtp-Source: ABdhPJyczdD+jWt6lxjlhz3sBef4p/Px73X5+Ot6UjuVieDoOHDb4in0/PAMb32w/9U73QdXVatCNaTMk07u+0U0wWg= X-Received: by 2002:a05:6602:3429:b0:663:d819:fb31 with SMTP id n41-20020a056602342900b00663d819fb31mr5423680ioz.166.1654275010895; Fri, 03 Jun 2022 09:50:10 -0700 (PDT) MIME-Version: 1.0 From: "Ayush Singh" Date: Fri, 3 Jun 2022 22:19:49 +0530 Message-ID: Subject: Running and Testing Modules and Applications To: edk2-devel-groups-io Content-Type: text/plain; charset="UTF-8" Hello everyone, I wanted to ask everyone how most modules and applications are run/tested in edk2. I will be working on Adding Rust support for edk2 during GSoC and thus will probably have to do a lot of primitive testing. I did look at the EmulationPkg but didn't really understand how to use it. It simply drops me into gdb, although maybe that's what it is supposed to do? There were also some GUI programs (VisualUefi) that can be used in windows, but since I am in Linux, they aren't much useful. I also found a tutorial to run it in a physical machine (https://tait.tech/2021/04/18/uefi-development-environment/), but that seems more for the final testing rather than testing during development. I have also tried using qemu for running applications, and I guess I was somewhat successful by using the script: `https://github.com/Richard-W/uefi-run` to test out uefi applications in qemu. However, it builds a FAT filesystem around the EFI application, so I was wondering if there was a better and simpler way to do it. Ayush Singh