Skip to content

Commit

Permalink
no bug - doc/nspr: adjust the way to run tests r=kaie DONTBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Jul 13, 2024
1 parent 6503102 commit 4e16b54
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions docs/nspr/running_nspr_tests.rst
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
Running NSPR tests
==================

NSPR has a test suite in the ``mozilla/nsprpub/pr/tests`` directory.
NSPR has a test suite in the ``pr/tests`` directory.

By default, we don't build the test programs. Running ``gmake`` in the
top-level directory (``mozilla/nsprpub``) only builds the NSPR
libraries. To build the test programs, you need to change directory to
``mozilla/nsprpub/pr/tests`` and run ``gmake``. Refer to :ref:`NSPR build
By default, we don't build the test programs. Running ``make`` in the
top-level directory only builds the NSPR libraries.
To build the test programs, you need to change directory to
``pr/tests`` and run ``make``. Refer to :ref:`NSPR build
instructions` for details.

To run the test suite, run the shell script
``mozilla/nsprpub/pr/tests/runtests.sh`` in the directory where the test
``pr/tests/runtests.sh`` in the directory where the test
program binaries reside, for example,

.. code::
cvs -q co -r NSPR_4_6_6_RTM mozilla/nsprpub
mkdir linux.debug
cd linux.debug
../mozilla/nsprpub/configure
gmake
hg clone https://hg.mozilla.org/projects/nspr
cd nspr/
./configure
make
cd pr/tests
gmake
../../../mozilla/nsprpub/pr/tests/runtests.sh
make runtests
The output of the test suite looks like this:

Expand Down

0 comments on commit 4e16b54

Please sign in to comment.