Add mandatory LTP tests 61/1461/1
authorIndumathi Buddi <ib405q@att.com>
Mon, 26 Aug 2019 03:48:53 +0000 (03:48 +0000)
committerIndumathi Buddi <ib405q@att.com>
Mon, 26 Aug 2019 03:50:18 +0000 (03:50 +0000)
Signed-off-by: Indumathi Buddi <ib405q@att.com>
Change-Id: I5fba2485b375d7fec42b8e4963b97a98a1158aba

tests/os/ltp/ltp.robot [new file with mode: 0644]
tests/os/ltp/variables.resource [new file with mode: 0644]

diff --git a/tests/os/ltp/ltp.robot b/tests/os/ltp/ltp.robot
new file mode 100644 (file)
index 0000000..8418bc8
--- /dev/null
@@ -0,0 +1,58 @@
+##############################################################################
+# Copyright (c) 2019 AT&T Intellectual Property.                             #
+# Copyright (c) 2019 Nokia.                                                  #
+#                                                                            #
+# Licensed under the Apache License, Version 2.0 (the "License");            #
+# you maynot use this file except in compliance with the License.            #
+#                                                                            #
+# You may obtain a copy of the License at                                    #
+#       http://www.apache.org/licenses/LICENSE-2.0                           #
+#                                                                            #
+# Unless required by applicable law or agreed to in writing, software        #
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
+# See the License for the specific language governing permissions and        #
+# limitations under the License.                                             #
+##############################################################################
+
+*** Settings ***
+Documentation     Validation, robustness and stability of Linux
+Library           SSHLibrary
+Library           OperatingSystem
+Library           BuiltIn
+Library           Process
+Resource          variables.resource
+Suite Setup       Open Connection And Log In
+Suite Teardown    Close All Connections
+
+*** Variables ***
+${LOG}            ${LOG_PATH}${/}${SUITE_NAME.replace(' ','_')}.log
+
+
+*** Test Cases ***
+#Run whole ltp test suite
+#    [Documentation]         Wait ~5hrs to complete 2536 tests
+#    ${result}=              Run Process       ./runltp     shell=yes     cwd=/opt/ltp     stdout=${LOG}
+#    Append To File          ${LOG}  ${result}${\n}
+#    Sleep                   2s
+#    Should Contain          ${result.stdout}   failed   0
+
+#Run ltp syscalls test suite
+#    [Documentation]         Wait ~45m for syscalls to complete
+#    ${result}=              Run Process       ./runltp -f syscalls      shell=yes     cwd=/opt/ltp     stdout=${LOG}
+#    Append To File          ${LOG}  ${result}${\n}
+#    Sleep                   2s
+#    Should Contain          ${result.stdout}   failed   0
+
+Run ltp syscalls madvise
+    [Documentation]         Wait ~1m for madvise01-10 to complete
+    ${result}=              Run Process       ./runltp -f syscalls -s madvise     shell=yes     cwd=/opt/ltp     stdout=${LOG}
+    Append To File          ${LOG}  ${result}${\n}
+    Sleep                   2s
+    Should Contain          ${result.stdout}   failed   0
+
+*** Keywords ***
+Open Connection And Log In
+  Open Connection       ${HOST}
+  Login                 ${ROOTUSER}     ${ROOTPSWD}
+
diff --git a/tests/os/ltp/variables.resource b/tests/os/ltp/variables.resource
new file mode 100644 (file)
index 0000000..6f46166
--- /dev/null
@@ -0,0 +1,23 @@
+##############################################################################
+# Copyright (c) 2019 AT&T Intellectual Property.                             #
+# Copyright (c) 2019 Nokia.                                                  #
+#                                                                            #
+# Licensed under the Apache License, Version 2.0 (the "License");            #
+# you maynot use this file except in compliance with the License.            #
+#                                                                            #
+# You may obtain a copy of the License at                                    #
+#       http://www.apache.org/licenses/LICENSE-2.0                           #
+#                                                                            #
+# Unless required by applicable law or agreed to in writing, software        #
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
+# See the License for the specific language governing permissions and        #
+# limitations under the License.                                             #
+##############################################################################
+
+*** Variables ***
+# Manual test: robot  ltp.robot
+
+${HOST}        aknode109    # cluster's master node address
+${ROOTUSER}    root         # Required root user to log in to the host
+${ROOTPSWD}    root_passwd  # Required root password to log in to the host