GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — . d Mount the repo at /ApprovalTests.cpp in the Docker guide so namer… · approvals/ApprovalTests.cpp@061ba31

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • InternalDocuments
    • docker.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎InternalDocuments/docker.md‎

Copy file name to clipboardExpand all lines: InternalDocuments/docker.md
+6-5Lines changed: 6 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,23 @@ EOF
4040
From the repository root:
4141

4242
```bash
43-
docker run --rm -v "$PWD":/src approvaltests-linux bash -c '
44-
cmake -S /src -B /build -DCMAKE_BUILD_TYPE=Debug &&
43+
docker run --rm -v "$PWD":/ApprovalTests.cpp approvaltests-linux bash -c '
44+
cmake -S /ApprovalTests.cpp -B /build -DCMAKE_BUILD_TYPE=Debug &&
4545
cmake --build /build -j8 &&
4646
cd /build && ctest --output-on-failure'
4747
```
4848

4949
1. Build in `/build`, inside the container, so the build doesn't mix with your macOS build directories.
50+
1. Mount the source at `/ApprovalTests.cpp`. Some tests look for files under a directory with that name.
5051
1. Mount the source writable. Approval tests write `.received` files next to the source, and fail with "Unable to write file" on a read-only mount.
51-
1. To build only part of the repo, point `-S` at that directory. For example, `-S /src/examples/doctest_multiple_shared_libraries`.
52+
1. To build only part of the repo, point `-S` at that directory. For example, `-S /ApprovalTests.cpp/examples/doctest_multiple_shared_libraries`.
5253
1. To match a compiler from the CI matrix, set `CXX`, for example `CXX=clang++ cmake ...`.
5354

5455
## Get a backtrace for a crash
5556

5657
```bash
57-
docker run --rm -v "$PWD":/src approvaltests-linux bash -c '
58-
cmake -S /src -B /build -DCMAKE_BUILD_TYPE=Debug && cmake --build /build -j8 &&
58+
docker run --rm -v "$PWD":/ApprovalTests.cpp approvaltests-linux bash -c '
59+
cmake -S /ApprovalTests.cpp -B /build -DCMAKE_BUILD_TYPE=Debug && cmake --build /build -j8 &&
5960
gdb -batch -ex run -ex bt --args /build/<path-to-test-executable> <arguments>'
6061
```
6162

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.