aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2017-11-08 10:11:38 -0800
committerArthur She <arthur.she@linaro.org>2017-11-08 10:11:38 -0800
commit75bef9c97ffa44d583371e41217c56b246e6d718 (patch)
tree6931881e36f3f93eace9c312fb5b710976250741
parent5df63fc182bb7434e7ce6a774913e78ca89e5b3c (diff)
Add weston-simple-test
-rw-r--r--weston-simple-test/resource.robot28
-rw-r--r--weston-simple-test/weston-simple-egl-test.robot23
2 files changed, 51 insertions, 0 deletions
diff --git a/weston-simple-test/resource.robot b/weston-simple-test/resource.robot
new file mode 100644
index 0000000..5d72caa
--- /dev/null
+++ b/weston-simple-test/resource.robot
@@ -0,0 +1,28 @@
+*** Settings ***
+Documentation A resource file with reusable keywords and variables for xtest.
+Library SSHLibrary
+Library String
+
+*** Variables ***
+${TARGET} 192.168.29.143
+${USERNAME} linaro
+${PASSWORD} ${EMPTY}
+${TIMEOUT} 4m
+${TEST_PROGRAM} /usr/bin/weston-simple-egl
+
+*** Keywords ***
+Open Connection And Log In
+ Open Connection ${TARGET}
+ Login ${USERNAME} ${PASSWORD}
+ Set Client Configuration timeout=${TIMEOUT} prompt=hikey:~$
+ Write su
+
+Run Test-1
+ Write ${TEST_PROGRAM} -f
+
+Run Test-2
+ Write ${TEST_PROGRAM} -f -b
+
+Terminate The Program
+ ${ctrl_c} Evaluate chr(int(3))
+ Write Bare ${ctrl_c}
diff --git a/weston-simple-test/weston-simple-egl-test.robot b/weston-simple-test/weston-simple-egl-test.robot
new file mode 100644
index 0000000..360fa8c
--- /dev/null
+++ b/weston-simple-test/weston-simple-egl-test.robot
@@ -0,0 +1,23 @@
+*** Settings ***
+Documentation This test executing "weston-simple-test" on a remote machine
+... and getting the test result.
+Suite Setup Open Connection And Log In
+Suite Teardown Close All Connections
+Resource resource.robot
+
+*** Test Cases ***
+Run-weston-simple-test-1
+ [Documentation] Run test "weston-simple-test -f"
+ Run Test-1
+ Sleep 18s
+ Terminate The Program
+ ${output} Read
+ Should Contain ${output} frames in 5 seconds
+
+Run-weston-simple-test-2
+ [Documentation] Run test "weston-simple-test -f -b"
+ Run Test-2
+ Sleep 18s
+ Terminate The Program
+ ${output} Read
+ Should Contain ${output} frames in 5 seconds