Skip to content

Commit

Permalink
recc 1.2.20
Browse files Browse the repository at this point in the history
Add test
  • Loading branch information
msabakka committed Sep 25, 2024
1 parent 89289b3 commit 4160807
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Formula/r/recc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,16 @@ def caveats
log_path var/"log/casd.log"
error_log_path var/"log/casd-error.log"
end

test do

Check failure on line 175 in Formula/r/recc.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew test --verbose recc` failed on macOS Sequoia (15) on Apple Silicon!

/opt/homebrew/Library/Homebrew/test.rb:52:in `<main>'

Check failure on line 175 in Formula/r/recc.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew test --verbose recc` failed on macOS Sonoma (14) on Apple Silicon!

/opt/homebrew/Library/Homebrew/test.rb:52:in `<main>'

Check failure on line 175 in Formula/r/recc.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew test --verbose recc` failed on macOS Ventura (13) on Apple Silicon!

/opt/homebrew/Library/Homebrew/test.rb:52:in `<main>'
system bin/"recc", "--version"
system bin/"recc-server &"
"test.c".write <<~EOS
int main() {}
EOS
ENV["RECC_LOG_LEVEL"]="info"
system bin/"recc-cc", "-c", "test.c"
output = shell_output(bin/"recc-cc -c test.c 2>&1")
assert_match "Action Cache hit", output
end
end

0 comments on commit 4160807

Please sign in to comment.