From d8739e14aee759e4c5c5e7ea6714a07843f88ec2 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 27 Apr 2019 23:12:01 +0200 Subject: [PATCH] Fixed test arguments. --- .drone.yml | 10 +++++----- README.md | 16 +++++++--------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.drone.yml b/.drone.yml index 62c9c14..237b8f7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,7 +19,7 @@ pipeline: - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen catch - apt-get install -qy -t sid libcurlpp-dev - rm -rf build && mkdir -p build && cd build - - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]![upload]" .. + - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]~[upload]" .. - make VERBOSE=1 - make install DESTDIR=install - ctest @@ -52,7 +52,7 @@ pipeline: - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen catch - apt-get install -qy -t sid libcurlpp-dev - rm -rf build && mkdir -p build && cd build - - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]![upload]" .. + - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]~[upload]" .. - make VERBOSE=1 - make install DESTDIR=install - ctest @@ -85,7 +85,7 @@ pipeline: - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen catch - apt-get install -qy -t sid libcurlpp-dev - rm -rf build && mkdir -p build && cd build - - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]![upload]" .. + - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]~[upload]" .. - make VERBOSE=1 - make install DESTDIR=install - ctest @@ -115,7 +115,7 @@ pipeline: - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen catch - apt-get install -qy -t sid libcurlpp-dev - rm -rf build && mkdir -p build && cd build - - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]![upload]" .. + - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]~[upload]" .. - make VERBOSE=1 - make install DESTDIR=install - ctest @@ -145,7 +145,7 @@ pipeline: - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen catch - apt-get install -qy -t sid libcurlpp-dev - rm -rf build && mkdir -p build && cd build - - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]![upload]" .. + - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]~[upload]" .. - make VERBOSE=1 - make install DESTDIR=install - ctest diff --git a/README.md b/README.md index 99b4c8c..a625840 100644 --- a/README.md +++ b/README.md @@ -220,17 +220,15 @@ cmake --build . -- -j$(nproc --ignore=1) cmake options: -* `-DCMAKE_BUILD_TYPE=Debug` for a debug build +* `-DCMAKE_BUILD_TYPE=Debug` for a debug build. * `-DWITH_EASY=NO` to not build the Easy abstractions and to get rid of the - jsoncpp-dependency (not recommended) -* `-DWITH_EXAMPLES=YES` if you want to compile the examples -* `-DWITH_TESTS=YES` if you want to compile the tests -* `-DEXTRA_TEST_ARGS` to run only some tests + jsoncpp-dependency (not recommended). +* `-DWITH_EXAMPLES=YES` if you want to compile the examples. +* `-DWITH_TESTS=YES` if you want to compile the tests. +* `-DEXTRA_TEST_ARGS` to run only some tests ([format](https://github.com/catchorg/Catch2/blob/master/docs/command-line.md#specifying-which-tests-to-run)). * Possible tags: `[api]`, `[auth]`, `[mastodon]`, `[glitch-soc]`, - `[pleroma]`, `[upload]` - * Example: `-DEXTRA_TEST_ARGS='[pleroma]![mastodon]'` to run the tests for - features in Pleroma that are not in Mastodon. - * `[upload]` tags tests that upload files. + `[pleroma]`, `[upload]`. + * `[upload]` tags tests that upload files. * `-DWITH_DOC=NO` if you don't want to compile the HTML reference * One of: * `-DWITH_DEB=YES` if you want to be able to generate a deb-package