From 4160807e10c277c0c5ae9bdeb28417382f6a31f2 Mon Sep 17 00:00:00 2001 From: Sakeeb Sabakka Date: Wed, 25 Sep 2024 00:16:20 -0400 Subject: [PATCH] recc 1.2.20 Add test --- Formula/r/recc.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Formula/r/recc.rb b/Formula/r/recc.rb index f2a02c6da32819..8ddf6d512b00b7 100644 --- a/Formula/r/recc.rb +++ b/Formula/r/recc.rb @@ -171,4 +171,16 @@ def caveats log_path var/"log/casd.log" error_log_path var/"log/casd-error.log" end + + test do + 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