Skip to content

Commit

Permalink
recc 1.2.20 tests
Browse files Browse the repository at this point in the history
Added tests to start recc-server and run recc-cc command twice.
The second run should result in a cache hit.
  • Loading branch information
msabakka committed Sep 25, 2024
1 parent 4160807 commit db35cb0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Formula/r/recc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def generate_recc_server(bin_directory)
#{bin}/buildbox-casd \
--local-server-instance=recc-server \
--protect-session-blobs \
#{var}/recc/casd
${1:-#{var}/recc/casd}
EOS
end

Expand Down Expand Up @@ -174,10 +174,13 @@ def caveats

test do

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 &"
recc_cache_data_path="recc_cache_data_path"
recc_cache_data_path.mkpath
system bin/"recc-server #{recc_cache_data_path} &"
"test.c".write <<~EOS
int main() {}
EOS
ENV["RECC_SERVER"]=recc_cache_data_path/"casd.sock"
ENV["RECC_LOG_LEVEL"]="info"
system bin/"recc-cc", "-c", "test.c"
output = shell_output(bin/"recc-cc -c test.c 2>&1")
Expand Down

0 comments on commit db35cb0

Please sign in to comment.