From Fedora Project Wiki

Revision as of 22:02, 7 March 2017 by Mattdm (talk | contribs)

Description

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

Setup

You'll need a shell.

Install the packages Package-x-generic-16.pngcalc and Package-x-generic-16.pngcalc-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 /\../\
  1. And then the line 9998: freeglobals()
  2. and finally, 9999: Ending regression tests



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