no bug - doc/nspr: adjust the way to run tests r=kaie DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D216223
This commit is contained in:
Sylvestre Ledru 2024-07-13 08:34:19 +00:00
Родитель 6503102410
Коммит 4e16b5497b
1 изменённых файлов: 11 добавлений и 13 удалений

Просмотреть файл

@ -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: