diff --git a/Formula/c/c10t.rb b/Formula/c/c10t.rb index facbfcd5be9d9..c30f482c1990c 100644 --- a/Formula/c/c10t.rb +++ b/Formula/c/c10t.rb @@ -62,7 +62,7 @@ def install end test do - system "#{bin}/c10t", "--list-colors" + system bin/"c10t", "--list-colors" end end diff --git a/Formula/c/cabextract.rb b/Formula/c/cabextract.rb index 0d7bf1df2ab45..c691a2716c0f6 100644 --- a/Formula/c/cabextract.rb +++ b/Formula/c/cabextract.rb @@ -37,7 +37,7 @@ def install EOS (testpath/"test.cab").binwrite [cab].pack("H*") - system "#{bin}/cabextract", "test.cab" + system bin/"cabextract", "test.cab" assert_predicate testpath/"a", :exist? end end diff --git a/Formula/c/cadence.rb b/Formula/c/cadence.rb index 250768400dbf5..5efb484b84b0a 100644 --- a/Formula/c/cadence.rb +++ b/Formula/c/cadence.rb @@ -38,6 +38,6 @@ def install return 0 } EOS - system "#{bin}/cadence", "hello.cdc" + system bin/"cadence", "hello.cdc" end end diff --git a/Formula/c/calabash.rb b/Formula/c/calabash.rb index 1b600f736e7d5..2443b89b2f166 100644 --- a/Formula/c/calabash.rb +++ b/Formula/c/calabash.rb @@ -42,6 +42,6 @@ def install test do # This small XML pipeline (*.xpl) that comes with Calabash # is basically its equivalent "Hello World" program. - system "#{bin}/calabash", "#{libexec}/xpl/pipe.xpl" + system bin/"calabash", "#{libexec}/xpl/pipe.xpl" end end diff --git a/Formula/c/capnp.rb b/Formula/c/capnp.rb index af590fbd5d9fa..91be31e1ab183 100644 --- a/Formula/c/capnp.rb +++ b/Formula/c/capnp.rb @@ -68,7 +68,7 @@ def install email @2 :Text; } EOS - system "#{bin}/capnp", "compile", "-oc++", testpath/"person.capnp" + system bin/"capnp", "compile", "-oc++", testpath/"person.capnp" (testpath/"test.cpp").write <<~EOS #include "person.capnp.h" diff --git a/Formula/c/cargo-fuzz.rb b/Formula/c/cargo-fuzz.rb index 466919f404a4f..10cefe56025bd 100644 --- a/Formula/c/cargo-fuzz.rb +++ b/Formula/c/cargo-fuzz.rb @@ -30,7 +30,7 @@ def install system "rustup", "set", "profile", "minimal" system "cargo", "init" - system "#{bin}/cargo-fuzz", "init" + system bin/"cargo-fuzz", "init" assert_predicate testpath/"fuzz/Cargo.toml", :exist? end end diff --git a/Formula/c/cariddi.rb b/Formula/c/cariddi.rb index 38f2b989cbd87..fac43a64565e4 100644 --- a/Formula/c/cariddi.rb +++ b/Formula/c/cariddi.rb @@ -23,7 +23,7 @@ def install end test do - output = pipe_output("#{bin}/cariddi", "http://testphp.vulnweb.com") + output = pipe_output(bin/"cariddi", "http://testphp.vulnweb.com") assert_match "http://testphp.vulnweb.com/login.php", output assert_match version.to_s, shell_output("#{bin}/cariddi -version 2>&1") diff --git a/Formula/c/cassowary.rb b/Formula/c/cassowary.rb index bd08990980d0d..962b586c160c1 100644 --- a/Formula/c/cassowary.rb +++ b/Formula/c/cassowary.rb @@ -23,7 +23,7 @@ def install end test do - system("#{bin}/cassowary", "run", "-u", "http://www.example.com", "-c", "10", "-n", "100", "--json-metrics") + system(bin/"cassowary", "run", "-u", "http://www.example.com", "-c", "10", "-n", "100", "--json-metrics") assert_match "\"base_url\":\"http://www.example.com\"", File.read("#{testpath}/out.json") assert_match version.to_s, shell_output("#{bin}/cassowary --version") diff --git a/Formula/c/catimg.rb b/Formula/c/catimg.rb index 8857fdcc812cf..a497a43368d4b 100644 --- a/Formula/c/catimg.rb +++ b/Formula/c/catimg.rb @@ -29,6 +29,6 @@ def install end test do - system "#{bin}/catimg", test_fixtures("test.png") + system bin/"catimg", test_fixtures("test.png") end end diff --git a/Formula/c/cayley.rb b/Formula/c/cayley.rb index 8539255bac00c..13ca5a5278525 100644 --- a/Formula/c/cayley.rb +++ b/Formula/c/cayley.rb @@ -73,7 +73,7 @@ def post_install http_port = free_port fork do - exec "#{bin}/cayley", "http", "--host=127.0.0.1:#{http_port}" + exec bin/"cayley", "http", "--host=127.0.0.1:#{http_port}" end sleep 3 response = shell_output("curl -s -i 127.0.0.1:#{http_port}") diff --git a/Formula/c/cbmbasic.rb b/Formula/c/cbmbasic.rb index edd8ed7182589..0d9ff7700d898 100644 --- a/Formula/c/cbmbasic.rb +++ b/Formula/c/cbmbasic.rb @@ -29,6 +29,6 @@ def install end test do - assert_match(/READY.\r\n 1/, pipe_output("#{bin}/cbmbasic", "PRINT 1\n", 0)) + assert_match(/READY.\r\n 1/, pipe_output(bin/"cbmbasic", "PRINT 1\n", 0)) end end diff --git a/Formula/c/ccache.rb b/Formula/c/ccache.rb index b986df5546747..3b43384ac5bbf 100644 --- a/Formula/c/ccache.rb +++ b/Formula/c/ccache.rb @@ -90,6 +90,6 @@ def caveats test do ENV.prepend_path "PATH", opt_libexec assert_equal "#{opt_libexec}/gcc", shell_output("which gcc").chomp - system "#{bin}/ccache", "-s" + system bin/"ccache", "-s" end end diff --git a/Formula/c/ccm.rb b/Formula/c/ccm.rb index fb9f0488b6c5c..cb2a981972266 100644 --- a/Formula/c/ccm.rb +++ b/Formula/c/ccm.rb @@ -57,6 +57,6 @@ def install end test do - assert_match "Usage", shell_output("#{bin}/ccm", 1) + assert_match "Usage", shell_output(bin/"ccm", 1) end end diff --git a/Formula/c/cdargs.rb b/Formula/c/cdargs.rb index cfe0f04deb006..737e60a990d7a 100644 --- a/Formula/c/cdargs.rb +++ b/Formula/c/cdargs.rb @@ -52,6 +52,6 @@ def caveats end test do - system "#{bin}/cdargs", "--version" + system bin/"cdargs", "--version" end end diff --git a/Formula/c/cdo.rb b/Formula/c/cdo.rb index 934aa72106c3d..a4f8f5d864c51 100644 --- a/Formula/c/cdo.rb +++ b/Formula/c/cdo.rb @@ -56,7 +56,7 @@ def install R1JJQgABvAEAABz/AAD/gAEBAABkAAAAAAEAAAoAAAAAAAAAAAAgAP8AABIACgB+9IBrbIABLrwA4JwTiBOIQAAAAAAAAXQIgAPEFI2rEBm9AACVLSuNtwvRALldqDul2GV1pw1CbXsdub2q9a/17Yi9o11DE0UFWwRjqsvH80wgS82o3UJ9rkitLcPgxJDVaO9No4XV6EWNPeUSSC7txHi7/aglVaO5uKKtwr2slV5DYejEoKOwpdirLXPIGUAWCya7ntil1amLu4PCtafNp5OpPafFqVWmxaQto72sMzGQJeUxcJkbqEWnOKM9pTOlTafdqPCoc6tAq0WqFarTq2i5M1NdRq2AHWzFpFWj1aJtmAOrhaJzox2nwKr4qQWofaggqz2rkHcog2htuI2YmOB9hZDIpxXA3ahdpzOnDarjqj2k0KlIqM2oyJsjjpODmGu1YtU6WHmNZ5uljcbVrduuOK1DrDWjGKM4pQCmfdVFprWbnVd7Vw1QY1s9VnNzvZiLmGucPZwVnM2bm5yFqb2cHdRQqs2hhZrrm1VGeEQgOduhjbWrqAWfzaANnZOdWJ0NnMWeJQA3Nzc3AAAAAA== EOF File.binwrite("test.grb", data) - system "#{bin}/cdo", "-f", "nc", "copy", "test.grb", "test.nc" + system bin/"cdo", "-f", "nc", "copy", "test.grb", "test.nc" assert_predicate testpath/"test.nc", :exist? end end diff --git a/Formula/c/cdparanoia.rb b/Formula/c/cdparanoia.rb index b0d0e5e26d047..47be715be9d34 100644 --- a/Formula/c/cdparanoia.rb +++ b/Formula/c/cdparanoia.rb @@ -70,6 +70,6 @@ def install end test do - system "#{bin}/cdparanoia", "--version" + system bin/"cdparanoia", "--version" end end diff --git a/Formula/c/cdpr.rb b/Formula/c/cdpr.rb index f44b21f6662ed..00b747a5c3fa4 100644 --- a/Formula/c/cdpr.rb +++ b/Formula/c/cdpr.rb @@ -35,6 +35,6 @@ def caveats end test do - system "#{bin}/cdpr", "-h" + system bin/"cdpr", "-h" end end diff --git a/Formula/c/cekit.rb b/Formula/c/cekit.rb index f8b9950c5f272..97b75c79736f0 100644 --- a/Formula/c/cekit.rb +++ b/Formula/c/cekit.rb @@ -101,7 +101,7 @@ def install EOS assert_match "INFO Finished!", shell_output("#{bin}/cekit --descriptor #{testpath}/test.yml build --dry-run docker 2>&1") - system "#{bin}/cekit", "--descriptor", "#{testpath}/test.yml", "build", "--dry-run", "docker" + system bin/"cekit", "--descriptor", "#{testpath}/test.yml", "build", "--dry-run", "docker" assert_predicate testpath/"target/image/Dockerfile", :exist? assert_match "FROM scratch", File.read(testpath/"target/image/Dockerfile") end diff --git a/Formula/c/certstrap.rb b/Formula/c/certstrap.rb index 33971d5a6233f..f87ff1f793c26 100644 --- a/Formula/c/certstrap.rb +++ b/Formula/c/certstrap.rb @@ -31,6 +31,6 @@ def install end test do - system "#{bin}/certstrap", "init", "--common-name", "Homebrew Test CA", "--passphrase", "beerformyhorses" + system bin/"certstrap", "init", "--common-name", "Homebrew Test CA", "--passphrase", "beerformyhorses" end end diff --git a/Formula/c/ceylon.rb b/Formula/c/ceylon.rb index c3083414aca2e..7a804575ed51f 100644 --- a/Formula/c/ceylon.rb +++ b/Formula/c/ceylon.rb @@ -26,13 +26,13 @@ def install test do cd "#{libexec}/samples/helloworld" do - system "#{bin}/ceylon", "compile", "--out", "#{testpath}/modules", + system bin/"ceylon", "compile", "--out", "#{testpath}/modules", "--encoding", "UTF-8", "com.example.helloworld" - system "#{bin}/ceylon", "doc", "--out", "#{testpath}/modules", + system bin/"ceylon", "doc", "--out", "#{testpath}/modules", "--encoding", "UTF-8", "--non-shared", "com.example.helloworld" - system "#{bin}/ceylon", "run", "--rep", "#{testpath}/modules", + system bin/"ceylon", "run", "--rep", "#{testpath}/modules", "com.example.helloworld/1.0", "John" end end diff --git a/Formula/c/cgdb.rb b/Formula/c/cgdb.rb index 3e8d9817f905d..40765c1fd98c0 100644 --- a/Formula/c/cgdb.rb +++ b/Formula/c/cgdb.rb @@ -48,6 +48,6 @@ def install end test do - system "#{bin}/cgdb", "--version" + system bin/"cgdb", "--version" end end diff --git a/Formula/c/cheops.rb b/Formula/c/cheops.rb index 4d9c99da9f683..87f126e96ecc7 100644 --- a/Formula/c/cheops.rb +++ b/Formula/c/cheops.rb @@ -35,6 +35,6 @@ def install end test do - system "#{bin}/cheops", "--version" + system bin/"cheops", "--version" end end diff --git a/Formula/c/cherrytree.rb b/Formula/c/cherrytree.rb index 54624ac8a2215..669daea993dac 100644 --- a/Formula/c/cherrytree.rb +++ b/Formula/c/cherrytree.rb @@ -69,7 +69,7 @@ def install EOS - system "#{bin}/cherrytree", testpath/"homebrew.ctd", "--export_to_txt_dir", testpath, "--export_single_file" + system bin/"cherrytree", testpath/"homebrew.ctd", "--export_to_txt_dir", testpath, "--export_single_file" assert_predicate testpath/"homebrew.ctd.txt", :exist? assert_match "rich text", (testpath/"homebrew.ctd.txt").read assert_match "this is a simple command line test for homebrew", (testpath/"homebrew.ctd.txt").read diff --git a/Formula/c/chezmoi.rb b/Formula/c/chezmoi.rb index fb3581f950044..209c25725379d 100644 --- a/Formula/c/chezmoi.rb +++ b/Formula/c/chezmoi.rb @@ -45,7 +45,7 @@ def install assert_match "version v#{version}", shell_output("#{bin}/chezmoi --version") assert_match "built by #{tap.user}", shell_output("#{bin}/chezmoi --version") - system "#{bin}/chezmoi", "init" + system bin/"chezmoi", "init" assert_predicate testpath/".local/share/chezmoi", :exist? end end diff --git a/Formula/c/choose.rb b/Formula/c/choose.rb index 7e54c9d2d3517..869f6c980691a 100644 --- a/Formula/c/choose.rb +++ b/Formula/c/choose.rb @@ -51,6 +51,6 @@ def install # [Errno 6] No such device or address: '/dev/tty' return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"] - assert_equal "homebrew-test", pipe_output("#{bin}/choose", "homebrew-test\n").strip + assert_equal "homebrew-test", pipe_output(bin/"choose", "homebrew-test\n").strip end end diff --git a/Formula/c/chrome-cli.rb b/Formula/c/chrome-cli.rb index 858e4aa612258..3eb8e7b5d0cfc 100644 --- a/Formula/c/chrome-cli.rb +++ b/Formula/c/chrome-cli.rb @@ -33,6 +33,6 @@ def install end test do - system "#{bin}/chrome-cli", "version" + system bin/"chrome-cli", "version" end end diff --git a/Formula/c/chrpath.rb b/Formula/c/chrpath.rb index ea64661dcc171..857539f7df63b 100644 --- a/Formula/c/chrpath.rb +++ b/Formula/c/chrpath.rb @@ -27,7 +27,7 @@ def install assert_match "a.out: RPATH=/usr/local/lib", shell_output("#{bin}/chrpath a.out") assert_match "a.out: new RPATH: /usr/lib/", shell_output("#{bin}/chrpath -r /usr/lib/ a.out") assert_match "a.out: RPATH=/usr/lib/", shell_output("#{bin}/chrpath a.out") - system "#{bin}/chrpath", "-d", "a.out" + system bin/"chrpath", "-d", "a.out" assert_match "a.out: no rpath or runpath tag found.", shell_output("#{bin}/chrpath a.out", 2) end end diff --git a/Formula/c/cidrmerge.rb b/Formula/c/cidrmerge.rb index 3bb800162718e..cc745b9b0db71 100644 --- a/Formula/c/cidrmerge.rb +++ b/Formula/c/cidrmerge.rb @@ -34,6 +34,6 @@ def install 192.1.4.5/32 192.1.4.4/32 EOS - assert_equal "10.1.1.0/24\n192.1.4.4/31\n", pipe_output("#{bin}/cidrmerge", input) + assert_equal "10.1.1.0/24\n192.1.4.4/31\n", pipe_output(bin/"cidrmerge", input) end end diff --git a/Formula/c/cifer.rb b/Formula/c/cifer.rb index 57a6e25094072..7ee9e66510547 100644 --- a/Formula/c/cifer.rb +++ b/Formula/c/cifer.rb @@ -38,7 +38,7 @@ def install end test do - assert_match version.to_s, pipe_output("#{bin}/cifer") + assert_match version.to_s, pipe_output(bin/"cifer") end end diff --git a/Formula/c/cig.rb b/Formula/c/cig.rb index e354dd04ff089..f2f757b070c1b 100644 --- a/Formula/c/cig.rb +++ b/Formula/c/cig.rb @@ -41,6 +41,6 @@ def install (testpath/".cig.yaml").write <<~EOS test_project: #{repo_path} EOS - system "#{bin}/cig", "--cp=#{testpath}" + system bin/"cig", "--cp=#{testpath}" end end diff --git a/Formula/c/clash.rb b/Formula/c/clash.rb index dc9ae5ad66656..0b111a5db991b 100644 --- a/Formula/c/clash.rb +++ b/Formula/c/clash.rb @@ -65,8 +65,8 @@ def install password: "test" cipher: chacha20-ietf-poly1305 EOS - system "#{bin}/clash", "-t", "-d", testpath # test config && download Country.mmdb - client = fork { exec "#{bin}/clash", "-d", testpath } + system bin/"clash", "-t", "-d", testpath # test config && download Country.mmdb + client = fork { exec bin/"clash", "-d", testpath } sleep 3 begin diff --git a/Formula/c/clib.rb b/Formula/c/clib.rb index 1b7c8b74d0377..47ded89404003 100644 --- a/Formula/c/clib.rb +++ b/Formula/c/clib.rb @@ -29,6 +29,6 @@ def install end test do - system "#{bin}/clib", "install", "stephenmathieson/rot13.c" + system bin/"clib", "install", "stephenmathieson/rot13.c" end end diff --git a/Formula/c/clip.rb b/Formula/c/clip.rb index 1bf4addbd29e9..c0ddab87b6a0b 100644 --- a/Formula/c/clip.rb +++ b/Formula/c/clip.rb @@ -45,7 +45,7 @@ def install test do cp_r pkgshare/"test", testpath - system "#{bin}/clip", "--export", "chart.svg", + system bin/"clip", "--export", "chart.svg", "test/examples/charts_basic_areachart.clp" assert_predicate testpath/"chart.svg", :exist? end diff --git a/Formula/c/clojure-lsp.rb b/Formula/c/clojure-lsp.rb index 555339ac17f5d..d8800314a454f 100644 --- a/Formula/c/clojure-lsp.rb +++ b/Formula/c/clojure-lsp.rb @@ -45,7 +45,7 @@ def install } JSON - Open3.popen3("#{bin}/clojure-lsp") do |stdin, stdout| + Open3.popen3(bin/"clojure-lsp") do |stdin, stdout| stdin.write "Content-Length: #{json.size}\r\n\r\n#{json}" assert_match(/^Content-Length: \d+/i, stdout.readline) end diff --git a/Formula/c/cloudlist.rb b/Formula/c/cloudlist.rb index 3ebef88a80a85..5907f6575e692 100644 --- a/Formula/c/cloudlist.rb +++ b/Formula/c/cloudlist.rb @@ -25,7 +25,7 @@ def install test do assert_match version.to_s, shell_output("#{bin}/cloudlist -version 2>&1") - output = shell_output "#{bin}/cloudlist", 1 + output = shell_output bin/"cloudlist", 1 assert_match output, "invalid provider configuration file provided" end end diff --git a/Formula/c/cmake-language-server.rb b/Formula/c/cmake-language-server.rb index 730fad2290f7b..6b83eb02b6388 100644 --- a/Formula/c/cmake-language-server.rb +++ b/Formula/c/cmake-language-server.rb @@ -52,7 +52,7 @@ def install "processId\":88075,\"rootUri\":null,\"capabilities\":{},\"trace\":\"ver" \ "bose\",\"workspaceFolders\":null}}\r\n" - output = pipe_output("#{bin}/cmake-language-server", input) + output = pipe_output(bin/"cmake-language-server", input) assert_match(/^Content-Length: \d+/i, output) diff --git a/Formula/c/cmark.rb b/Formula/c/cmark.rb index a2fbcd6a2a7f7..69baf7cd49e11 100644 --- a/Formula/c/cmark.rb +++ b/Formula/c/cmark.rb @@ -29,7 +29,7 @@ def install end test do - output = pipe_output("#{bin}/cmark", "*hello, world*") + output = pipe_output(bin/"cmark", "*hello, world*") assert_equal "

hello, world

", output.chomp end end diff --git a/Formula/c/cmatrix.rb b/Formula/c/cmatrix.rb index 0b82854bcc494..42ea14540829b 100644 --- a/Formula/c/cmatrix.rb +++ b/Formula/c/cmatrix.rb @@ -33,6 +33,6 @@ def install end test do - system "#{bin}/cmatrix", "-V" + system bin/"cmatrix", "-V" end end diff --git a/Formula/c/cmix.rb b/Formula/c/cmix.rb index ee909967020b8..a84b1962600d7 100644 --- a/Formula/c/cmix.rb +++ b/Formula/c/cmix.rb @@ -22,8 +22,8 @@ def install test do (testpath/"foo").write "test" - system "#{bin}/cmix", "-c", "foo", "foo.cmix" - system "#{bin}/cmix", "-d", "foo.cmix", "foo.unpacked" + system bin/"cmix", "-c", "foo", "foo.cmix" + system bin/"cmix", "-d", "foo.cmix", "foo.unpacked" assert_equal "test", shell_output("cat foo.unpacked") end end diff --git a/Formula/c/colmap.rb b/Formula/c/colmap.rb index 3c7325eaac413..159a25c070448 100644 --- a/Formula/c/colmap.rb +++ b/Formula/c/colmap.rb @@ -56,7 +56,7 @@ def install end test do - system "#{bin}/colmap", "database_creator", "--database_path", (testpath / "db") + system bin/"colmap", "database_creator", "--database_path", (testpath / "db") assert_path_exists (testpath / "db") end end diff --git a/Formula/c/colordiff.rb b/Formula/c/colordiff.rb index fefaf1a371d9e..fdcd87a8fdf6b 100644 --- a/Formula/c/colordiff.rb +++ b/Formula/c/colordiff.rb @@ -29,6 +29,6 @@ def install test do cp HOMEBREW_PREFIX+"bin/brew", "brew1" cp HOMEBREW_PREFIX+"bin/brew", "brew2" - system "#{bin}/colordiff", "brew1", "brew2" + system bin/"colordiff", "brew1", "brew2" end end diff --git a/Formula/c/colormake.rb b/Formula/c/colormake.rb index d1b401fb70e8a..5d7a423056a10 100644 --- a/Formula/c/colormake.rb +++ b/Formula/c/colormake.rb @@ -30,6 +30,6 @@ def install test do (testpath/"Makefile").write("all:\n\techo Hello World!\n") - assert_match "Hello World!", shell_output("#{bin}/colormake") + assert_match "Hello World!", shell_output(bin/"colormake") end end diff --git a/Formula/c/commitlint.rb b/Formula/c/commitlint.rb index c9f8a7cce1b24..eeae0999bff74 100644 --- a/Formula/c/commitlint.rb +++ b/Formula/c/commitlint.rb @@ -33,6 +33,6 @@ def install }; EOS assert_match version.to_s, shell_output("#{bin}/commitlint --version") - assert_equal "", pipe_output("#{bin}/commitlint", "foo: message") + assert_equal "", pipe_output(bin/"commitlint", "foo: message") end end diff --git a/Formula/c/compiledb.rb b/Formula/c/compiledb.rb index 1fbb2d2fa4746..a41e7221e3a9b 100644 --- a/Formula/c/compiledb.rb +++ b/Formula/c/compiledb.rb @@ -48,7 +48,7 @@ def install int main(void) { return 0; } EOS - system "#{bin}/compiledb", "-n", "make" + system bin/"compiledb", "-n", "make" assert_predicate testpath/"compile_commands.json", :exist?, "compile_commands.json should be created" end end diff --git a/Formula/c/composer.rb b/Formula/c/composer.rb index daa663ac82b8e..c86ca999bfc21 100644 --- a/Formula/c/composer.rb +++ b/Formula/c/composer.rb @@ -77,7 +77,7 @@ class Greetings { echo Greetings::sayHelloWorld(); EOS - system "#{bin}/composer", "install" + system bin/"composer", "install" assert_match(/^HelloHomebrew$/, shell_output("php tests/test.php")) end end diff --git a/Formula/c/condure.rb b/Formula/c/condure.rb index 4eec740dc1bd8..8f0b3f1a94652 100644 --- a/Formula/c/condure.rb +++ b/Formula/c/condure.rb @@ -94,7 +94,7 @@ def server_worker(c): EOS pid = fork do - exec "#{bin}/condure", "--listen", "10000,req", "--zclient-req", "ipc://#{ipcfile}" + exec bin/"condure", "--listen", "10000,req", "--zclient-req", "ipc://#{ipcfile}" end begin diff --git a/Formula/c/conftest.rb b/Formula/c/conftest.rb index e27178fa2b807..b11ec1d821bd8 100644 --- a/Formula/c/conftest.rb +++ b/Formula/c/conftest.rb @@ -30,6 +30,6 @@ def install # Using the policy parameter changes the default location to look for policies. # If no policies are found, a non-zero status code is returned. (testpath/"test.rego").write("package main") - system "#{bin}/conftest", "verify", "-p", "test.rego" + system bin/"conftest", "verify", "-p", "test.rego" end end diff --git a/Formula/c/convmv.rb b/Formula/c/convmv.rb index 6bcc58f0b0777..0aa179f4c3659 100644 --- a/Formula/c/convmv.rb +++ b/Formula/c/convmv.rb @@ -32,6 +32,6 @@ def install end test do - system "#{bin}/convmv", "--list" + system bin/"convmv", "--list" end end diff --git a/Formula/c/corral.rb b/Formula/c/corral.rb index 48859ed824f34..e593ae609bbee 100644 --- a/Formula/c/corral.rb +++ b/Formula/c/corral.rb @@ -28,7 +28,7 @@ def install new create(env: Env) => env.out.print("Hello World!") EOS - system "#{bin}/corral", "run", "--", "ponyc", "test" + system bin/"corral", "run", "--", "ponyc", "test" assert_equal "Hello World!", shell_output("./test1").chomp end end diff --git a/Formula/c/cppcheck.rb b/Formula/c/cppcheck.rb index de258ccdc876e..c73c981d45dea 100644 --- a/Formula/c/cppcheck.rb +++ b/Formula/c/cppcheck.rb @@ -77,7 +77,7 @@ class Example number = initialNumber; } EOS - system "#{bin}/cppcheck", test_cpp_file + system bin/"cppcheck", test_cpp_file # Test the "out of bounds" check test_cpp_file_check = testpath/"testcheck.cpp" @@ -125,7 +125,7 @@ class Example print("%s\\n%s" %(detected_functions, detected_token_count)) EOS - system "#{bin}/cppcheck", "--dump", test_cpp_file + system bin/"cppcheck", "--dump", test_cpp_file test_cpp_file_dump = "#{test_cpp_file}.dump" assert_predicate testpath/test_cpp_file_dump, :exist? output = shell_output("#{python3} #{sample_addon_file} #{test_cpp_file_dump}") diff --git a/Formula/c/cppi.rb b/Formula/c/cppi.rb index eae85353e175d..24501c7b7426b 100644 --- a/Formula/c/cppi.rb +++ b/Formula/c/cppi.rb @@ -38,7 +38,7 @@ def install #include #endif EOS - assert_equal <<~EOS, pipe_output("#{bin}/cppi", test, 0) + assert_equal <<~EOS, pipe_output(bin/"cppi", test, 0) #ifdef TEST # include #endif diff --git a/Formula/c/cppp.rb b/Formula/c/cppp.rb index 6a2203da77e5b..f00935b441cf0 100644 --- a/Formula/c/cppp.rb +++ b/Formula/c/cppp.rb @@ -45,6 +45,6 @@ def install # endif #endif EOS - system "#{bin}/cppp", "-DFOO", "hello.c" + system bin/"cppp", "-DFOO", "hello.c" end end diff --git a/Formula/c/cpulimit.rb b/Formula/c/cpulimit.rb index 97ae5f6060466..00637a905bc89 100644 --- a/Formula/c/cpulimit.rb +++ b/Formula/c/cpulimit.rb @@ -37,6 +37,6 @@ def install end test do - system "#{bin}/cpulimit", "--limit=10", "ls" + system bin/"cpulimit", "--limit=10", "ls" end end diff --git a/Formula/c/create-dmg.rb b/Formula/c/create-dmg.rb index 4305ebe733692..9a217b0c8b9ca 100644 --- a/Formula/c/create-dmg.rb +++ b/Formula/c/create-dmg.rb @@ -19,7 +19,7 @@ def install File.write(testpath/"Brew-Eula.txt", "Eula") (testpath/"Test-Source").mkpath (testpath/"Test-Source/Brew.app").mkpath - system "#{bin}/create-dmg", "--sandbox-safe", "--eula", + system bin/"create-dmg", "--sandbox-safe", "--eula", testpath/"Brew-Eula.txt", testpath/"Brew-Test.dmg", testpath/"Test-Source" end end diff --git a/Formula/c/creduce.rb b/Formula/c/creduce.rb index 8318371c6c3d7..4d122bf7e45cd 100644 --- a/Formula/c/creduce.rb +++ b/Formula/c/creduce.rb @@ -146,6 +146,6 @@ def install EOS chmod 0755, testpath/"test1.sh" - system "#{bin}/creduce", "test1.sh", "test1.c" + system bin/"creduce", "test1.sh", "test1.c" end end diff --git a/Formula/c/crunch.rb b/Formula/c/crunch.rb index 907b7ff47e746..5e3373a26b8c1 100644 --- a/Formula/c/crunch.rb +++ b/Formula/c/crunch.rb @@ -32,6 +32,6 @@ def install end test do - system "#{bin}/crunch", "-v" + system bin/"crunch", "-v" end end diff --git a/Formula/c/crystalline.rb b/Formula/c/crystalline.rb index e48dee463eae8..ad6a5dde85cf4 100644 --- a/Formula/c/crystalline.rb +++ b/Formula/c/crystalline.rb @@ -55,7 +55,7 @@ def install #{payload} LSP_REQUEST - output = pipe_output("#{bin}/crystalline", request, 0) + output = pipe_output(bin/"crystalline", request, 0) assert_match "Content-Length", output end end diff --git a/Formula/c/cscope.rb b/Formula/c/cscope.rb index f1bc46888acc4..5921373a48124 100644 --- a/Formula/c/cscope.rb +++ b/Formula/c/cscope.rb @@ -51,7 +51,7 @@ def install } EOS (testpath/"cscope.files").write "./test.c\n" - system "#{bin}/cscope", "-b", "-k" + system bin/"cscope", "-b", "-k" assert_match(/test\.c.*func/, shell_output("#{bin}/cscope -L1func")) end end diff --git a/Formula/c/csmith.rb b/Formula/c/csmith.rb index a8e1144e11cbf..70db17e88e6ca 100644 --- a/Formula/c/csmith.rb +++ b/Formula/c/csmith.rb @@ -53,6 +53,6 @@ def caveats end test do - system "#{bin}/csmith", "-o", "test.c" + system bin/"csmith", "-o", "test.c" end end diff --git a/Formula/c/csvq.rb b/Formula/c/csvq.rb index b89a9071c372f..cce2eb8997fd6 100644 --- a/Formula/c/csvq.rb +++ b/Formula/c/csvq.rb @@ -29,7 +29,7 @@ def install end test do - system "#{bin}/csvq", "--version" + system bin/"csvq", "--version" (testpath/"test.csv").write <<~EOS a,b,c diff --git a/Formula/c/ctail.rb b/Formula/c/ctail.rb index a5005a48013f2..638943851f1af 100644 --- a/Formula/c/ctail.rb +++ b/Formula/c/ctail.rb @@ -43,6 +43,6 @@ def install end test do - system "#{bin}/ctail", "-h" + system bin/"ctail", "-h" end end diff --git a/Formula/c/ctop.rb b/Formula/c/ctop.rb index 527b8a8c0069d..7704dd38a9ca2 100644 --- a/Formula/c/ctop.rb +++ b/Formula/c/ctop.rb @@ -27,6 +27,6 @@ def install end test do - system "#{bin}/ctop", "-v" + system bin/"ctop", "-v" end end diff --git a/Formula/c/curl.rb b/Formula/c/curl.rb index e569dba1f9370..d1df0fda34e0e 100644 --- a/Formula/c/curl.rb +++ b/Formula/c/curl.rb @@ -88,7 +88,7 @@ def install # Fetch the curl tarball and see that the checksum matches. # This requires a network connection, but so does Homebrew in general. filename = (testpath/"test.tar.gz") - system "#{bin}/curl", "-L", stable.url, "-o", filename + system bin/"curl", "-L", stable.url, "-o", filename filename.verify_checksum stable.checksum system libexec/"mk-ca-bundle.pl", "test.pem" diff --git a/Formula/c/cvs.rb b/Formula/c/cvs.rb index 5ae0ab89a6cb1..9b8683c9fd191 100644 --- a/Formula/c/cvs.rb +++ b/Formula/c/cvs.rb @@ -112,11 +112,11 @@ def install test do cvsroot = testpath/"cvsroot" cvsroot.mkpath - system "#{bin}/cvs", "-d", cvsroot, "init" + system bin/"cvs", "-d", cvsroot, "init" mkdir "cvsexample" do ENV["CVSROOT"] = cvsroot - system "#{bin}/cvs", "import", "-m", "dir structure", "cvsexample", "homebrew", "start" + system bin/"cvs", "import", "-m", "dir structure", "cvsexample", "homebrew", "start" end end end