-
Notifications
You must be signed in to change notification settings - Fork 13
194 lines (148 loc) · 7.12 KB
/
integration-tdx.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:
name: Ingetration Test on TDX Server
env:
AS: nasm
RUST_TOOLCHAIN: nightly-2023-08-28
TOOLCHAIN_PROFILE: minimal
jobs:
virtio_vsock:
name: Run TDX Integration Test (virtio-vsock)
runs-on: [self-hosted, tdx]
# timeout-minutes: 30
steps:
# Install first since it's needed to build NASM
# - name: Install LLVM and Clang
# uses: KyleMayes/install-llvm-action@v1
# with:
# version: "10.0"
# directory: ${{ runner.temp }}/llvm
# - name: Install NASM
# uses: ilammy/setup-nasm@v1
# - name: Install tools for sgx lib
# run: sudo dnf group install 'Development Tools' | sudo dnf --enablerepo=powertools install ocaml ocaml-ocamlbuild wget rpm-build pkgcon
- name: Checkout sources
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build Migration TD binary
run: bash sh_script/build_final.sh -t migtd -c -a on
- name: Run Tests - Test Migration TD
run: |
sudo bash sh_script/integration_tdx.sh -d target/release/migtd.bin -s target/release/migtd.bin
- name: Run Tests - Cycle Test Migration TD (20)
run: |
sudo bash sh_script/integration_tdx.sh -d target/release/migtd.bin -s target/release/migtd.bin -n 20
- name: Build all test binaries
run: bash sh_script/build_final.sh -t test -c -a on
- name: Run Tests - Run test TD payload
run: |
sudo bash sh_script/integration_tdx.sh -f Bin/final-test.bin
- name: Run Tests - Run migration test case 001
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_001.bin -s Bin/migtd_001.bin
- name: Run Tests - Run migration test case 002
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_002.bin -s Bin/migtd_001.bin
- name: Run Tests - Run migration test case 003
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_003.bin -s Bin/migtd_001.bin
- name: Run Tests - Run migration test case 004
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_004.bin -s Bin/migtd_004.bin
- name: Run Tests - Run migration test case 005
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_005.bin -s Bin/migtd_005.bin
- name: Run Tests - Run migration test case 006
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_006.bin -s Bin/migtd_006.bin
- name: Run Tests - Run migration test case 007
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_007.bin -s Bin/migtd_no.bin
- name: Run Tests - Run migration test case 008
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_008.bin -s Bin/migtd_no.bin
- name: Run Tests - Run migration test case 009
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_009.bin -s Bin/migtd_009.bin
- name: Run Tests - Run migration test case 010
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_010.bin -s Bin/migtd_010.bin
- name: Run Tests - Run migration test case 011
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_011.bin -s Bin/migtd_011.bin
- name: Run Tests - Run migration test case 012
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_dst_012.bin -s Bin/migtd_src_012.bin
- name: Run Tests - Run migration test case 013
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_dst_013.bin -s Bin/migtd_src_013.bin
- name: Run Tests - Run migration test case 014
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_dst_014.bin -s Bin/migtd_src_014.bin
virtio_serial:
name: Run TDX Integration Test (virtio-serial)
runs-on: [self-hosted, tdx]
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build Migration TD binary
run: bash sh_script/build_final.sh -t migtd -d serial -c -a on
- name: Run Tests - Test Migration TD
run: |
sudo bash sh_script/integration_tdx.sh -d target/release/migtd.bin -s target/release/migtd.bin -t serial
- name: Run Tests - Cycle Test Migration TD (20)
run: |
sudo bash sh_script/integration_tdx.sh -d target/release/migtd.bin -s target/release/migtd.bin -t serial -n 20
- name: Build all test binaries
run: bash sh_script/build_final.sh -t test -c -a on -d serial
- name: Run Tests - Run migration test case 001
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_001.bin -s Bin/migtd_001.bin -t serial
- name: Run Tests - Run migration test case 002
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_002.bin -s Bin/migtd_001.bin -t serial
- name: Run Tests - Run migration test case 003
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_003.bin -s Bin/migtd_001.bin -t serial
- name: Run Tests - Run migration test case 004
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_004.bin -s Bin/migtd_004.bin -t serial
- name: Run Tests - Run migration test case 005
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_005.bin -s Bin/migtd_005.bin -t serial
- name: Run Tests - Run migration test case 006
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_006.bin -s Bin/migtd_006.bin -t serial
- name: Run Tests - Run migration test case 007
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_007.bin -s Bin/migtd_no.bin -t serial
- name: Run Tests - Run migration test case 008
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_008.bin -s Bin/migtd_no.bin -t serial
- name: Run Tests - Run migration test case 009
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_009.bin -s Bin/migtd_009.bin -t serial
- name: Run Tests - Run migration test case 010
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_010.bin -s Bin/migtd_010.bin -t serial
- name: Run Tests - Run migration test case 011
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_011.bin -s Bin/migtd_011.bin -t serial
- name: Run Tests - Run migration test case 012
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_dst_012.bin -s Bin/migtd_src_012.bin -t serial
- name: Run Tests - Run migration test case 013
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_dst_013.bin -s Bin/migtd_src_013.bin -t serial
- name: Run Tests - Run migration test case 014
run: |
sudo bash sh_script/integration_tdx.sh -d Bin/migtd_dst_014.bin -s Bin/migtd_src_014.bin -t serial