-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
82 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Description | ||
=========== | ||
|
||
This repository contains the documentation of FW4SPL. The main repository is available [here](https://github.com/fw4spl-org/fw4spl). | ||
|
||
Building the documentation | ||
========================== | ||
|
||
In order to build this documentation, you will need to install Sphinx (especially the sphinx-build command). | ||
The documentation for installation is available [here](http://www.sphinx-doc.org/en/stable/install.html). | ||
|
||
Once sphinx is installed, launch the following command at the root of your local copy to generate html documentation: | ||
``` | ||
make html | ||
``` | ||
|
||
Other generation backends can be listed with the `make` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
************ | ||
Testing | ||
************ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
|
||
|
||
.. _CTest: http://cmake.org/ | ||
.. _CMake: http://cmake.org/ | ||
.. _CppUnit: https://sourceforge.net/projects/cppunit | ||
.. _fw4spl: https://github.com/fw4spl-org/fw4spl | ||
|
||
fw4spl_ uses CTest_ and CppUnit_ for unit testing. | ||
|
||
Building | ||
-------- | ||
|
||
When building fw4spl_ with CMake_, you will need to enable the ``BUILD_TESTS`` option, e.g. with the ``-DBUILD_TESTS=ON`` command line option. | ||
|
||
Launching unit tests | ||
-------------------- | ||
|
||
In you build directory, you can launch the unit tests with the ``ctest`` command in the following way: | ||
|
||
.. code-block:: shell | ||
# Launch the tests sequentially | ||
ctest . | ||
# Launch the tests using 4 jobs, similar to the -j option of make | ||
ctest -j 4 . | ||
# You can also use the make or ninja commands to do so | ||
make test | ||
ninja test | ||
Additional data | ||
--------------- | ||
|
||
Additional data need to be download to run all the unit tests. They are available at the following link. | ||
You can then specify the directory, where the data are located, with the ``FWTEST_DATA_DIR`` environment variable. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters