Skip to content

Commit

Permalink
Fix C++ build instructions
Browse files Browse the repository at this point in the history
Build `./extension` directory.
  • Loading branch information
tomalrussell committed Jun 15, 2023
1 parent ca0061d commit ba38849
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Build C++
run: |
cmake -Bbuild .
cmake -Bbuild ./extension
cmake --build build/ --target run_tests
- name: Test C++
Expand All @@ -38,7 +38,7 @@ jobs:

- name: Build C++
run: |
cmake -Bbuild .
cmake -Bbuild ./extension
cmake --build build/ --target run_tests
- name: Test C++
Expand Down
10 changes: 4 additions & 6 deletions extension/tests/README.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit ba38849

Please sign in to comment.