This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
2016-11-16 23:53:21 +01:00
|
|
|
# Building
|
2016-08-14 16:27:43 +02:00
|
|
|
|
2017-10-28 17:31:37 +02:00
|
|
|
`plasp` requires a C++17 compiler (preferably GCC ≥ 6.1 or clang ≥ 3.8) and CMake for building.
|
2016-08-14 16:27:43 +02:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ git clone https://github.com/potassco/plasp.git
|
|
|
|
$ cd plasp
|
|
|
|
$ mkdir -p build/release
|
|
|
|
$ cd build/release
|
|
|
|
$ cmake ../.. -DCMAKE_BUILD_TYPE=Release
|
|
|
|
$ make
|
|
|
|
```
|
|
|
|
|
|
|
|
The built `plasp` binary is then located at `plasp/build/release/bin/plasp`.
|
|
|
|
|
|
|
|
To update `plasp` to the most recent version, perform the following steps:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ cd plasp
|
|
|
|
$ git pull
|
|
|
|
$ cd build/release
|
|
|
|
$ cmake .
|
|
|
|
$ make
|
|
|
|
```
|
|
|
|
|
|
|
|
## Running the Tests
|
|
|
|
|
2016-10-08 16:06:37 +02:00
|
|
|
`plasp` provides unit tests written using the [Catch](https://github.com/philsquared/Catch) framework.
|
|
|
|
Before building and running the tests, make sure you have fetched the Catch git submodule:
|
2016-08-14 16:27:43 +02:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ git submodule init
|
|
|
|
$ git submodule update
|
|
|
|
```
|
|
|
|
|
2016-08-15 00:26:47 +02:00
|
|
|
Afterward, enable the flag `BUILD_TESTS` in your CMake configuration.
|
|
|
|
Finally, build and run the tests as follows:
|
2016-08-14 16:27:43 +02:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ make run-tests
|
|
|
|
```
|
2016-08-30 18:52:59 +02:00
|
|
|
|
|
|
|
After updating `plasp`, make sure to execute CMake again in order for the tests to run correctly.
|
|
|
|
Else, external files required by the test suite may be reported missing.
|