-
Notifications
You must be signed in to change notification settings - Fork 12
167 lines (157 loc) · 3.64 KB
/
qa_test.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
name: QA Test
on:
- pull_request
- workflow_dispatch
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Build with test flag
run: |
make TEST_FLAG=-DTESTING
ls
- run: |
mkdir artifacts
- uses: actions/upload-artifact@master
with:
name: build-artifacts
path: |
*.so
*.so.*
cpu-test:
name: CPU Test
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@master
with:
name: build-artifacts
- name: Run CPU tests
run: |
./tests/CPU/cpu.sh
- uses: actions/upload-artifact@master
if: failure()
with:
name: run-artifacts
path: |
tests/CPU/cpu_info.orig
tests/CPU/cpu_info.txt
vm-test:
name: VM Test
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@master
with:
name: build-artifacts
- name: Run VM tests
run: |
./tests/VM/vm.sh
- uses: actions/upload-artifact@master
if: failure()
with:
name: run-artifacts
path: |
tests/VM/vm_info.orig
tests/VM/vm_info.txt
mem-test:
name: MEM Test
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@master
with:
name: build-artifacts
- name: Run MEM tests
run: |
./tests/MEM/mem.sh
- uses: actions/upload-artifact@master
if: failure()
with:
name: run-artifacts
path: |
tests/MEM/mem_info.orig
tests/MEM/mem_info.txt
fs-test:
name: FS Test
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@master
with:
name: build-artifacts
- name: Run FS tests
run: |
./tests/FS/fs.sh
- uses: actions/upload-artifact@master
if: failure()
with:
name: run-artifacts
path: |
tests/FS/fs_info.orig
tests/FS/fs_info.txt
route-test:
name: Route Test
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@master
with:
name: build-artifacts
- name: Run Route tests
run: |
./tests/ROUTE/route.sh
- uses: actions/upload-artifact@master
if: failure()
with:
name: run-artifacts
path: |
tests/ROUTE/route_info.orig
tests/ROUTE/route_info.txt
arp-test:
name: ARP Test
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@master
with:
name: build-artifacts
- name: Run ARP tests
run: |
./tests/ARP/arp.sh
- uses: actions/upload-artifact@master
if: failure()
with:
name: run-artifacts
path: |
tests/ARP/arp_info.orig
tests/ARP/arp_info.txt
stat-test:
name: STAT Test
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@master
with:
name: build-artifacts
- name: Run STAT tests
run: |
./tests/STAT/stat.sh
- uses: actions/upload-artifact@master
if: failure()
with:
name: run-artifacts
path: |
tests/STAT/stat_info.orig
tests/STAT/stat_info.txt