-
Notifications
You must be signed in to change notification settings - Fork 0
186 lines (165 loc) · 6.43 KB
/
hw_rpi3.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
name: Hardware RPI3
on:
workflow_dispatch:
workflow_call:
secrets:
ORG_CLONE_PRV_SUBM:
required: true
permissions:
contents: read
concurrency:
group: ci-rpi3-hw
env:
BUILD_PLAT: "rpi3"
TEST_PLAT: "rpi3-ci"
PLAT_IP: "10.178.169.40"
GATEWAY_IP: "10.178.169.33"
RUNNER_IP: "10.70.192.3"
jobs:
demos_and_tests:
#single step as hw tests are not parallelizable & env setup takes a while
runs-on: self-hosted
steps:
# preparation
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.ORG_CLONE_PRV_SUBM }}
submodules: 'recursive'
path: 'trentos'
- name: Test prepare
run: trentos/sdk/scripts/open_trentos_build_env.sh -d "-e BUILD_PLATFORM=${{ env.BUILD_PLAT }}" trentos/build.sh test-prepare
working-directory: ${{ github.workspace }}
- name: Retrieve_Ip
id: retrieve_ip
run: echo "ip_address=$(hostname -I | awk '{print $1}')" >> $GITHUB_OUTPUT
- name: Claim Hardware
run: /usr/local/libexec/setup_second_stage/claim_hardware.sh ${{ env.BUILD_PLAT }}
# tested: reliable
- name: demo_hello_world
if: always()
uses: TRENT-OS/trentos/.github/actions/demo_hello_world@integration
with:
BUILD_PLAT: ${{ env.BUILD_PLAT }}
TEST_PLAT: ${{ env.TEST_PLAT }}
# tested: reliable
- name: test_certparser
if: always()
uses: TRENT-OS/trentos/.github/actions/test_certparser@integration
with:
BUILD_PLAT: ${{ env.BUILD_PLAT }}
TEST_PLAT: ${{ env.TEST_PLAT }}
# tested: fails (log output is messed up and strings cant be found. Test runs fine)
# reason: Test fails du to multiple components simulatnously writing on the output uart.
# the different messages interrupt each other and the string matchin doesnt work because of this.
# - name: test_certserver
# if: always()
# uses: TRENT-OS/trentos/.github/actions/test_certserver@integration
# with:
# BUILD_PLAT: ${{ env.BUILD_PLAT }}
# TEST_PLAT: ${{ env.TEST_PLAT }}
#tested: fails (test completes fine, but output seems to be messed up)
# test takes forever to fail
#- name: test_config_server
# if: always()
# uses: TRENT-OS/trentos/.github/actions/test_config_server@integration
# with:
# BUILD_PLAT: ${{ env.BUILD_PLAT }}
# TEST_PLAT: ${{ env.TEST_PLAT }}
#tested: unreliable (most tests pass, a random few dont(amount and which tests is random))
# in most cases some random tests fail due to inability to find success log string
#- name: test_crypto_api
# if: always()
# uses: TRENT-OS/trentos/.github/actions/test_crypto_api@integration
# with:
# BUILD_PLAT: ${{ env.BUILD_PLAT }}
# TEST_PLAT: ${{ env.TEST_PLAT }}
#tested: reliable
#- name: test_cryptoserver
# if: always()
# uses: TRENT-OS/trentos/.github/actions/test_cryptoserver@integration
# with:
# BUILD_PLAT: ${{ env.BUILD_PLAT }}
# TEST_PLAT: ${{ env.TEST_PLAT }}
# tested: reliable
- name: test_entropysource
if: always()
uses: TRENT-OS/trentos/.github/actions/test_entropysource@integration
with:
BUILD_PLAT: ${{ env.BUILD_PLAT }}
TEST_PLAT: ${{ env.TEST_PLAT }}
# tested: reliable
- name: test_filesystem
if: always()
uses: TRENT-OS/trentos/.github/actions/test_filesystem@integration
with:
BUILD_PLAT: ${{ env.BUILD_PLAT }}
TEST_PLAT: ${{ env.TEST_PLAT }}
# tested: reliable
- name: test_keystore
if: always()
uses: TRENT-OS/trentos/.github/actions/test_keystore@integration
with:
BUILD_PLAT: ${{ env.BUILD_PLAT }}
TEST_PLAT: ${{ env.TEST_PLAT }}
# tested: fails
# seems like some strings are not found
# some match statements seem to fail these look a bit strange
#- name: test_logserver
# if: always()
# uses: TRENT-OS/trentos/.github/actions/test_logserver@integration
# with:
# BUILD_PLAT: ${{ env.BUILD_PLAT }}
# TEST_PLAT: ${{ env.TEST_PLAT }}
#tested: ? THIS NEEDS WORK and probably needs to be split into multiple tests
# tested: tcp_server: unreliable Most tests pass, 3 consistently fail
#- name: test_network_api_tcp_server
# if: always()
# uses: TRENT-OS/trentos/.github/actions/test_network_api@integration
# with:
# TEST_CONFIG: "tcp_server"
# BUILD_PLAT: ${{ env.BUILD_PLAT }}
# TEST_PLAT: ${{ env.TEST_PLAT }}
# PLAT_IP: ${{ env.PLAT_IP }}
# GATEWAY_IP: ${{ env.GATEWAY_IP }}
# RUNNER_IP: ${{ steps.retrieve_ip.outputs.ip_address }}
- name: test_network_api_tcp_client_single_socket
if: always()
uses: TRENT-OS/trentos/.github/actions/test_network_api@integration
with:
TEST_CONFIG: "tcp_client_single_socket"
BUILD_PLAT: ${{ env.BUILD_PLAT }}
TEST_PLAT: ${{ env.TEST_PLAT }}
PLAT_IP: ${{ env.PLAT_IP }}
GATEWAY_IP: ${{ env.GATEWAY_IP }}
RUNNER_IP: ${{ steps.retrieve_ip.outputs.ip_address }}
# tested: fails
# normal log rambling as well as some non supported stuff such as chanmux tests, needs more digging
#test_storage_interface:
# needs: test_logserver
# if: always()
# uses: TRENT-OS/trentos/.github/actions/test_storage_interface@integration
# with:
# BUILD_PLAT: ${{ env.BUILD_PLAT }}
# TEST_PLAT: ${{ env.TEST_PLAT }}
# tested: reliable
- name: test_timeserver
if: always()
uses: TRENT-OS/trentos/.github/actions/test_timeserver@integration
with:
BUILD_PLAT: ${{ env.BUILD_PLAT }}
TEST_PLAT: ${{ env.TEST_PLAT }}
# tested: fails
# - name: test_tls_api
# if: always()
# uses: TRENT-OS/trentos/.github/actions/test_tls_api@integration
# with:
# BUILD_PLAT: ${{ env.BUILD_PLAT }}
# TEST_PLAT: ${{ env.TEST_PLAT }}
#tested: fails to compile: missing if_OS_Tls.camkes.h
#- name: test_tlsserver
# if: always()
# uses: TRENT-OS/trentos/.github/actions/test_tls_server@integration
# with:
# BUILD_PLAT: ${{ env.BUILD_PLAT }}
# TEST_PLAT: ${{ env.TEST_PLAT }}