mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-15 16:26:48 +00:00
Convert vsock ci to manual trigger
This commit is contained in:
parent
9f67fcdc58
commit
7694c5a6b8
2
.github/workflows/kernel_test.yml
vendored
2
.github/workflows/kernel_test.yml
vendored
@ -82,4 +82,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Regression Test (Linux EFI Handover Boot Protocol)
|
- name: Regression Test (Linux EFI Handover Boot Protocol)
|
||||||
id: regression_test_linux
|
id: regression_test_linux
|
||||||
run: make run AUTO_TEST=regression ENABLE_KVM=0 BOOT_PROTOCOL=multiboot2 RELEASE=1
|
run: make run AUTO_TEST=regression ENABLE_KVM=0 BOOT_PROTOCOL=linux-efi-handover64 RELEASE=1
|
||||||
|
5
.github/workflows/vsock_interaction.yml
vendored
5
.github/workflows/vsock_interaction.yml
vendored
@ -1,10 +1,7 @@
|
|||||||
name: Vsock Interaction
|
name: Vsock Interaction
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
workflow_dispatch:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
vsock-test:
|
vsock-test:
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
# SPDX-License-Identifier: MPL-2.0
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
# To successfully run the vsock test, you should
|
||||||
|
# 1. Run vsock server binding port 1234 on the host, before running ./vsock_client
|
||||||
|
# 2. Run vsock client connecting (cid,port)=(3,4321) on the host, after running ./vsock_server
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
VSOCK_DIR=/regression/vsock
|
VSOCK_DIR=/regression/vsock
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# This script is used to generate QEMU arguments for OSDK.
|
# This script is used to generate QEMU arguments for OSDK.
|
||||||
# The positional argument $1 is the scheme.
|
# The positional argument $1 is the scheme.
|
||||||
# A switch "-ovmf" can be passed as an argument to enable OVMF.
|
# A switch "-ovmf" can be passed as an argument to enable OVMF.
|
||||||
# The positional argument $2 can be passed as "vsock" to trigger vsock module.
|
# The enrivonmental variable VSOCK can be passed as 1 to trigger vsock module.
|
||||||
|
|
||||||
RAND_PORT_NUM1=$(shuf -i 1024-65535 -n 1)
|
RAND_PORT_NUM1=$(shuf -i 1024-65535 -n 1)
|
||||||
RAND_PORT_NUM2=$(shuf -i 1024-65535 -n 1)
|
RAND_PORT_NUM2=$(shuf -i 1024-65535 -n 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user