forked from ccache/ccache
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test suite fixes and improvements for Windows (ccache#780)
* Tests: properly handle compiler arguments from CC environment variable * Tests: don't pass test names directly to printf In some cases test names would be interpreted as invalid arguments to `printf` instead of a string to be printed, and this resulted in confusing output on test failure. * Tests: enable symlink support on Windows git-bash's `ln -s` defaults to making a copy instead of making a symlink for compatibility, but it is possible to ask for native Windows symlink support instead. Creating symlinks on Windows requires suitable permissions, or that "Developer Mode" is enabled. (This is true for the Github Actions Windows runners.) * Tests: performance fixes for Windows On Windows, git-bash's emulation of fork/exec is exteremely slow -- on my machine it's typically around 30ms to spawn /usr/bin/true from a bash script compared to 2ms on my macOS machine. This is really noticeable when running ccache tests. This patch fixes some of the hot code (i.e. code invoked for every test case) to avoid spawning external commands or creating as many subshells. * Tests: get more tests passing on Windows - account for \r\n line endings in --version test - skip tests that can never succeed on Windows
- Loading branch information
1 parent
3e29af0
commit 3ea726f
Showing
4 changed files
with
53 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters