Skip to content

feat: Add an executable_test rule and use it in write_source_file #1090

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

calliecameron
Copy link

@calliecameron calliecameron commented May 26, 2025

Adds executable_test, which checks that a file or directory's executable permissions are as intended. Implementation is mostly copied from diff_test. Tested on Linux, since that's what I have. As far as I remember, the executable permission doesn't exist on Windows, so I've made the Windows version of the test always pass.

Added this to write_source_files, so that when diff_test is true, the executable permission will be checked as well as diffing the contents.

I considered having a separate executable_test arg instead of controlling them both with diff_test - can switch to that if you prefer.

Fixes #1089.

@calliecameron calliecameron changed the title Add an executable_test rule and use it in write_source_file feat: Add an executable_test rule and use it in write_source_file May 26, 2025
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.

write_source_file's tests should check the executable bit
1 participant