8418bc8f20aa613bacdd584730fff10313cf5df7
[validation.git] / tests / os / ltp / ltp.robot
1 ##############################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property.                             #
3 # Copyright (c) 2019 Nokia.                                                  #
4 #                                                                            #
5 # Licensed under the Apache License, Version 2.0 (the "License");            #
6 # you maynot use this file except in compliance with the License.            #
7 #                                                                            #
8 # You may obtain a copy of the License at                                    #
9 #       http://www.apache.org/licenses/LICENSE-2.0                           #
10 #                                                                            #
11 # Unless required by applicable law or agreed to in writing, software        #
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
14 # See the License for the specific language governing permissions and        #
15 # limitations under the License.                                             #
16 ##############################################################################
17
18 *** Settings ***
19 Documentation     Validation, robustness and stability of Linux
20 Library           SSHLibrary
21 Library           OperatingSystem
22 Library           BuiltIn
23 Library           Process
24 Resource          variables.resource
25 Suite Setup       Open Connection And Log In
26 Suite Teardown    Close All Connections
27
28 *** Variables ***
29 ${LOG}            ${LOG_PATH}${/}${SUITE_NAME.replace(' ','_')}.log
30
31
32 *** Test Cases ***
33 #Run whole ltp test suite
34 #    [Documentation]         Wait ~5hrs to complete 2536 tests
35 #    ${result}=              Run Process       ./runltp     shell=yes     cwd=/opt/ltp     stdout=${LOG}
36 #    Append To File          ${LOG}  ${result}${\n}
37 #    Sleep                   2s
38 #    Should Contain          ${result.stdout}   failed   0
39
40 #Run ltp syscalls test suite
41 #    [Documentation]         Wait ~45m for syscalls to complete
42 #    ${result}=              Run Process       ./runltp -f syscalls      shell=yes     cwd=/opt/ltp     stdout=${LOG}
43 #    Append To File          ${LOG}  ${result}${\n}
44 #    Sleep                   2s
45 #    Should Contain          ${result.stdout}   failed   0
46
47 Run ltp syscalls madvise
48     [Documentation]         Wait ~1m for madvise01-10 to complete
49     ${result}=              Run Process       ./runltp -f syscalls -s madvise     shell=yes     cwd=/opt/ltp     stdout=${LOG}
50     Append To File          ${LOG}  ${result}${\n}
51     Sleep                   2s
52     Should Contain          ${result.stdout}   failed   0
53
54 *** Keywords ***
55 Open Connection And Log In
56   Open Connection       ${HOST}
57   Login                 ${ROOTUSER}     ${ROOTPSWD}
58