From ba3884910a873b0399d950cec0e77088898aa039 Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Thu, 15 Jun 2023 11:50:22 +0100 Subject: [PATCH] Fix C++ build instructions Build `./extension` directory. --- .github/workflows/build.yml | 4 ++-- extension/tests/README.md | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 14f5242..0bbc3df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: - name: Build C++ run: | - cmake -Bbuild . + cmake -Bbuild ./extension cmake --build build/ --target run_tests - name: Test C++ @@ -38,7 +38,7 @@ jobs: - name: Build C++ run: | - cmake -Bbuild . + cmake -Bbuild ./extension cmake --build build/ --target run_tests - name: Test C++ diff --git a/extension/tests/README.md b/extension/tests/README.md index e3f8ddc..d350500 100644 --- a/extension/tests/README.md +++ b/extension/tests/README.md @@ -1,24 +1,22 @@ # Tests -*Important*: The following commands must be run from the top-level directory. +_Important_: The following commands must be run from the top-level directory in this repository. Build the tests executable with ```shell -cmake -Bbuild . +cmake -Bbuild ./extension cmake --build build/ ``` Run the tests with ```shell -# In directory src/cpp/tests -./build/tests +./build/run_tests ``` The test executable accepts a range of option (thanks to [Cath2](https://github.com/catchorg/Catch2)). You can list them with ```shell -./build/tests --help +./build/run_tests --help ``` -