Skip to content

Commit

Permalink
OvmfPkg/PlatformCI: Add new JOB in .yml of OvmfPkg PlatformCI
Browse files Browse the repository at this point in the history
Add new job like OVMF_X64_DEBUG_UNIT_TEST in OvmfPkg PlatformCI
.yml file. New parameter unit_test_list is used to specify Shell
Unit Test list which needs to build and run. Format for this
input should be:'-u ModulePath1:DscPath1,ModulePath2:DscPath2'
or '-u ModulePath1:DscPath1 -u ModulePath2:DscPath2'.
(Path is edk2 workspace relative)

Signed-off-by: Dun Tan <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Jordan Justen <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Ray Ni <[email protected]>
  • Loading branch information
td36 committed Nov 22, 2022
1 parent 9e36706 commit 465d694
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
vm_image: 'ubuntu-18.04'
should_run: true
run_flags: "MAKE_STARTUP_NSH=TRUE QEMU_HEADLESS=TRUE"
unit_test_list: ''

#Use matrix to speed up the build process
strategy:
Expand Down Expand Up @@ -55,6 +56,15 @@ jobs:
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)
OVMF_X64_DEBUG_UNIT_TEST:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: ""
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)
# unit_test_list should be the format: '-u ModulePath1:DscPath1,ModulePath2:DscPath2' or '-u ModulePath1:DscPath1 -u ModulePath2:DscPath2'.(Path is workspace relative)
unit_test_list: ''
OVMF_X64_RELEASE:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Expand Down Expand Up @@ -187,6 +197,7 @@ jobs:
build_file: $(Build.File)
build_flags: $(Build.Flags)
run_flags: $(Run.Flags)
unit_test_list: $(unit_test_list)
extra_install_step:
- bash: sudo apt-get install qemu
displayName: Install qemu
Expand Down
11 changes: 11 additions & 0 deletions OvmfPkg/PlatformCI/.azurepipelines/Windows-VS2019.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
vm_image: 'windows-2019'
should_run: true
run_flags: "MAKE_STARTUP_NSH=TRUE QEMU_HEADLESS=TRUE"
unit_test_list : ''

#Use matrix to speed up the build process
strategy:
Expand Down Expand Up @@ -54,6 +55,15 @@ jobs:
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)
OVMF_X64_DEBUG_UNIT_TEST:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Build.Flags: ""
Build.Target: "DEBUG"
Run.Flags: $(run_flags)
Run: $(should_run)
# unit_test_list should be the format: '-u ModulePath1:DscPath1,ModulePath2:DscPath2' or '-u ModulePath1:DscPath1 -u ModulePath2:DscPath2'.(Path is workspace relative)
unit_test_list: ''
OVMF_X64_RELEASE:
Build.File: "$(package)/PlatformCI/PlatformBuild.py"
Build.Arch: "X64"
Expand Down Expand Up @@ -133,6 +143,7 @@ jobs:
build_file: $(Build.File)
build_flags: $(Build.Flags)
run_flags: $(Run.Flags)
unit_test_list: $(unit_test_list)
extra_install_step:
- powershell: choco install qemu --version=2021.5.5; Write-Host "##vso[task.prependpath]c:\Program Files\qemu"
displayName: Install QEMU and Set QEMU on path # friendly name displayed in the UI
Expand Down

0 comments on commit 465d694

Please sign in to comment.