Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[misc] Output "taichi_cpp_tests.exe" to the "bin" folder on Windows #2515

Merged
merged 5 commits into from
Jul 13, 2021

Conversation

xumingkuan
Copy link
Contributor

@xumingkuan xumingkuan commented Jul 12, 2021

Related issue = #2502

By default, on Windows, Taichi outputs taichi_cpp_tests.exe in somewhere like build\RelWithDebInfo\, which is hard to find.

This PR moves it to bin\, which is in the PATH and we can run taichi_cpp_tests everywhere.

@@ -21,6 +21,11 @@ make
./taichi_cpp_tests
```

:::note
On Windows, `taichi_cpp_tests.exe` will be outputted into the `%TAICHI_REPO_DIR%\bin` directory,
so you can directly run it after adding the directory to `PATH` in [Setting up Taichi for development](dev_install.md#setting-up-taichi-for-development-3).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully I understand how the link works correctly -- feel free to correct me if the syntax is wrong.

@xumingkuan xumingkuan requested a review from k-ye July 12, 2021 10:39
Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

docs/lang/articles/contribution/writing_cpp_tests.md Outdated Show resolved Hide resolved
cmake/TaichiTests.cmake Outdated Show resolved Hide resolved
Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ljcc0930 ljcc0930 merged commit d2a139a into taichi-dev:master Jul 13, 2021
@Leonz5288 Leonz5288 mentioned this pull request Jul 20, 2021
ailzhang pushed a commit that referenced this pull request Sep 13, 2022
Related issue = #

Output all exes to build/

> This PR moves it to bin\, which is in the PATH and we can run
taichi_cpp_tests everywhere.
> --from #2515 (comment)

IMO, we should run cpp/capi tests by running `python run_tests.py --cpp`
instead of launching `taichi_cpp_tests(.exe)` manually

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants