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 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 By default, we don't build the test programs. Running ``make`` in the
top-level directory (``mozilla/nsprpub``) only builds the NSPR top-level directory only builds the NSPR libraries.
libraries. To build the test programs, you need to change directory to To build the test programs, you need to change directory to
``mozilla/nsprpub/pr/tests`` and run ``gmake``. Refer to :ref:`NSPR build ``pr/tests`` and run ``make``. Refer to :ref:`NSPR build
instructions` for details. instructions` for details.
To run the test suite, run the shell script 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, program binaries reside, for example,
.. code:: .. code::
cvs -q co -r NSPR_4_6_6_RTM mozilla/nsprpub hg clone https://hg.mozilla.org/projects/nspr
mkdir linux.debug cd nspr/
cd linux.debug ./configure
../mozilla/nsprpub/configure make
gmake
cd pr/tests cd pr/tests
gmake make runtests
../../../mozilla/nsprpub/pr/tests/runtests.sh
The output of the test suite looks like this: The output of the test suite looks like this: