forked from linaro-mmwg/lhg-oe-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptee-xtest.robot
More file actions
45 lines (37 loc) · 1.38 KB
/
optee-xtest.robot
File metadata and controls
45 lines (37 loc) · 1.38 KB
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
*** Settings ***
Documentation This test executing OPTEE "xtestx" on a remote machine
... and getting the test result.
Suite Setup Run Keywords Open Connection And Log In Run Tee Supplicant
Suite Teardown Run Keywords Terminate Tee Supplicant Close All Connections
Library SSHLibrary
Library String
*** Variables ***
${HOST} 192.168.29.110
${USERNAME} root
${PASSWORD} ${EMPTY}
${HIKEY_PROMPT} root@hikey:~#
*** Test Cases ***
Execute xtest regression test
[Documentation] Execute "xtest -t regression"
Set Client Configuration timeout=40s prompt=${HIKEY_PROMPT}
Run Regression Test
${result} Read Until Prompt
Should Contain ${result} TEE test application done!
Execute xtest benchmark test
[Documentation] Execute "xtest -t benchmark"
Set Client Configuration timeout=10s prompt=${HIKEY_PROMPT}
Run Benchmark Test
${result} Read Until Prompt
Should Contain ${result} TEE test application done!
*** Keywords ***
Open Connection And Log In
Open Connection ${HOST}
Login ${USERNAME} ${PASSWORD}
Run Tee Supplicant
Start Command /usr/bin/tee-supplicant
Terminate Tee Supplicant
Start Command pkill tee-supplicant
Run Regression Test
write xtest -t regression
Run Benchmark Test
write xtest -t benchmark