Add integration test with kvm enabled

This commit is contained in:
Qingsong Chen 2024-07-16 02:17:49 +00:00 committed by Tate, Hongliang Tian
parent 3d2a0c33af
commit 4ae59a8f2e
1 changed files with 13 additions and 11 deletions

View File

@ -48,7 +48,9 @@ jobs:
if: github.event_name == 'push' || github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 30
container: asterinas/asterinas:0.6.2
container:
image: asterinas/asterinas:0.6.2
options: --device=/dev/kvm
steps:
- run: echo "Running in asterinas/asterinas:0.6.2"
@ -56,42 +58,42 @@ jobs:
- name: Boot Test (Multiboot)
id: boot_test_mb
run: make run AUTO_TEST=boot ENABLE_KVM=0 BOOT_PROTOCOL=multiboot RELEASE=1
run: make run AUTO_TEST=boot ENABLE_KVM=1 BOOT_PROTOCOL=multiboot RELEASE=1
- name: Boot Test (Multiboot2)
id: boot_test_mb2
run: make run AUTO_TEST=boot ENABLE_KVM=0 BOOT_PROTOCOL=multiboot2 RELEASE=1
run: make run AUTO_TEST=boot ENABLE_KVM=1 BOOT_PROTOCOL=multiboot2 RELEASE=1
- name: Boot Test (MicroVM)
id: boot_test_microvm
run: make run AUTO_TEST=boot ENABLE_KVM=0 SCHEME=microvm RELEASE=1
run: make run AUTO_TEST=boot ENABLE_KVM=1 SCHEME=microvm RELEASE=1
- name: Boot Test (Linux Legacy 32-bit Boot Protocol)
id: boot_test_linux_legacy32
run: make run AUTO_TEST=boot ENABLE_KVM=0 BOOT_PROTOCOL=linux-legacy32 RELEASE=1
run: make run AUTO_TEST=boot ENABLE_KVM=1 BOOT_PROTOCOL=linux-legacy32 RELEASE=1
- name: Boot Test (Linux EFI Handover Boot Protocol)
id: boot_test_linux_efi_handover64
run: make run AUTO_TEST=boot ENABLE_KVM=0 BOOT_PROTOCOL=linux-efi-handover64 RELEASE=1
run: make run AUTO_TEST=boot ENABLE_KVM=1 BOOT_PROTOCOL=linux-efi-handover64 RELEASE=1
- name: Syscall Test (Linux EFI Handover Boot Protocol)
id: syscall_test
run: make run AUTO_TEST=syscall ENABLE_KVM=0 BOOT_PROTOCOL=linux-efi-handover64 RELEASE=1
run: make run AUTO_TEST=syscall ENABLE_KVM=1 BOOT_PROTOCOL=linux-efi-handover64 RELEASE=1
- name: Syscall Test at Ext2 (MicroVM)
id: syscall_test_at_ext2
run: make run AUTO_TEST=syscall SYSCALL_TEST_DIR=/ext2 ENABLE_KVM=0 SCHEME=microvm RELEASE=1
run: make run AUTO_TEST=syscall SYSCALL_TEST_DIR=/ext2 ENABLE_KVM=1 SCHEME=microvm RELEASE=1
- name: Syscall Test at Exfat
- name: Syscall Test at Exfat and without KVM enabled
id: syscall_test_at_exfat_linux
run: |
make run AUTO_TEST=syscall \
SYSCALL_TEST_DIR=/exfat EXTRA_BLOCKLISTS_DIRS=blocklists.exfat \
ENABLE_KVM=0 BOOT_PROTOCOL=linux-efi-handover64 RELEASE=1
- name: General Test (Linux EFI Handover Boot Protocol)
id: test_linux
run: make run AUTO_TEST=test ENABLE_KVM=0 BOOT_PROTOCOL=linux-efi-handover64 RELEASE=1
run: make run AUTO_TEST=test ENABLE_KVM=1 BOOT_PROTOCOL=linux-efi-handover64 RELEASE=1
integration-test-tdx:
if: github.event_name == 'schedule'