Revision: 2563
Author: janne.t.harkonen
Date: Fri Feb 26 04:45:27 2010
Log: converted to text format
http://code.google.com/p/robotframework/source/detail?r=2563

Added:
 /trunk/atest/testdata/standard_libraries/operating_system/run.txt
Deleted:
 /trunk/atest/testdata/standard_libraries/operating_system/run.html
Modified:
 /trunk/atest/robot/standard_libraries/operating_system/run.txt

=======================================
--- /dev/null
+++ /trunk/atest/testdata/standard_libraries/operating_system/run.txt Fri Feb 26 04:45:27 2010
@@ -0,0 +1,81 @@
+*** Settings ***
+Library         OperatingSystem
+
+*** Variables ***
+${#}  Usage of prog.py: prog.py rc=0 stdout='' stderr='' count=1
+${PROG}  python ${CURDIR}${/}files${/}prog.py
+
+*** Test Cases ***
+Run
+    [Documentation]  Simply run a program without checking anything
+    Run  ${PROG}
+
+Run With RC And Stdout Checks
+    ${rc}  ${stdout} =  Run  ${PROG} 42 hello  rc and stdout
+    Fail Unless Equal  ${stdout}  hello
+    Fail Unless Ints Equal  ${rc}  42
+    ${rc}  ${stdout} =  Run  ${PROG}  Return both RC and output
+    Fail Unless Ints Equal  ${rc}  0
+    Fail Unless Equal  ${stdout}  \
+
+Run With RC Checks
+    Run and Check RC  ${PROG} 42 hello  42
+    Run and Check RC  ${PROG}  0
+    Run and Check RC  ${PROG} -1  255
+    Run and Check RC  ${PROG} 266 hello  10
+    Run and Check RC  ${PROG} 1000000  64
+    Run and Check RC  ${PROG} 256  0
+
+Run With Stdout Checks
+    ${stdout} =  Run  ${PROG} 42 hello
+    Fail Unless Equal  ${stdout}  hello
+    ${stdout} =  Run  ${PROG}  Only stdout is returned
+    Fail Unless Equal  ${stdout}  \
+ Comment Check that trailing newline is removed In Windows echo adds extra space
+    ${stdout} =  Run  echo hello world
+    Should Match Regexp  ${stdout}  ^hello world ?$
+
+Run With Stderr
+ [Documentation] Possible stderr from executed command is redirected to stdout with "2>&1" unless the command has it's own redirect.
+    ${output} =  Run  ${PROG} 42 hello world
+    Fail Unless Regexp Matches  ${output}  ^(hello\nworld|world\nhello)$
+
+Run With Stderr Redirected To Stdout
+ [Documentation] Explicit redirect i.e. exactly same end results as with above test
+    ${output} =  Run  ${PROG} 42 hello world 2>&1
+    Fail Unless Regexp Matches  ${output}  ^(hello\nworld|world\nhello)$
+
+Run With Stderr Redirected To File
+ [Documentation] Stderr is redirected to a file using syntax "2>stderr.txt"
+    ${temp} =  Join Path  ${TEMPDIR}  robot_test_stderr.txt
+    ${stdout} =  Run  ${PROG} 42 hello world 2>${temp}
+    Equals  ${stdout}  hello
+    ${stderr} =  Get File  ${temp}
+    Equals  ${stderr}  world\n
+    [Teardown]  Remove File  ${temp}
+
+Run When Command Writes Lot Of Stdout And Stderr
+    ${stdout} =  Run  ${PROG} 0 out err 20000
+    Length Should Be  ${stdout}  159999
+
+Run And Return RC
+    ${rc} =  Run And Return RC  ${PROG} 42 hello
+    Equals  ${rc}  ${42}
+
+Run And Return RC And Output
+    ${rc}  ${output} =  Run And Return RC And Output  ${PROG} 42 hello
+    Equals  ${rc}  ${42}
+    Equals  ${output}  hello
+
+It Is Possible To Start Background Processes
+    ${output} =  Run  ${PROG} foo bar&
+    Should Contain  ${output}  foo
+    Should Contain  ${output}  bar
+
+*** Keywords ***
+Run And Check RC
+    [Arguments]  ${command}  ${expected}
+    ${rc} =  Run  ${command}  Return only RC
+    ${expected} =  Integer  ${expected}
+    Fail Unless Equal  ${rc}  ${expected}
+
=======================================
--- /trunk/atest/testdata/standard_libraries/operating_system/run.html Thu Sep 11 03:37:19 2008
+++ /dev/null
@@ -1,5002 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-  <meta name="generator" content="HTML Tidy, see www.w3.org">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-  <style type="text/css">
-html { font-family: Arial,Helvetica,sans-serif;
-background-color: white;
-color: black;
-}
-p { max-width: 60em;
-}
-table { border-collapse: collapse;
-empty-cells: show;
-margin: 1em 0em;
-border: 0.1em solid black;
-}
-th, td {
-border-style: solid;
-border-width: 0.05em 0.1em;
-border-color: black;
-padding: 0.1em 0.2em;
-height: 1.5em;
-}
-th {
-background-color: rgb(192, 192, 192);
-color: black;
-border-width: 0.1em;
-font-weight: bold;
-text-align: center;
-text-transform: capitalize;
-letter-spacing: 0.1em;
-}
-/* Widths of named columns */
-col.name {
-width: 10em;
-}
-.action , .value, .arg {
-width: 15em;
-}
-/* Properties for the name column - td:first-child should work in CSS 2.1 avare browsers (tested in Firefox)
-- col.name is against specs but works in IE
-*/
-td:first-child, col.name {
-background-color: rgb(240, 240, 240);
-text-transform: capitalize;
-letter-spacing: 0.1em;
-}
-th { font-style: normal; } /* required for IE */
-
-  </style>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <title>Robot Test Cases</title><link type="text/css" href="resources/css/testdata.css" rel="stylesheet"></head>
-<body>
-
-
-
-
-
-
-
-
-
-
-<h1>Robot Test Cases for Operating System Test Library</h1>
-
-
-
-
-
-
-
-
-
-
-
-<table border="1">
-
-
-
-
-
-
-
-
-
-
- <colgroup span="99"><col class="name"><col class="value" span="4"></colgroup>
-
-  <thead>
-  <tr>
-
-
-
-
-
-
-
-
-
-
-    <th>Setting</th>
-
-
-
-
-
-
-
-
-
-
-    <th>Value</th>
-
-
-
-
-
-
-
-
-
-
-    <th>Value</th>
-
-
-
-
-
-
-
-
-
-
-    <th>value</th>
-
-
-
-
-
-
-
-
-
-
-    <th>Value</th>
-
-
-
-
-
-
-
-
-
-
-  </tr>
-
-
-
-
-
-
-
-
-
-
-  </thead>
-
-  <tbody>
-
-
-
-
-
-
-
-
-
-
-    <tr>
-
-
-
-
-
-
-
-
-
-
-      <td>Library</td>
-
-
-
-
-
-
-
-
-
-
-      <td>OperatingSystem</td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-    </tr>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-  </tbody>
-</table>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<table border="1">
-
-
-
-
-
-
-
-
-
-
- <colgroup span="99"><col class="name"><col class="value" span="4"></colgroup>
-
-  <thead>
-  <tr>
-
-
-
-
-
-
-
-
-
-
-    <th>Variable</th>
-
-
-
-
-
-
-
-
-
-
-    <th>Value</th>
-
-
-
-
-
-
-
-
-
-
-    <th>Value</th>
-
-
-
-
-
-
-
-
-
-
-    <th>Value</th>
-
-
-
-
-
-
-
-
-
-
-    <th>Value</th>
-
-
-
-
-
-
-
-
-
-
-  </tr>
-
-
-
-
-
-
-
-
-
-
-  </thead>
-
-  <tbody>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-    <tr>
-
-
-
-
-
-
-
-
-
-
-      <td>${PROG}</td>
-
-
-
-
-
-
-
-
-
-
-      <td>python ${CURDIR}${/}files${/}prog.py</td>
-
-
-
-
-
-
-
-
-
-
-      <td># usage: prog.py&nbsp;rc stdout stderr<br>
-
-
-
-
-
-
-
-
-
-
- # defaults: rc=0; stdout=stderr=''</td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-    </tr>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-  </tbody>
-</table>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<table border="1">
-
-
-
-
-
-
-
-
-
-
- <colgroup span="99"><col class="name"><col class="action"><col class="arg" span="3"></colgroup>
-
-  <thead>
-  <tr>
-
-
-
-
-
-
-
-
-
-
-    <th>Test Case</th>
-
-
-
-
-
-
-
-
-
-
-    <th>Action</th>
-
-
-
-
-
-
-
-
-
-
-    <th>Argument</th>
-
-
-
-
-
-
-
-
-
-
-    <th>Argument</th>
-
-
-
-
-
-
-
-
-
-
-    <th>Argument</th>
-
-
-
-
-
-
-
-
-
-
-    <th>Argument</th>
-
-
-
-
-
-
-
-
-
-
-  </tr>
-
-
-
-
-
-
-
-
-
-
-  </thead>
-
-  <tbody>
-
-
-
-
-
-
-
-
-
-
-    <tr>
-
-
-
-
-
-
-
-
-
-
-      <td>Run</td>
-
-
-
-
-
-
-
-
-
-
-      <td>[ Document ]</td>
-
-
-
-
-
-
-
-
-
-
-      <td>Simply run a program without checking anything</td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-    </tr>
-
-
-
-
-
-
-
-
-
-
-
-    <tr>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-      <td>Run</td>
-
-
-
-
-
-
-
-
-
-
-      <td>${PROG}</td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-    </tr>
-
-
-
-
-
-
-
-
-
-
-
-    <tr>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
-
-
-
-
-
-
-
-      <td></td>
-
-
-
***The diff for this file has been truncated for email.***
=======================================
--- /trunk/atest/robot/standard_libraries/operating_system/run.txt Fri Feb 26 04:45:04 2010 +++ /trunk/atest/robot/standard_libraries/operating_system/run.txt Fri Feb 26 04:45:27 2010
@@ -1,5 +1,5 @@
 *** Settings ***
-Suite Setup Run Tests ${EMPTY} standard_libraries${/}operating_system${/}run.txt +Suite Setup Run Tests ${EMPTY} standard_libraries/operating_system/run.txt
 Force Tags      regression  jybot  pybot
 Resource        ../../../resources/resource.html

Reply via email to