From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=Run the standard regression tests bundled with the Calc command-line calculator |setup=You'll need a shell. |actions= # Install the <tt>calc</tt> p...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
|description=Run the standard regression tests bundled with the Calc command-line calculator
|description=Run the standard regression tests bundled with the Calc command-line calculator
|setup=You'll need a shell.
|setup=You'll need a shell.
Install the packages {{package|calc}} and {{package|calc-stdrc}}.
|actions=
|actions=
# Install the <tt>calc</tt> package and the optional <tt>calc-stdrc</tt> subpackage.
# From the command line, run <tt>calc -q read /usr/share/calc/regress.cal</tt>. (The <tt>-q</tt> option prevents any startup scripts in your environment from interfering.
# Run <tt>calc -q read /usr/share/calc/regress.cal</tt>. (The <tt>-q</tt> option prevents any startup scripts in your environment from interfering.
# Wait.
# Wait.
|results=
|results=
# A large number of tests will go by. This should take about three seconds.
# A large number of tests will go by. This should take about three seconds.
# You should see the line <tt>9997: passed all tests  /\../\</tt>
# You should see the line <tt>9997: passed all tests  /\../\</tt>
# And then the line <tt>9998: freeglobals()</tt>
# And then the line <tt>9998: freeglobals()</tt>
# and finally, <tt>9999: Ending regression tests</tt>
# and finally, <tt>9999: Ending regression tests</tt>
Note that test suite failure will '''''not''''' cause the calc command to exit with an error code.
}}
}}


[[Category:Test_Cases|Y]]
[[Category:Test_Cases|C]]
[[Category:Package_calc_test_cases]]
[[Category:Package_calc_test_cases]]

Latest revision as of 22:07, 7 March 2017

Description

Run the standard regression tests bundled with the Calc command-line calculator

Setup

You'll need a shell.

Install the packages calc and calc-stdrc.

How to test

  1. From the command line, run calc -q read /usr/share/calc/regress.cal. (The -q option prevents any startup scripts in your environment from interfering.
  2. Wait.

Expected Results

  1. A large number of tests will go by. This should take about three seconds.
  2. You should see the line 9997: passed all tests /\../\
  3. And then the line 9998: freeglobals()
  4. and finally, 9999: Ending regression tests


Note that test suite failure will not cause the calc command to exit with an error code.